January 11, 2010 a c++ pointer question | ||||
|---|---|---|---|---|
| ||||
Hey everyone,
I have a question concerning pointers...
void b(PULONG v)
{
ULONG t=64;
v=&t;
}
void a()
{
PULONG v;
b(v);
ULONG t=*v;
if(t==64) MessageBoxA(0,"OK","",MB_OK);
}
when I compiled it, t isn't 64...how can I get that working correctly? (Yes, I want to use pointers, not return values)
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply