VS2005 Include Directories
by Dave Young · in Torque Game Engine Advanced · 01/24/2007 (7:45 am) · 4 replies
Somehow I was getting compile errors when trying to compile ms4.2 related to these lines in strsafe.h DirectX SDK
#undef strcpy
#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA;
#undef strcpy
#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA;
I commented the lines out and got past the compile errors, but only after I completely moved around the order of my executable, include, and library directories up in Tools->Options->Projects And Solutions->VC++ Directories.
Now I can no longer compile in vs2005 express lol. *blush*
I'm asking if someone who compiled MS4.2 with the October 2006 SDK would be so kind as to post up their own folder order that they have setup in options? I've been trying many combinations and have got to get it straight again. It's only a small number of files but no order I try gets me back to nice working compile. I have always been able to compile TSE btw, and have helped many others do the same. Now I am having moronitis....
My order currently in the 2 sections is:
Library Files
Include Files
#undef strcpy
#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA;
#undef strcpy
#define strcpy strcpy_instead_use_StringCbCopyA_or_StringCchCopyA;
I commented the lines out and got past the compile errors, but only after I completely moved around the order of my executable, include, and library directories up in Tools->Options->Projects And Solutions->VC++ Directories.
Now I can no longer compile in vs2005 express lol. *blush*
I'm asking if someone who compiled MS4.2 with the October 2006 SDK would be so kind as to post up their own folder order that they have setup in options? I've been trying many combinations and have got to get it straight again. It's only a small number of files but no order I try gets me back to nice working compile. I have always been able to compile TSE btw, and have helped many others do the same. Now I am having moronitis....
My order currently in the 2 sections is:
Library Files
C:\Program Files\Microsoft DirectX SDK (October 2006)\Lib\x86 $(VCInstallDir)PlatformSDK\lib $(VCInstallDir)lib $(FrameworkSDKDir)lib $(VSInstallDir) $(VSInstallDir)lib
Include Files
C:\Program Files\Microsoft DirectX SDK (October 2006)\Include $(VCInstallDir)include $(VCInstallDir)PlatformSDK\include $(FrameworkSDKDir)include
#2
ROFL!!
01/24/2007 (8:13 am)
I apologize for the posts, I just realized that Platform 2003 Server SDK was no longer in my folder listing. Adding it back in got me through it all...ROFL!!
#3
You will not find the solution until you post the question. It's not that the question needs to be asked, just that the message-board gods demand feeding, and they will not be denied. If you just look at the number of message-board/newsgroup posts which are followed, minutes later, by "nevermind..." than you should agree with me that there can be no other reason.
-Paraphrased, Tom Forsyth
01/24/2007 (9:05 am)
A wiser man than myself once told me, and I wish I had the exact quote, (I should dig through my e-mails):You will not find the solution until you post the question. It's not that the question needs to be asked, just that the message-board gods demand feeding, and they will not be denied. If you just look at the number of message-board/newsgroup posts which are followed, minutes later, by "nevermind..." than you should agree with me that there can be no other reason.
-Paraphrased, Tom Forsyth
#4
01/24/2007 (10:06 am)
So very darned true :)
Torque 3D Owner Dave Young
Dave Young Games
**note that DWORD_PTR is defined in October DirectX SDK, which is before platformsdk in the folder listing **
..\engine\platformWin32\winRedbook.cpp(136) : error C2065: 'DWORD_PTR' : undeclared identifier
..\engine\platformWin32\winRedbook.cpp(136) : error C2275: 'LPMCI_OPEN_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2861) : see declaration of 'LPMCI_OPEN_PARMS'
..\engine\platformWin32\winRedbook.cpp(140) : error C2275: 'LPMCI_OPEN_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2861) : see declaration of 'LPMCI_OPEN_PARMS'
..\engine\platformWin32\winRedbook.cpp(152) : error C2275: 'LPMCI_SET_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2978) : see declaration of 'LPMCI_SET_PARMS'
..\engine\platformWin32\winRedbook.cpp(181) : error C2275: 'LPMCI_GENERIC_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2839) : see declaration of 'LPMCI_GENERIC_PARMS'
..\engine\platformWin32\winRedbook.cpp(220) : error C2275: 'LPMCI_STATUS_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2898) : see declaration of 'LPMCI_STATUS_PARMS'
..\engine\platformWin32\winRedbook.cpp(234) : error C2275: 'LPMCI_STATUS_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2898) : see declaration of 'LPMCI_STATUS_PARMS'
..\engine\platformWin32\winRedbook.cpp(247) : error C2275: 'LPMCI_PLAY_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2884) : see declaration of 'LPMCI_PLAY_PARMS'
..\engine\platformWin32\winRedbook.cpp(269) : error C2275: 'LPMCI_GENERIC_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2839) : see declaration of 'LPMCI_GENERIC_PARMS'
..\engine\platformWin32\winRedbook.cpp(291) : error C2275: 'LPMCI_STATUS_PARMS' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\mmsystem.h(2898) : see declaration of 'LPMCI_STATUS_PARMS'