>In line with this, I need to create a new (ini) file, if that file isn't present. I was trying to use the win32api, createfile command, but i can't get it to work. Its looking for:
>HANDLE CreateFile(
> LPCTSTR lpFileName, // pointer to name of the file
> DWORD dwDesiredAccess, // access (read-write) mode
> DWORD dwShareMode, // share mode
> LPSECURITY_ATTRIBUTES lpSecurityAttributes,
> // pointer to security attributes
> DWORD dwCreationDisposition, // how to create
> DWORD dwFlagsAndAttributes, // file attributes
> HANDLE hTemplateFile // handle to file with attributes to
> // copy
>);
>
>
>but I don't know how those variable types equate to VFP variables.
>
>any help?
matt,
Use WritePrivateProfileString() in stead. I've a class in the download section that wraps the calls to the various INI file API calls.
George
Ubi caritas et amor, deus ibi est