Board index » delphi » RegOpenKeyEx Error!
Monika Dongare
![]() Delphi Developer |
Sat, 08 May 2004 22:14:57 GMT
RegOpenKeyEx Error!
Hi All,
If anyone has used the RegOpenKeyEx function then can you help me to resolve the error it is giving me while building the exe. I am not getting any error while compiling the 'C' program but getting one while linking or builing an exe. The error I am geting is with errorcode C2664 and it says that "cannot convert parameter 2 from 'char[37]' to 'const unsigned short *' at the lines where i called RegOpenKeyEx and RegQueryValueEx functions. I donn't really underastad what's wrong with the code. Also tried the other way by declaring one veriable with LPCTSTR type. *************************************************************************** RegOpenKeyEx(HKEY_LOCAL_MACHINE, RegQueryValueEx(hKey, "FullPath", NULL, NULL, RegCloseKey( hKey ); *************************************************************************** |