Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


- - - - -

02.07 - The Readiness Test

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

#201 CWizard   Members   -  Reputation: 127

Like
Likes
Like

Posted 09 February 2003 - 04:28 AM

quote:
Original post by ChaosCommand
If I really knew what I was supposed to do to fix all those, I would really, try. But I'm hoping some of you may have an idea?
I haven't bothered with DX9 yet myself, so there might be other issues with that release. Are you sure you are linking the DX libraries to your project? I cannot recall which ones you need, but there are a few of them. Also make sure that the SDK's include and libs directories are added to VC's include path.

EDIT: That is, have you followed the instructions Teej provides in the first post in this thread.




[edited by - CWizard on February 9, 2003 11:30:01 AM]

Sponsor:

#202 ChaosCommand   Members   -  Reputation: 122

Like
Likes
Like

Posted 09 February 2003 - 01:14 PM

I tried everything suggested in this forum.
I don''t know if it is VS .NET, or if it is DX9.

I just wish teej could convert that code to more recent version of DX.

If anyone happens to get this code to work for DX 9, please send your help please.

#203 ChaosCommand   Members   -  Reputation: 122

Like
Likes
Like

Posted 12 February 2003 - 02:24 PM

Thank the almighty god!!!!

After 7 hours of screwing around with all this crap, I finally got it to work.

If this is a glimpse in the future of what debugging is going to be like... It is going to be hell.

But at least I got it to work and can continue.

#204 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 09 March 2003 - 05:14 PM

Basecode1? Your website? Mebbe I missed the announcement, but is your site down? The link seems to be no more. It whisked me away to megago, some extremely annoying list site.




#205 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 09 March 2003 - 05:21 PM

Ne''ermind... I found em. Part one of that readiness test, eh?



#206 NashuNatta   Members   -  Reputation: 122

Like
Likes
Like

Posted 03 April 2003 - 01:23 PM

OK, I am using DirectX 9 and when I build I get this error.

quote:
Compiling...
Utils.cpp
c:\documents and settings\owner\desktop\c++\basecode1\utils.cpp(503) : fatal error C1010: unexpected end of file while looking for precompiled header directive
WinBase.cpp
c:\documents and settings\owner\desktop\c++\basecode1\winbase.cpp(158) : fatal error C1010: unexpected end of file while looking for precompiled header directive
GameMain.cpp
c:\documents and settings\owner\desktop\c++\basecode1\gamemain.cpp(119) : fatal error C1010: unexpected end of file while looking for precompiled header directive
InitTerm.cpp
c:\documents and settings\owner\desktop\c++\basecode1\initterm.cpp(364) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.

basecode1.exe - 4 error(s), 0 warning(s)


I am not very good with C++ and I know no DirectX so this has me temporarily stupified because the line it is pointing to is blank....I dont know. All help is apreciated.

[edited by - NashuNatta on April 3, 2003 8:27:05 PM]

#207 hellz   Members   -  Reputation: 356

Like
Likes
Like

Posted 05 May 2003 - 04:48 AM

Anyone happen to know where I can get the tutorial files from? If you do, a quick e-mail to gamedev@metallica46.freeserve.co.uk would be most appreciated.

--hellz

#208 gavin_burt   Members   -  Reputation: 122

Like
Likes
Like

Posted 11 June 2003 - 07:51 AM

NashuNatta, I haven''t used DirectX 9 but the errors are referring to precompiled headers. Teej is not used precompiled headers so you should turn those off in the project. Hope this helps.


#209 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 26 August 2003 - 02:54 PM

Hmm.. I seem to be getting the problem mentioned by another Anon, where instead of reaching Teej''s site I''m being taken to megago.. Anyone know how I can get to the correct page?

#210 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 26 August 2003 - 02:58 PM

My apologies. I should have read the other replies first. Problem solved

#211 gwynster   Members   -  Reputation: 122

Like
Likes
Like

Posted 24 October 2003 - 01:13 PM

--------------------Configuration: BaseCode1 - Win32 Debug--------------------
Compiling...
GameMain.cpp
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(87) : error C2146: syntax error : missing '';'' before identifier ''lpDD''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(87) : error C2501: ''LPDIRECTDRAW7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(87) : error C2501: ''lpDD'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(88) : error C2146: syntax error : missing '';'' before identifier ''lpDDSPrimary''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(88) : error C2501: ''LPDIRECTDRAWSURFACE7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(88) : error C2501: ''lpDDSPrimary'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(89) : error C2146: syntax error : missing '';'' before identifier ''lpDDSBack''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(89) : error C2501: ''LPDIRECTDRAWSURFACE7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(89) : error C2501: ''lpDDSBack'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(90) : error C2146: syntax error : missing '';'' before identifier ''lpDDSRes''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(90) : error C2501: ''LPDIRECTDRAWSURFACE7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(90) : error C2501: ''lpDDSRes'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(94) : error C2146: syntax error : missing '';'' before identifier ''lpDI''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(94) : error C2501: ''LPDIRECTINPUT7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(94) : error C2501: ''lpDI'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(95) : error C2146: syntax error : missing '';'' before identifier ''lpDIKeyboard''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(95) : error C2501: ''LPDIRECTINPUTDEVICE7'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(95) : error C2501: ''lpDIKeyboard'' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\basecode1\gamemain.cpp(45) : error C2039: ''lpDIKeyboard'' : is not a member of ''__unnamed''
c:\program files\microsoft visual studio\myprojects\basecode1\globals.h(80) : see declaration of ''__unnamed''
c:\program files\microsoft visual studio\myprojects\basecode1\gamemain.cpp(45) : error C2227: left of ''->GetDeviceState'' must point to class/struct/union
c:\program files\microsoft visual studio\myprojects\basecode1\gamemain.cpp(46) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.

