• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

VS2005

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
10,659
Reaction score
4,465
Points
203
Location
Dallas, TX
I am going to try VS2005 vs Crimson Editor. I think I have it set up right but I get this error:
cannot open include file: 'orbitersdk.h'
 
Make sure you have OrbiterSDK/Include in your include directory list.
 
Redid the setup and fixed that Now I get this:

Compiling...
ShuttlePB.cpp
c:\orbiter\orbitersdk\include\OrbiterAPI.h(18) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
 
Sounds like you did not install the platform SDK...
 
Got it. Not sure how to load a .cpp file i used in another compiler. If I remember correctly it is saved a shuttlepb.dll and you have to rename
 
Got it. Not sure how to load a .cpp file i used in another compiler. If I remember correctly it is saved a shuttlepb.dll and you have to rename

No. Compiling does not move the CPP code into the DLL. You have to understand the CPP code as blueprint for the DLL.
 
Ok. So can I load a cpp and H file into this compiler that I used in crimson editor.
 
Ok i open a new solution and added the cpp and h files in and build this:
j2200 - 0 error(s), 0 warning(s)
Took the .dll from release folder and put in modules folder and change the cfg file. ran orbiter and I get a CTD
 
Ok i open a new solution and added the cpp and h files in and build this:
j2200 - 0 error(s), 0 warning(s)
Took the .dll from release folder and put in modules folder and change the cfg file. ran orbiter and I get a CTD

What am I supposed to answer? Like: Sounds like your code CTDs?
Or: Me too?

Be more specific or find the bug yourself.
 
Not sure the cpp and h file compiled fine in crimson editor. Any ideas. I made a new project and add my cpp and h build the solution and got the dll from the release directory.

Does the procedure sound right?
 
If it compiled a DLL, it should be right. Did you also install the runtime libraries for VC2005?
 
Thanks. That maybe it. But i think I have it installed right but I get that user32.lib can't be opened
Linking...
LINK : fatal error LNK1181: cannot open input file 'user32.lib'
 
Sounds like you still have not installed it correctly - thats a library of the windows platform SDK.
 
Getting VS2005 to work with Orbiter is not a trivial matter. Google "Orbiterwiki free compiler" and read carefully.
 
I recheck and followed the Wiki article. This is what my screen shot looks like:
f_testpm_6a50fe9.jpg
 
I recheck and followed the Wiki article. This is what my screen shot looks like:

Yes - but what are the paths you have set for library and include files?
 
I believe this is right:
C:\Program Files\Microsoft Platform SDK\Include
f_testp2m_08a26d6.jpg
 
What about "Linker/General/Additional library directories"? The linker is failing to find the .lib file, not the include .h file.
 
Ok I get it to compile but I take the .dll from the release folder and move into the module folder and run Orbiter. It runs but no vessel is there. The dll with crimson editor is about 100kb but the new dll is 32kb
[SIZE=+3]Build Log [/SIZE] Build started: Project: j2200, Configuration: Release|Win32


[SIZE=+2]Command Lines [/SIZE] Creating temporary file "c:\orbiter\Modules\j2200\j2200\Release\RSP00001915043920.rsp" with contents
[
/OUT:"C:\orbiter\Modules\j2200\Release\j2200.dll" /INCREMENTAL:NO /LIBPATH:"C:\Orbiter\Orbitersdk\include" /LIBPATH:"C:\Program Files\Microsoft Platform SDK\Lib" /DLL /MANIFEST /MANIFESTFILE:"Release\j2200.dll.intermediate.manifest" /NODEFAULTLIB:"msvcirt.lib" /DEBUG /PDB:"c:\orbiter\Modules\j2200\release\j2200.pdb" /LTCG /MACHINE:X86 /FIXED:No kernel32.lib user32.lib gdi32.lib kernel32.lib

".\Release\AssemblyInfo.obj"

".\Release\j2200.obj"

".\Release\Stdafx.obj"

".\Release\app.res"
]
Creating command line "link.exe @c:\orbiter\Modules\j2200\j2200\Release\RSP00001915043920.rsp /NOLOGO /ERRORREPORT:PROMPT"
Creating temporary file "c:\orbiter\Modules\j2200\j2200\Release\RSP00001A15043920.rsp" with contents
[
/outputresource:"..\release\j2200.dll;#2" /manifest

.\Release\j2200.dll.intermediate.manifest
]
Creating command line "mt.exe @c:\orbiter\Modules\j2200\j2200\Release\RSP00001A15043920.rsp /nologo"
Creating temporary file "c:\orbiter\Modules\j2200\j2200\Release\BAT00001B15043920.bat" with contents
[
@echo Manifest resource last updated at %TIME% on %DATE% > .\Release\mt.dep
]
Creating command line "c:\orbiter\Modules\j2200\j2200\Release\BAT00001B15043920.bat"
[SIZE=+2]Output Window [/SIZE] Linking...
Generating code
Finished generating code
Embedding manifest...
[SIZE=+2]Results [/SIZE] Build log was saved at "file://c:\orbiter\Modules\j2200\j2200\Release\BuildLog.htm"
j2200 - 0 error(s), 0 warning(s)
 
Back
Top