>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.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao