Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading From An INI File
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00664506
Message ID:
00665050
Views:
27
>Ok George, here's another one I'm stuck on. I'm getting a data
>type mismatch:
>
>
>
>#INCLUDE ApiRef.h
>
>LOCAL lRetVal, iBaseKey, sSubKey, iReservedm iClass, iOptions
>LOCAL iAccess, nAttrib, iHandle, iDisposition
>
>DECLARE INTEGER RegCreateKeyEx IN Win32API;
>  INTEGER @iBaseKey,;
>  STRING  @sSubKey,;
>  INTEGER @iReserved,;
>  STRING  @iClass,;
>  INTEGER @iOptions,;
>  INTEGER @iAccess,;
>  INTEGER @iSecurity,;
>  INTEGER @iHandle,;
>  INTEGER @iDisposition
>
>iBaseKey     = HKEY_LOCAL_MACHINE
>sSubKey	     = REG_TEST_KEY
>iReserved    = REG_OPTION_RESERVED
>iClass	     = ""
>iOptions     = REG_OPTION_NON_VOLATILE
>iAccess	     = KEY_ALL_ACCESS
>nAttrib	     = NULL
>iHandle      = 0
>iDisposition = 0
>
>lRetVal = RegCreateKeyEx(@iBaseKey, @sSubKey, @iReserved, @iClass,;
>@iOptions, @iAccess, @nAttrib, @iHandle, @iDisposition)
>
>? lRetVal, iHandle, iDisposition
>
>RETURN
>
>
Try the following:
DECLARE INTEGER RegCreateKeyEx IN Win32API; 
  INTEGER iBaseKey,;
  STRING  @sSubKey,;
  INTEGER iReserved,;
  STRING  @iClass,;
  INTEGER iOptions,;
  INTEGER iAccess,;
  INTEGER @iSecurity,;
  INTEGER @iHandle,;
  INTEGER @iDisposition
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform