Archived

This topic is now archived and is closed to further replies.

sinicism

is DX surface pointer valid in calling function

Recommended Posts

sinicism    122
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?

Share this post


Link to post
Share on other sites
Yanroy    122
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.

Share this post


Link to post
Share on other sites