Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ini vs Registry
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00664057
Message ID:
00664232
Views:
32
This message has been marked as a message which has helped to the initial question of the thread.
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform