http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DirectDraw help




     I just started trying to use DirectDraw awhile ago (not Direct3D, 
though--I like OGL better) because I wanted to write a software renderer 
(kind of software, since DirectDraw allows access to the memory like DOS 
does and I don't use a 3d API).  So when I wrote my program, I set it up ( 
or tried ) and I got link error 2001 on MSVC++ 6, which is "unresolved 
external symbol".  I'm not a newby in compilers, and I obviously know enough 
to link DirectDraw.lib into my project, but it doesn't work.  I don't know 
what's wrong.  To be more specific, I try to query for the newest interface 
like so:

DDrawInt->QueryInterface(IID_IDirectDraw4,(LPVOID *) DDraw4);

    Also, I know that IID_IDirectDraw4 is a macro, and as far as I know, the 
linker doesn't even touch them.  So why do I get a link error saying

LNK2001 unresolved external symbol IID_IDirectDraw4

    I'm sure it's something obvious, but I don't see it and I'm getting 
really annoyed.  This sucks.  Any help would be appreciated.  Thanks.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html