is DX surface pointer valid in calling function
HI,here a question
Can DX surface pointer(like LPDIRECTDRAWSURFACE and higher)
be used in calling funtions?
For Example,
//define FunctionA:
FunctionA(LPDIRECTDRAWSURFACE7 lpDDS_EX,...)
{
...
}
LPDIRECTDRAWSURFACE7 lpDDSP;
...Here some operations over it...
FunctionA(lpDDSP,....);
Can it work Correct?
I do that all the time. I see no reason why it wouldn''t work even if I didn''t know it did (confusing? ). It is just a pointer to an object, which is legal to pass to a function. You can pass just about anything if you try hard enough... maybe I should add that to my signature.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
Visit the ROAD Programming Website for more programming help.
--------------------
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
You are not a real programmer until you end all your sentences with semicolons; (c) 2000 ROAD Programming
You are unique. Just like everybody else.
"Mechanical engineers design weapons; civil engineers design targets."
"Sensitivity is adjustable, so you can set it to detect elephants and other small creatures." -- Product Description for a vibration sensor
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement