Upgrading to VS 2010

Published April 25, 2010
Advertisement
So I just checked my emails for the first time in weeks and discovered that VS 2010 Express is finally out of Beta. I'm quite excited about this because for some weird reason VS 2008 with SP1 won't install on my laptop since I put Win7 on it so I've had to put my laptop and desktop back to pre SP1 2008.

The transition has been pretty smooth, but I just thought I'd post a few points about the change in VC Directories as there was a peculiar problem.

I don't know if later DXSDK releases have fixed this, but there is a problem with objidl.h that occurs if you have the DXSDK directories listed before the Windows SDK directories in VS, certainly with DXSDK Nov 2007 and back.

In 2008 this was trivial, since you could move the directories up and down via the Tools.Options.VC Directories page. This is now deprecated in 2010 though and took a bit of creativity to rectify.

Firstly, go to Tools.Settings.Expert so you have the Property Manager option in the View menu.

Open or create any project, then View.Property Manager. Uncollapse the project in the manager, then the Debug or Release folder, and right-click on Microsoft.Cpp.Win32.User. Select Properties.

You can now edit the library and include folder settings that will then be imported into any new projects.

However, because all the default directories inherited from the parent or whatever are not part of the user list, it is not possible to include the SDK headers before the DXSDK.

So, edit the Include field, untick Inherit from Parent or Whatever box, copy-paste the lower list into notepad, then manually add each directory to the top box. Fiddle with the order till happy, then repeat for the Libraries.

Close VS and it will ask if you want to save an external property page. Say yes and you're done.

Hope this may be of use to someone. Took me a little while to figure out as there are blog posts galore on the new Directories system for 2010, but very little information on making it play nice with the DXSDK. The errors that the above solution fixes in relation to objidl.h are also a bit obscure in typical C++ style as they don't really give a lot of clues as to the source of the problem.
Previous Entry Relationship Editing
Next Entry Bleh
0 likes 6 comments

Comments

_the_phantom_
Hmm, I've been using VS2010 since the RC and with the 2009/2010 DX SDKs this hasn't proven a problem.

With my recent reinstall of the final VS2010 install I've even changed it so that the project itself holds the directories and the DX (and FMOD) directories are first in the list and everything compiles without any problems.
April 25, 2010 10:06 AM
Aardvajk
Quote:Original post by phantom
Hmm, I've been using VS2010 since the RC and with the 2009/2010 DX SDKs this hasn't proven a problem.

With my recent reinstall of the final VS2010 install I've even changed it so that the project itself holds the directories and the DX (and FMOD) directories are first in the list and everything compiles without any problems.


Must be a problem with older DXSDKs. This is where I found the problem discussed.

I'd upgrade DXSDK but the end-user runtime redistributable seems to get bigger and bigger with every release and I'd like to distribute it as part of my installer so the user doesn't get "d3dx1234.dll is missing" errors.
April 25, 2010 10:46 AM
Zao
You're free to remove just about all the cabs from the redist, deploying only the ones you need.

The only files in the redist/ directory you must bundle according to the redist license are: DSetup32.dll, DSetup.dll, DXSetup.exe, DXupdate.cab, dxdllreg_x86.cab
April 25, 2010 11:54 AM
Aardvajk
Quote:Original post by Zao
You're free to remove just about all the cabs from the redist, deploying only the ones you need.

The only files in the redist/ directory you must bundle according to the redist license are: DSetup32.dll, DSetup.dll, DXSetup.exe, DXupdate.cab, dxdllreg_x86.cab


That's handy to know, I'll look into that. Thanks.
April 25, 2010 01:23 PM
Milkshake
Just catching up on some journal reading ... you're editor looks awesome! Love the connection editor, and the fact you can see the non-scene elements in the editor - you're one step ahead of me!
April 28, 2010 12:26 AM
Aardvajk
Quote:Original post by Milkshake
Just catching up on some journal reading ... you're editor looks awesome! Love the connection editor, and the fact you can see the non-scene elements in the editor - you're one step ahead of me!


Cheers. Credit where it's due, a lot of the original system with signals and gates was inspired by your slightly mental but brilliant systems of linking objects together in your rendering system.

Good to see you back posting again.
April 28, 2010 01:02 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement