• Advertisement

Archived

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

is DX surface pointer valid in calling function

This topic is 6350 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement