Finally!!!
I got a 100% vs c++ express "sdk" working!!!
get it from
http://www.scratchydreams.com/projects/raydium-win32.7z
it includes a sample VS project file and 1 sample game (a copy from test6.c)
inside you'll find a directory called SDK which has 3 sub directories:
bin - all required DLLs to run the engine + the raydium DLL
include - all hammered .h files for VStudio i'll keep working on these in order to get then to work with the base code without special versions
lib - the VS specific linking lib
if you compile the template project you'll see a 60kb exe that is your final game. to run it copy it to some place and copy also all the dlls from the bin dir plus the php stuff from the original source code. if you run it you'll get the test6 on your screen and this time without using mingw or dev-cpp.
WAIT there are some pre-requirements:
Since i'm the huge post guy here they are
visual studio express (this is kind of obvious!)
Download and install from:
http://msdn.microsoft.com/vstudio/express/visualc/
and then you'll need the microsoft platform SDK otherwise you VS will only compile .NET stuff...
Microsoft Platform SDK
Download:
http://www.microsoft.com/downloads/deta ... c0c0716adb
Install to: C:\Program Files\Microsoft Platform SDK
The Platform SDK will say it is the Platform SDK for windows 2003... don't worry it is the same for all windows (XP, 2003 and Vista).
Now we need to configure the Visual Studio Express. Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box. Add the paths to the appropriate subsection:
- Executable files: C:\Program Files\Microsoft Platform SDK\Bin
- Include files: C:\Program Files\Microsoft Platform SDK\Include
- Library files: C:\Program Files\Microsoft Platform SDK\Lib
(i put these as the always as 2nd entry, so if my project has a file with the same name it will be prefered)
Once this is done close VS and update the C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\corewin_express.vsprops file. Change where it reads:
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"
At this moment you're able to build Win32 apps on your VS but your wizards will not show you an option to create Win32 apps, to enable it you need to edit the file AppSettings.htm file located in the folder C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\.
In a text editor change from true to false the lines 437 - 444 inside the if statement:
if (window.external.FindSymbol("IS_EXPRESS_SKU"))
{
SUPPORT_ATL.disabled = false;
support_atl_title.disabled = false;
SUPPORT_MFC.disabled = false;
support_mfc_title.disabled = false;
WIN_APP.disabled = false;
WIN_APP_LABEL.disabled = false;
DLL_APP.disabled = false;
DLL_APP_LABEL.disabled = false;
}
Save and close the file and open Visual C++ Express.
When you compile the example you'll notice that it is a Win32 Console Application therefore a ugly console will popup with the debug from your app. This is pretty cool for debugging but once you're done with it you can turn it off. Turning it off is a PITA. You have the complicated way:
Change you int main(int argc, char** args) to int WinMain(loads off stuff but no argc, args). Then you need to implement some nasty functions to generate argc and args and MS has some but they mess up when you have / and ".
The old-skool way

build as a console app then use editbin which is part of VS. do:
editbin /SUBSYSTEM:WINDOWS your.exe
this will remove the allocated console and all the debug info. And now you have a full windows app without the nasty console (and no debug either).[/b]