GameMain.obj - 21 error(s), 0 warning(s)

I''m not a happy bunny at this. It has a problem with the globals.h file, and possibly a couple others. I have no idea what I''m meant to do about this.

#212 bushido boy   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 December 2003 - 11:56 PM

I tried scanning the replies to see if my problem was answered, but since this tutorial was posted a while ago the answers are for programs that I don''t have. I am using Vis. Studio .NET(VC++ 7) and each time I try to build it I get the following errors.

BaseCode1 fatal error LNK1120: 8 unresolved externals
BaseCode1 error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "int __cdecl DD_Init(void)" (?DD_Init@@YAHXZ)
BaseCode1 error LNK2001: unresolved external symbol _IID_IDirectDraw7
BaseCode1 error LNK2001: unresolved external symbol _c_dfDIKeyboard
BaseCode1 error LNK2001: unresolved external symbol _GUID_SysKeyboard
BaseCode1 error LNK2001: unresolved external symbol _IID_IDirectInputDevice7A
BaseCode1 error LNK2019: unresolved external symbol _DirectInputCreateEx@20 referenced in function "int __cdecl DI_Init(void)" (?DI_Init@@YAHXZ)
BaseCode1 error LNK2001: unresolved external symbol _IID_IDirectInput7A
BaseCode1 error LNK2019: unresolved external symbol _DirectSoundCreate@12 referenced in function "int __cdecl DS_Init(void)" (?DS_Init@@YAHXZ)


I am pretty sure this has to do with adding the library files, but since the tutorial was written for a different vis. studio version the layout is different. If anyone could help me with how they included the lib files for the program under the linker settings and how they individually included the "winmm.lib"(which i have) library I would be greatly appreciate, thanks.

#213 CWizard   Members   -  Reputation: 127

Like
Likes
Like

Posted 15 December 2003 - 01:51 AM

I don''t know about VC7, but generally you add libraries in Project Settings->Link->Object/library modules.

You may also do it by adding this in some source file(s) note: non-standard!):
#pragma lib <ddraw.lib>

#214 bushido boy   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 December 2003 - 01:48 PM

I tried using the #pragma ways to include the lib files but no luck, thanks for the quick reply but since VC++.net does not have a Project->Settings->Link->Object/library modules section. With VC++.net it is Project->Properties->Linker->General->Additional Library Directories:
I think that is what it is anyways, I have tried including
"C:\Program Files\Microsoft SDK\Lib";C:\MsSdk\lib
into that section but I still get errors. If there are any .net''ers out there who figured out how to include the libraries I''d be a happy person.

#215 CWizard   Members   -  Reputation: 127

Like
Likes
Like

Posted 15 December 2003 - 02:22 PM

quote:
Original post by bushido boy
I tried using the #pragma ways to include the lib files but no luck,
It doesn't complain that it cannot find the library?
quote:
thanks for the quick reply but since VC++.net does not have a Project->Settings->Link->Object/library modules section. With VC++.net it is Project->Properties->Linker->General->Additional Library Directories:
That is just the paths where libraries are searched. You must find a list where you can add libraries to be linked with your project.
quote:
I think that is what it is anyways, I have tried including
"C:\Program Files\Microsoft SDK\Lib";C:\MsSdk\lib
Are the DirectX libraries (eg. ddraw.lib) in any of those directories?

EDIT: Suggestion: read the VC++.NET documentation on how to link with non-standard libraries.

[edited by - CWizard on December 15, 2003 9:23:49 PM]

#216 bushido boy   Members   -  Reputation: 122

Like
Likes
Like

Posted 15 December 2003 - 04:40 PM

Thanks alot cwizard for the point in the right direction, for anyone else using VC++ .NET in case they have the same problem I got it to work by going to Project->Properties->Linker->Input->Additional Dependencies and put

WinMM.lib C:\DXVCSDK\LIB\*.lib

into additional dependencies and everything compiled great, once again thanks for the tip.





PARTNERS