Advertisement

is DX surface pointer valid in calling function

Started by October 03, 2000 10:47 AM
0 comments, last by sinicism 24 years, 3 months ago
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 unique. Just like everybody else.

Yanroy@usa.com

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

Yanroy@usa.com

This topic is closed to new replies.

Advertisement