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 / VS2010 Professional

Author
Message
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 11th Jul 2010 07:13
Thanks to the sweet deal Microsoft has for students I've got Visual Studio 2010 Professional for free...the only problem is that I can't get it to compile anything DGDK.

Anyone know what might be causing this? The error points to a windows SDK header which I doubt it the problem (Unless Windows 7 is simply incompatible). I know it's not any of my code because it doesn't matter what I try to compile, even the simplest possible program.

Any help would be appreciated.


My site, for various stuff that I make.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 11th Jul 2010 13:27
VS2010 is not yet supported by DarkGDK. If you can't get it to link correctly, you could always use VS2008 to make a simple application linked with DarkGDK which loads a .dll and runs it. You could then make the .dll in VS2010, as dynamic linking seems a bit more forgiving...

[b]
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 11th Jul 2010 17:42 Edited at: 11th Jul 2010 19:31
I'll give that a shot. I don't know if older versions of the Windows SDK are available, but maybe that would help as well.

EDIT: This is a new computer that never had 2008 and it seems that only 2010 express is available from the Microsoft Website. I totally misunderstood what you said. That idea sounds brilliant, assuming a DLL will compile with GDK.

EDIT2: I did manage to find an express version of VC++ 2008 and it most certainly does compile after a little tweaking. I'll see if I can't get it to work with VS2010 and maybe post a tutorial if I'm successful.
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 13th Jul 2010 12:43
Has anyone tried to download the open Dark GDK source code and recompile it with VS 2010? Would that work? I don't own VS 2010 yet but hope to get it later, so I'm interested in the possibilities.
Fatal Berserker
14
Years of Service
User Offline
Joined: 2nd Jul 2010
Location:
Posted: 13th Jul 2010 19:09
i know people have it working in vs2010, and i also have professional from student deals, i just personally havnt figured it out.

jamesL
14
Years of Service
User Offline
Joined: 31st May 2010
Location:
Posted: 14th Jul 2010 08:12
does this help at all ?

http://forum.thegamecreators.com/?m=forum_view&t=171989&b=22

its for VC 2008, but maybe the issues are the same
Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 14th Jul 2010 13:29
the download file is the installer for visual studio 2008 C++ express

Problem Solution That Never Fails: "Build A Bridge And Get Over It"

Attachments

Login to view attachments
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 14th Jul 2010 18:07
Quote: "does this help at all ?

http://forum.thegamecreators.com/?m=forum_view&t=171989&b=22

its for VC 2008, but maybe the issues are the same "

I do have those libraries ignored, no progress yet on getting this to work.
Holy Cow Coder
16
Years of Service
User Offline
Joined: 8th Sep 2008
Location: Somewhere on Mustafar
Posted: 15th Jul 2010 00:20 Edited at: 15th Jul 2010 00:48
@SunDawg: You have to set the project files (Includes & Libs) for every project, I think you use the project properties to do this, I can't remember. I own VS2010 but do not use it with DGDK much, for this reason. You cannot set global include paths and libs paths in VS 2010, again, you have to set them for every project you create if you use special SDKs like DGDK. Hope this helps.

You also have to point the compiler at the MS DX9c SDK include and lib directories.

I tried to do this with the current version of VS 2010 Prof. and got about 103 errors with code that ran just fine under 2008.

"The Dark Side Clouds our vision...Only the Dark Lord of the Sith knows of our weakness. If informed the Senate is, multiply our enemies will." Master Yoda, Episode II.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 17th Jul 2010 22:48
@Holy Cow Coder: Did MS get rid the "Options->Tools->Projects and Solutions->VC++ Directories" in VS 2010? Those are essentially global includes, when you use angle brackets instead of double quotes it searches those directories first(ex. #include <DarkGDK.h>.

Screenshot of VC++ Directories(VS 2008) attached.


Attachments

Login to view attachments
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 18th Jul 2010 03:30
The VC++ directories are specified per-project in VS 2010.

[b]
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 18th Jul 2010 05:00
Really?
Dang, those global includes were really convenient...


Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 22nd Jul 2010 00:13
Hey I've actually gotten that error myself now, and I fixed it by uninstalling the older DirectX SDK I had and then upgraded to the latest one(June 2010). Seems like one of the header files in the older SDKs is incompatible with VS2010.


Login to post a reply

Server time is: 2024-11-19 20:26:46
Your offset time is: 2024-11-19 20:26:46