Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: WMCoolmon on January 14, 2007, 04:07:25 am

Title: MSVC 2003 Project File Update
Post by: WMCoolmon on January 14, 2007, 04:07:25 am
I've moved all of the MSVC 7 project files to the MSVC 2003 folder, updated them, and committed them to CVS. You should be able to simply check out the project and compile right out of the box, assuming you have the Speech API installed, and have added the lib and include paths to MSVC 2003.

Speech API setup
Tools->Options->Projects->VC++ Directories, look for "Include files" and "Library files" in the pulldown boxes, and click the magical directory icon to add the appropriate directories.

If you installed everything to the default directories, "C:\Program Files\Microsoft Speech SDK 5.1\Lib\i386" will be the library files directory. "C:\Program Files\Microsoft Speech SDK 5.1\Include" will be the include files directory.

Notable changes:

Stuff that I didn't take care of:
Title: Re: MSVC 2003 Project File Update
Post by: Bobboau on January 14, 2007, 04:44:33 am
what about 2005 though?
Title: Re: MSVC 2003 Project File Update
Post by: WMCoolmon on January 14, 2007, 05:15:27 am
2005 can probably update from these project files and compile out of the box, too. I don't have 2005 though, so I can't test the theory to see if it actually works.
Title: Re: MSVC 2003 Project File Update
Post by: Backslash on January 16, 2007, 12:22:46 am
Thank you WMCoolmon!  This saved me loads of time after a system upgrade.  :yes:

Confirmed, 2005 had no problems converting the project files.  Much better than what I was doing before.
Title: Re: MSVC 2003 Project File Update
Post by: Bobboau on January 23, 2007, 07:34:26 am
"WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)"?

and there are a bunch of warnings about type conversions the ones that looked most serious were things like 'int to ubyte' when ubyte was a 'flags' variable (in bmp_man)
Title: Re: MSVC 2003 Project File Update
Post by: Backslash on January 23, 2007, 05:37:02 pm
Heh, oops, correction... when I said 'no problems' I meant 'no problems with my current code tree'.  On trying to enable text-to-speech and Direct3D again, a bunch of errors crop up... but that's probably just some include things I need to track down.

Another problem: the openal/include/*.h files are all in Mac format, which is fine for 2003 but for some stupid reason 2005 complains about it. :ick:  Is it all right if I convert them to Unix format?  You'll hate the commit log :D but it'll end up compatible with everyone...
Title: Re: MSVC 2003 Project File Update
Post by: taylor on January 23, 2007, 06:16:41 pm
Another problem: the openal/include/*.h files are all in Mac format, which is fine for 2003 but for some stupid reason 2005 complains about it. :ick:  Is it all right if I convert them to Unix format?
Mac format is Unix format.  There is an older Mac format, but it's used the Unix EOL char for years now.  If it's wrong then it is likely due to a client side issue rather than because it's wrong in CVS.
Title: Re: MSVC 2003 Project File Update
Post by: WMCoolmon on January 24, 2007, 03:56:22 am
"WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)"?

and there are a bunch of warnings about type conversions the ones that looked most serious were things like 'int to ubyte' when ubyte was a 'flags' variable (in bmp_man)

Yeah I remember those. I started to try and fix them, but stopped when I realized that I wasn't sure if I could get away with it without breaking anything.