Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ini vs Registry
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00664057
Message ID:
00664232
Vues:
30
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform