Jump to content

View more

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Help with Tricks :(

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
10 replies to this topic

#1 Anonymous Programmer   Members   

122
Like
Likes
Like

Posted 18 October 2001 - 01:51 PM

Hey, I get this error when I try to link the dx intializing demo (chap 6): main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7 Debug/wnd.exe : fatal error LNK1120: 1 unresolved externals (it doesn''t like this code: if (FAILED(lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID *)&lpdd7))) { // error return(0); } // end if ) Help would be appreciate.

#2 Null and Void   Members   

1087
Like
Likes
Like

Posted 18 October 2001 - 01:55 PM

Are you linking the DirectDraw libraries? What about dxguid.lib?

[Resist Windows XP''s Invasive Production Activation Technology!]

#3 Zenroth   Members   

127
Like
Likes
Like

Posted 18 October 2001 - 01:55 PM

Make sure your linking in the direct draw library.

#4 Anonymous Programmer   Members   

122
Like
Likes
Like

Posted 18 October 2001 - 01:58 PM

I included ddraw.lib

#5 Anonymous Programmer   Members   

122
Like
Likes
Like

Posted 18 October 2001 - 02:01 PM

THANXS, I don''t think he said to include dxguid.lib

#6 eldee   Members   

122
Like
Likes
Like

Posted 18 October 2001 - 02:18 PM

actually he did, its just in the chapter that everybody skips..
setting up the ide


-eldee
;another space monkey;

#7 Anonymous Programmer   Members   

122
Like
Likes
Like

Posted 18 October 2001 - 02:31 PM

Hmm, I don''t remeber that chapter. Oh well.

#8 Peon   Members   

276
Like
Likes
Like

Posted 18 October 2001 - 05:05 PM

I had the SAME problem lol If you ever have another error, try putting #define INITGUID or something weird like that at the top of your code I''m sure someone will correct me (that doesn''t look right)

#9 evaclear   Members   

166
Like
Likes
Like

Posted 19 October 2001 - 03:26 AM

Actually Lamothe uses the #define INIT_GUID instead of including dxguid.lib into the project. the #define INIT_GUID macro causes alot of problems when you divide your program up into seperate files, so I prefer to just link to the dxguid.lib . It is alot cleaner. Also keep in mind that dxguid.lib holds the Globaly Unique Identifiers for all of directx. So no matter what direct x component you use (direct draw, direct input, direct sound, direct play, direct show, direct 3d) you''ll need to include dxguid.lib into your project (just once).

#10 Anonymous Programmer   Members   

122
Like
Likes
Like

Posted 19 October 2001 - 10:46 AM

Cool, thanks guys! (if I need more help, expect me )

#11 Anonymous Poster_Anonymous Poster_*   Guests   

Likes

Posted 19 October 2001 - 10:52 AM

i find it easier to use the following when using andre''s source:

// Put at top of file...
#pragma comment( lib, "ddraw" ) // Include ddraw.lib in workspace (assuming you have properly setup the compiler links).
#pragme comment( lib, "dxguid" ) // ditto, but dxguid.lib does the same as #define ALLGUIDS




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.