"John Harrison" <jo*************@hotmail.com> wrote in message
news:2j*************@uni-berlin.de...
"alex" <al*************@verizon.net> wrote in message
news:40**********@127.0.0.1... how do i initialize an atl ULONG* variable?
Same way as any other variable.
ULONG* x = something;
If you are having some trouble with code, it is best to post the actual
code.
john
ULONG* pnChars = 50; does not compile (int)
ULONG* pnChars = 50.0; does not compile (double)
ULONG* pnChars = 0; compiles but causes assertion failure when used in:
if ( MyCRegKey.QueryStringValue(valName.c_str(), pszValue, pnChars) ==
ERROR_SUCCESS )
MyCRegKey is an object instantiated from CRegKey -- a microsoft class that
wraps the registry functions.
for this QueryStringValue issue I think I'll just call one or more of the
registry functions directly, that should take care
of things, it would be good to know how to handle this though.
here's the method description:
http://msdn.microsoft.com/library/de...tringvalue.asp
but i'm just gonna use RegQueryValueEx from:
http://msdn.microsoft.com/library/de..._functions.asp
that should do it.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---