|
-
May 23rd, 2010, 01:37 AM
#1
RegQueryValue & string types
Hi,
Win APIs & string passed to them as arguments are driving me crazy:
char tmp[22];
::RegQueryValue(HKEY_LOCAL_MACHINE, "x", "y", tmp);
gives me:
converting 2nd parameter from 'const char [2]' to 'LPCWSTR' not possible
and
char tmp[22];
::RegQueryValueA(HKEY_LOCAL_MACHINE, "x", "y", tmp);
converting parameter 4 from 'char [22]' to 'PLONG' not possible
Is there any reference/explanation as for all those string types?
Why cant i pass a simple "text string" to an API?
thx,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|