Jump to content
  • Advertisement

Archived

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

sinicism

is DX surface pointer valid in calling function

This topic is 6495 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!