Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Stormkeeper on May 29, 2008, 08:44:06 am

Title: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 29, 2008, 08:44:06 am
I've been using VS 08 in school, so I wanna know if its compatible with 08. The source code I mean. Is there a 08 build, or do I have to do the conversion myself ?
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Wanderer on May 29, 2008, 08:51:20 am
Just use the MSVC2005 project... It should be able to make use of that - well at least mine is. Though remember that if you have only the Express Edition you are not able to compile Fred builds, only actual game builds (MFC issue).
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 29, 2008, 08:52:42 am
It forces me to convert.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Wanderer on May 29, 2008, 08:56:38 am
Then let it
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 29, 2008, 10:49:20 am
Yea, I did.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Wanderer on May 29, 2008, 11:51:36 am
So did you get it to compile?
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 29, 2008, 12:22:56 pm
Only warnings.

Seems to compile fine otherwise.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: chief1983 on May 29, 2008, 03:13:53 pm
Fred too?  If I remember I had to make a couple edits to a file to get Fred compiling to work.  Also, since I had it set up with Tortoise I just created a copy of the MSVC 2005 directory called MSVC 2008 or whatever, and let VS convert that instead.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 29, 2008, 09:53:38 pm
Fred too?  If I remember I had to make a couple edits to a file to get Fred compiling to work.  Also, since I had it set up with Tortoise I just created a copy of the MSVC 2005 directory called MSVC 2008 or whatever, and let VS convert that instead.

Iirc, I think Fred compiled fine. Is the folder in the svn ?
Title: Re: Visual Studios 2008 Compatibility ?
Post by: chief1983 on May 30, 2008, 01:18:28 am
Yeah, but on one of the configs it doesn't build by default, at least not for me after conversion.  I have to manually compile FRED every time for some reason, even when just hitting build solution.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: Stormkeeper on May 30, 2008, 05:55:44 am
Strange. I don't get that. I'll check when I get back on my laptop.

=edit=

Yea, it doesn't build by default.

Also, building the stock build results in errors.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: phreak on June 06, 2008, 09:20:34 pm
I'm getting VS2008 free through school via the MSDNAA.  I should have the vs2008 project files ready to go hopefully by the end of the weekend.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: chief1983 on June 07, 2008, 01:01:51 pm
And in SVN?  That'd be nice, then I might be able to use those and figure out why my builds don't read from the registry on Vista the same as everyone else's.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: phreak on June 07, 2008, 06:11:40 pm
probably because of this

Quote
This application has been updated to include settings related to the User Account Control (UAC) feature of Windows Vista. By default, when run on Windows Vista with UAC enabled, this application is marked to run with the same privileges as the process that launched it. This marking also disables the application from running with virtualization. You can change UAC related settings from the Property Pages of the project.

Quote
By default, the Visual C++ linker embeds a UAC fragment into the manifest of an application with an execution level of asInvoker. If your application requires administrative privileges to run correctly (for example, if it modifies the HKLM node of the registry or if it writes to protected areas of the disk, such as the Windows directory), you must modify your application.

The first option is to modify the UAC fragment of the manifest to change the execution level to requireAdministrator. The application will then prompt the user for administrative credentials before it runs. For information about how to do this, see /MANIFESTUAC (Embeds UAC information in manifest).

The second option is to not embed a UAC fragment into the manifest by specifying the /MANIFESTUAC:NO linker option. In this case, your application will run virtualized. Any changes you make to the registry or to the file system will not persist after your application has ended.

The fix is to change the launcher and FS2 to read from HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE in the registry.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: phreak on June 07, 2008, 07:05:34 pm
committed.  I also added multi-processor compiling for the release builds, it takes about 90 seconds to compile the whole codebase now on my quad extreme. (instead of something like 5 minutes).
Title: Re: Visual Studios 2008 Compatibility ?
Post by: chief1983 on June 07, 2008, 08:07:01 pm
Awesome, that even eliminated the need for those changes to some of the FRED code to make it compile.  I figured that was what needed to be done for Vista, my only concern was that my builds specifically seemed to be the ones that showed any trouble at all.  Wasn't sure what settings others were using that were getting around that.
Title: Re: Visual Studios 2008 Compatibility ?
Post by: phreak on June 08, 2008, 08:11:30 pm
Updated project files to include additional compiler optimizations.  I also added two additional release configurations for SSE/SSE2 builds.