Jump to content
  • Advertisement
Sign in to follow this  
dxFoo

How do I get the Win32 API SDK working on VC++ 05, beta 2?

This topic is 4814 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Step 3. Update the the Visual C++ Directories in the Projects and Solutions section in the Options dialog box. 
In that section, you'll want to add the paths to the appropriate subsection:

Executable files - C:\Program Files\Microsoft SDK\Bin 
Include files - C:\Program Files\Microsoft SDK\include 
Library files - C:\Program Files\Microsoft SDK\lib

Note:  For Beta 2, you cannot set the Visual C++ Directories in the Options dialog of Visual C++ Express Edition. To work around this issue, you can update the Visual C++ Directories by modifying the VCProjectEngine.dll.express.config file located in the \vc\vcpackages subdirectory of the Visual C++ Express Edition install location. Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" if it exists before restarting Visual C++ Express Edition. 
Just tell that to some some random guy. Since I have beta 2, I open the VCProjectEngine.dll.express.config file. I get the following:
<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile 
	Version="8.00"
	>
    <Platform 
		Name="VCProjectEngine.dll" 
		Identifier="Win32"
		>
		<Directories 
			Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include", "C:\Program Files\Microsoft SDK\include"
			Library="$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(FrameworkSDKDir)lib;$(VSInstallDir);$(VSInstallDir)lib", "C:\Program Files\Microsoft SDK\lib"
			Path="$(VCInstallDir)bin;$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)bin;$(FrameworkDir)$(FrameworkVersion);$(VSInstallDir);$(PATH)", "C:\Program Files\Microsoft SDK\Bin"
			Reference="$(FrameworkDir)$(FrameworkVersion)"
			Source="$(VCInstallDir)crt\src"
		/>
    </Platform>
</VCPlatformConfigurationFile>
How am I suppose to update this? Where does my executable path go? Where does anything go? These directions are horrible. Is the path suppose to look like this: "...", "..."? Ontop of this discussion, do I dare ask how to put DirectX SDK on this?
Please make sure that you also delete the file "vccomponents.dat" located in the "%USERPROFILE%\Local Settings\Application Data\Microsoft\VCExpress\8.0" if it exists before restarting Visual C++ Express Edition. 
Okay... and how can I access this path? Thanks in advanced. dxfoo

Share this post


Link to post
Share on other sites
Advertisement
"Local settings" is a hidden folder in C:\Documents and Settings\User

As for the other stuff? Eh? I wish I could help. Maybe you just replace $(VCInstallDir) with the appropriate directory. Or maybe you append the appropriate subdirectory to it.

Share this post


Link to post
Share on other sites
How can I make it visible?

I think I understand this. It looks like each path had to be followed by $(VCInstallDir).


<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile
Version="8.00"
>
<Platform
Name="VCProjectEngine.dll"
Identifier="Win32"
>
<Directories
Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include;$(VCInstallDir)C:\Program Files\Microsoft SDK\include"
Library="$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(FrameworkSDKDir)lib;$(VSInstallDir);$(VSInstallDir)lib; $(VCInstallDir)C:\Program Files\Microsoft SDK\lib"
Path="$(VCInstallDir)bin;$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)bin;$(FrameworkDir)$(FrameworkVersion);$(VSInstallDir);$(PATH);$(VCInstallDir)C:\Program Files\Microsoft SDK\Bin"
Reference="$(FrameworkDir)$(FrameworkVersion)"
Source="$(VCInstallDir)crt\src"
/>
</Platform>
</VCPlatformConfigurationFile>

Share this post


Link to post
Share on other sites
Okay, thanks. After all that, I don't see the file "vccomponents.dat", so I'll just ignore this step.

Share this post


Link to post
Share on other sites
Well, I finished all the steps. However, I'm getting this error when compiling:

Cannot open include file: 'windows.h':

According to the XML paths I included above, why is this?

Share this post


Link to post
Share on other sites
Did MS decide not to allow the Win32 API to be included in the betas? Will it be in the final release?

I'm not getting any luck with this. All the paths are set, and the compiler still can't find windows.h. I'll just stay with 6.0 for win32 until their final release is.. uh released? It's so easy to work with in 6.0. Why did MS decide to leave out such an important part of development, especially from previous applications?

Share this post


Link to post
Share on other sites
I did 4 and 5 without any problem :) I could ask this... where in the XML file would "Executable files - C:\Program Files\Microsoft SDK\Bin" go?

Share this post


Link to post
Share on other sites
Ignore the instructions. Copy the bin, include, and lib directories from your win32 sdk into a folder called "PlatformSDK" in your Visual Studio 8/VC/ directory.

Yep, the instructions on MSDN are horrible! It should work after the above, it did for me at least.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!