Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Um...do I have the correct C++ 6?

Author
Message
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 11th May 2005 10:50 Edited at: 17th May 2005 14:23
Hi all. I bought MS Visual C++ 6.0 years ago and installed it again today. It was not part of Visual Studio, it was purchased seperately. I installed Service pack 5 and then installed the SDK for my dark basic pro software. I tried compiling a blank program to see if my compiler would see the new SDK directories and libraries I had just set up (according to the DB SDK instructions.)
Here is my test code:


I get these errors:



Am I going to have to buy the Visual Studio 6 just so SDK will support my compiler? Somewhere on the site I saw that it supported Visual C++ 6.0 with service pack 5 so I assumed that the Visual Studio still had the same version of Visual C++ 6.0.

Any help would be appreciated.

shiny
19
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 11th May 2005 13:32
Install the direct x sdk and your set! : ). This is a very common problem people have, It should definitely be in the dark basic "getting started" documentation dont you think!!!

http://www.microsoft.com/downloads/details.aspx?FamilyID=4e825a37-0c94-4421-9ec8-156e52525d11&DisplayLang=en

dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 11th May 2005 13:45 Edited at: 17th May 2005 14:23
It should be in the docs! GRR! I have been developing on Linux all day so I never gave DX a thought. Thanks!!!!!

shiny
19
Years of Service
User Offline
Joined: 17th Jan 2004
Location: Santa Monica
Posted: 11th May 2005 15:13
http://www.microsoft.com/downloads/details.aspx?FamilyID=afc15f29-d7c9-4cf7-a8d5-8ab81f14ae1b&DisplayLang=en

oh woops... link to the wrong version! I found out because I had to reinstall everything just now!

IanM
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 11th May 2005 21:17
Quote: "It should be in the docs"


You did read these before you bought it didn't you? http://darkgamesdk.thegamecreators.com/?f=system_requirements

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 11th May 2005 22:07 Edited at: 17th May 2005 14:24
Quote: "You did read these before you bought it didn't you? http://darkgamesdk.thegamecreators.com/?f=system_requirements"


Yeah but I never gave any thought to having to include DX when I was setting up my include paths in the compiler. There were 6 hours between the time I bought it and the time I was setting up the compiler. In that time I was on my linux box.

OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 11th May 2005 22:33
Thats why Linux should be banned - it makes you forget things...

Visit http://homepages.nildram.co.uk/~nickk
Calm down dear! Its only The Unofficial DB Sci-Fi Con...
http://spaces.msn.com/members/BouncyBrick/
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 12th May 2005 03:08 Edited at: 17th May 2005 14:24
I downloaded the directx 9 SDK (April release) and I included the include directory and the lib directory and now I am getting about 90 more errors than I had been getting for this code:



Errors:



What else could I be missing?

IanM
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th May 2005 05:12
Not many would have spotted this one ...

Your source file is called 'main1.c', meaning that VC++ is compiling the code as C, not C++. Change the name of the file to 'main1.cpp' and hopefully you'll get a whole different set of errors ... erm, I mean it'll compile

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 12th May 2005 12:32
Oh man! There's my Linux getting me again. I had just got through coding in C on linux, thus the .c instead of .cpp

Thanks!

Derik Wilson
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 12th May 2005 12:38
Oh man! There's my Linux getting me again. I had just got through coding in C on linux, thus the .c instead of .cpp

Thanks!

I get a different error now.


I'll check it out. It's a lot better than the hundreds of errors. Lol!

Derik Wilson
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 12th May 2005 13:32
Well, it seems that MS has stopped supporting Visual C++ 6. They are now only supporting Visual C++.net. I found that on this post: http://forum.thegamecreators.com/?m=forum_view&t=51920&b=22

Look at the comment near the bottom. I am going to have to go back to the October SDK to get it wo work until I buy M$ Visual C++.net

Derik Wilson
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 12th May 2005 14:16
Well, I tried the October 2004 release with the extras. That didn't work either and now I am frustrated. This is usually when I give up for a few months.

Derik Wilson
OSX Using Happy Dude
19
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 12th May 2005 22:55
That sounds like your .LIB pathing is either a) incorrect or b) missing the DX9 libraries.

