Archived

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

newbie problem; intializing DDraw

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

hey everybody, i was reading the tricks, and it said in order to create a ddraw object, you have to do this: LPDIRECTDRAW lpdd = NULL; // standard DirectDraw 1.0 LPDIRECTDRAW4 lpdd4 = NULL; // DirectDraw 6.0 interface 4 // first create base IDirectDraw interface if (FAILED(DirectDrawCreate(NULL,&lpdd,NULL))) { return 0; } // now query for IDirectDraw4 if (FAILED(lpdd->QueryInterface(IID_IDirectDraw4, (LPVOID *)*lpdd4))) { return 0; } It just doesn't want to work! it returns something like: error 750234740555043: IDirectDraw4 unknown symbol I think its from the linker in MSVC. I included the include file, and the lib file but it doesnt work! thanks in advance Edited by - ChocaPaluza123 on August 25, 2001 11:17:45 PM

Share this post


Link to post
Share on other sites
Yeah I got this error a lot too. Sometimes I just made my own project, copied everything into it, included "c:\dx6\lib\*.lib" (C:\dx6 is where I installed), and it would then run fine. Oh yeah, also include the winmm.lib. You include all the stuff in the project options folder (just if you didn''t know)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You have to create a new project and you also have to change the project setting, so you have to include ddraw.lib and dxguid.lib! After that you have to include in your .cpp!
Then everything just works fine.
Bye

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Anonymous Poster
You have to create a new project and you also have to change the project setting, so you have to include ddraw.lib and dxguid.lib! After that you have to include in your .cpp!
Then everything just works fine.
Bye



Sorry, you also have to #include "ddraw.h"
Bye

Share this post


Link to post
Share on other sites
IT WORKED!!!!!!!!!!!!!!!!!!!!
Thanks you guys, i just included C:\mssdk\lib\*.lib in the Project->Settings, and it worked! I can''t thank you enough! Before I just chose to, instead of QueryInterfacce in order to get DDraw 4, I just used DDraw 1!!!!!!!!!
I''m suprised that slipped by me and all those other people!!

( )
@@
- Say hello to Afrodite

_____
\@-@/
_ now say hello to me!

Share this post


Link to post
Share on other sites