Public Group

# Getting PSDK working correctly (MSVC++ question)

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

## Recommended Posts

After installing PSDK for MSVC++ to the directory MSVC++/PSDK, I tried to simply include some of the headers in PSDK. Since I hadn't thought to add them to the path to search for, naturally, the compiler couldn't find them. Since it's 12:30 AM right now, I'm very tired and just cut and pasted them into the MSVC++/VC directory, so now all the headers and .lib files from PSDK are in the same directory with the headers that come with MSVC++ 2005. I have two issues. First, I don't know whether this will actually work or not. Is there going to be some issue, other than that it might have been nice to have them in separate directories (as in, can I still use the PSDK headers without reinstalling it?). Secondly, I'm getting an "unresolved external symbol" error when I try to use MessageBox from windows.h. I'm assuming that this is because I created the project as an "empty project" as opposed to a Win32 project. How do I clear up this problem, and is there a way to do that without making a whole new project? Thanks a bunch!

##### Share on other sites
1.
Tools->Options->Projects->VC++ Directories

Under "Show directories for|Include files" I got such entries added:
$(VCInstallDir)PlatformSDK\include\prerelease [edit: not needed]$(VCInstallDir)PlatformSDK\include

Under "Show directories for|Library files":
$(VCInstallDir)PlatformSDK\lib\prerelease [edit: not needed]$(VCInstallDir)PlatformSDK\lib

2. Nope, I don't think it has anything to do with it. A plain "empty" console project, with #include <windows.h> can use MessageBox with no problems.

[Edited by - deffer on July 3, 2006 1:09:54 PM]

##### Share on other sites
I don't think my install or lib directories for PSDK have a prerelease directory. Of course, as the above says, I copied all the files in the lib and include directory instead of (stupid me) just setting MSVC to search for include and library files in the PSDK install directory.

In any case, I'm not sure how to find these prerelease directories. Should I just reinstall PSDK?

##### Share on other sites
Quote:
 Original post by silverphyre673I don't think my install or lib directories for PSDK have a prerelease directory.

Mine neither, I just had those entries as search paths in VS options [smile]. Guess that particular path is worthless. Sorry for any inconvenience.

• 16
• 9
• 13
• 41
• 15