Visit http://homepages.nildram.co.uk/~nickk
Calm down dear! Its only The Unofficial DB Sci-Fi Con...
http://spaces.msn.com/members/BouncyBrick/
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 13th May 2005 08:34
This is the way my library paths and include paths are set up after the C++ SDK October 2004 install (see attached file).

I tried to re-order them, just experimenting and that got pretty ugly.

Derik Wilson

Attachments

Login to view attachments
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 13th May 2005 13:14 Edited at: 17th May 2005 14:23
I gave up. Since MS will supposedly no longer support Visual C++ 6.0, I went and bought Visual C++ .net. I hope this works.

Smithy
18
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 13th May 2005 21:47
I had similar problems with VC++6, migrating to VSC++ .NET2003 worked for me.

//Pentium IV 3200E/Prescott; 800Mhz FSB; Hyperthreading; WinXP Pro (!XP2); ATI R9700PRO; 1024MB RAM (2x 512MB "DualChanneled"; VC++ 6.0; Delphi; ADSL;
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 14th May 2005 13:18
Yippie! C++ .net saved my life! I think that it may be true that MS stopped supporting C++ 6.0, but I still haven't found a news story or MSN message saying that they have. Only that post in these forums which I refered to. All I know is that I could not compile this:


with C++ and I can with C++ .net. I am using the same library paths and include paths in the same order as I was with C++ 6.0. You'd think they would have posted something where the SDK's are downloaded. Oh well!

Derik Wilson
PeterG
18
Years of Service
User Offline
Joined: 16th Aug 2004
Location:
Posted: 15th May 2005 01:08
Many are saying that VC6++ is not compatible with the sdk. This is not true. If the Inlude paths and also the lib paths are set, it works. It also works for most of the examples without the new vc6 SP.
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 15th May 2005 10:05
All I know is that I know how to set the include paths and libraries and they were set in my C++ 6.0. I had all of the service packs, updates and what not yet it did not work. I set up C++ .net and it works like a champ. I have seen many forums where people are having problems with C++ 6.0 and then the problems go away when they switch to C++ .net. I really don't know what is going on but for me, C++ 6.0 does not work.

Derik Wilson
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 16th May 2005 15:12 Edited at: 16th May 2005 15:32
Thanks all for the advice you gave me! You got me thinking on the right track.

Sephnroth
20
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 16th May 2005 16:02
vc++6 works fine with the sdk, i had no problems at all. Your paths are set wrong.

To start with i recommend using the summer 2004 dx9 sdk with 6 simply because thats what i use so i can say for sure it works.

the dx include path should be the very first in the list. the sdk include path should be second. Then your other stuff. Thats for include files.

for Library files the very first thing included should be dx9 extras\d3dx visual studio 6\ path. Looking at your screenshots again I notice you dont even -have- the dx9 extras, im pretty sure thats clearly stated in the faq as a requirment
after the extras is the normal dx9, then the darksdk.

That path setup will allow you to use vc6 perfectly fine with dgsdk. Buying a brand new dev suite couldnt of been cheap and maybe overkill I certainly wish i could afford to go oh i cant be bothered to fix this i will just buy the latest compiler from microsoft But if you like your new IDE etc etc then money well spent and I hope you enjoy it.

[07:16:59-pm] « Sephnroth » you were dreaming about lee...
[07:17:13-pm] « Mouse » stfu
[07:17:22-pm] « Mouse » he was hanging himself lol
dwilson32
17
Years of Service
User Offline
Joined: 11th May 2005
Location:
Posted: 17th May 2005 07:33
Thanks, but I have already purchased C++ .net and everything is working fine with the April 2005 DX SDK. In the end my paths were set exactly as you stated and it did not work. If I see someone else with the same problem, I will pass this information on.

Gen
18
Years of Service
User Offline
Joined: 6th Jul 2004
Location: Oklahoma, USA
Posted: 17th May 2005 10:30
I read somewhere that DX9 SDK(October 2004) was the last to be supported by VC++ 6. And DX9 SDK(Febuary 2005) and later requires will not run on anything before Windows XP.

Soon to come... Dark IDE, New IDE for DarkBASIC Pro!

Login to post a reply

Server time is: 2023-02-06 18:38:36
Your offset time is: 2023-02-06 18:38:36