Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Win32api and older computers
Message
From
23/08/2001 11:27:59
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00547931
Message ID:
00548019
Views:
16
Thanx Larry,
The date of Advapi32.Dll is 05/11/98. But I have some systems running the component that have that date. How about other functions I saw in the Mailmanager's method: RegQueryValueEx, RegCloseKey. The actual error is invlaid number of parameters. Is it possible that some versions of the dll was not as forgiving when it came to passing parameters?

The exact code lifted from the methos is:
DECLARE Integer RegOpenKeyEx IN Win32API Integer nKey, String @cSubKey, Integer nReserved, Integer nAccessMask, Integer @nResult
DECLARE Integer RegQueryValueEx IN Win32API Integer nKey, String cValueName, Integer nReserved, Integer @nType, String @cBuffer, Integer @nBufferSize
DECLARE Integer RegCloseKey IN Win32API Integer nKey

How do these calls look to you?
Neil


>>Hi UTers,
>>
>>I have the classycomponents mailmanager. Great email component. Drop it on a form and you are email aware. BUT: one of it's methods has a couple of statements like this:
>>
>>DECLARE Interger RegOpenKeyEX IN Win32API Interger bla bla bla.
>>
>>When I install the mailmanager component on a vfp6 form and then setup the form on an older machine I get an error: invlaid number of parameters. If I remove the component from the form the form instantiates just fine. If you run the component on a form on a newer machine its works just fine.
>>
>>How do I get a copy of the dll that contians win32api and how do you suggest I install it as part of my setup or programmactically. Please give examples. API's scare me.
>>
>>Dr. G. (Neil)
>
>Neil,
>WinAPI is actually a keyword that causes VFP to search multiple DLLs for the specified function. They are Kernel32.dll, Gdi32.dll, User32.dll, Mpr.dll, and Advapi32.dll. RegOpenKeyEx is in Advapi32.Dll.
>
>These files are core OS files and installing over them with your particluar version could prove devastating to your system (i.e. can no longer boot the system).
>
>The docs say this function is supported on Win95 and higher and NT 3.1 (like anyone uses that anymore) and higher so it should work even on older PCs. Check out the version numbers of Advapi32 on both systems. You may have to apply some service packs.
>
>HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform