Sign in to follow this  
shred master

platform sdk confusion

Recommended Posts

i just downloaded visual studio express, ok. i heard u have to understand the psdk. well, when i did, it gave me a load of steps on how to like set it up with visual studio, but the instructiond were confusing. Help! thanks!

Share this post


Link to post
Share on other sites
Hi, how far have you got with it? I presume you have installed them both? If you haven't you can do that.

The reason you have to set things up abit more with vcc express to run normal windows apps (win32), is because vcc express is based on the .net framework, but when you want to compile for normal windows, you have to get it to look in the right place for the win32 headers, and they are in the Platform SDK.

Follow the instructions on this page;
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

Open visual studio then click on the tools menu, look for options, and click that, you should get a dialog box come up?

Choose the second item down in the list - Projects and solutions, (double click it).

Now that should have opened up, choose VC++ Directories. - This is where we tell vc++ where to look for the headers.


On the top right corner it should say "show directories for", in the drop down list underneath link as shown below.

Dropdown list heading Where to link too.
Executable files: C:\Program Files\Microsoft SDK\Bin

Include files: C:\Program Files\Microsoft SDK\include

Library files: C:\Program Files\Microsoft SDK\lib

So choose each heading, then choose the new line box thingy and browse to the location. Once you have done that, make sure the new items are at the top.

that should be the first part done :)


The second part involves changing a couple vc++ files.
Browse to here on your computer
C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults

Look for a file called "corewin_express.vsprops", there is another one called "CoreWin.vsprops", so don't get them confused. (right click & use notepad to open the file), As the web page says, change the lines,

AdditionalDependencies="kernel32.lib" to

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"


The whole file should look like this afterwards:

<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
/>
</VisualStudioPropertySheet>




Just one more bit now, browse to,

C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033

right click and open AppSettings.htm with wordpad (I used wordpad for this file because its bigger and wordpad formats it better),

Look about 3/4 of the way down and change the lines as shown in previous webpage link,

The whole section looks like this;

if (window.external.FindSymbol("IS_EXPRESS_SKU"))
{
SUPPORT_ATL.disabled = true;
support_atl_title.disabled = true;
SUPPORT_MFC.disabled = true;
support_mfc_title.disabled = true;
WIN_APP.disabled = true;
WIN_APP_LABEL.disabled = true;
DLL_APP.disabled = true;
DLL_APP_LABEL.disabled = true;
}


You should change that to;

if (window.external.FindSymbol("IS_EXPRESS_SKU"))
{
SUPPORT_ATL.disabled = true;
support_atl_title.disabled = true;
SUPPORT_MFC.disabled = true;
support_mfc_title.disabled = true;
//WIN_APP.disabled = true;
//WIN_APP_LABEL.disabled = true;
//DLL_APP.disabled = true;
//DLL_APP_LABEL.disabled = true;
}


That should be it.

Post again if theres anything else you need to know about it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this