Jump to content
  • Advertisement


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


interface pointers

This topic is 6227 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

i really dont get the interface pointers; they decleared as normal(non pointer) objects, right; but some time they are accessed as pointers, like when you use it to call a method, you need to write something like this: lpdd->something; can anyone throw me a pointer what''s going on here, thanx

Share this post

Link to post
Share on other sites
If you really want to understand the nitty gritty of what''s going on, pick up a book on COM. Some are better than others, but most will get the general point across and it would probably be helpful if you ever use other MS technologies.

If you want to skip all that and just live with the fact that the entities you actually deal with are indeed pointers, then you probably will be able to get by just fine.

Share this post

Link to post
Share on other sites
Well I think you are probably misinterpreting what you are writing. Most of the samples for D3D use typedefed pointers. So when you write something like this:


LPDIRECTDRAW is defined as:
typedef struct IDirectDraw FAR *LPDIRECTDRAW;

So it is equivalent to:

IDirectDraw FAR *lpdd;

And is really a pointer. Normally any type declaration that begins with LP will be a typedefed pointer. Atleast when dealing with Microsoft


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!