Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: phreak on January 30, 2007, 01:17:09 pm

Title: FYI: MSVC 2005 project files
Post by: phreak on January 30, 2007, 01:17:09 pm
The MSVC 2005 projects are extremely out of date, a bunch of files and libraries aren't included.  However, I'm working on them since I got MSVC 2005 for free through school.  I've rebuilt the project file by hand for Freespace2 debug, code debug, liblua debug, libjpeg debug (and it runs!).  Still need to work on the release versions of the previous projects as well as both versions for fred2.
Title: Re: FYI: MSVC 2005 project files
Post by: Bobboau on January 30, 2007, 03:30:58 pm
I just imported the 2003 ones
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on January 31, 2007, 10:09:00 am
hehe.  I should have done that, but I think i cleaned out all of the old stuff by building it by hand.

also, is it safe to build FSO using /fp:fast as opposed to /fp:precise (default):  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/floapoint.asp
Title: Re: FYI: MSVC 2005 project files
Post by: taylor on January 31, 2007, 10:37:40 am
It would be fine as far as I know, assuming that it works fine for you.  Most of the :v: code is tailored more for speed over accuracy anway so I don't see it being that big of a deal.  I think that there are a few places where accuracy is a little more important, but I don't think that the optimization will actually affect those places that much.
Title: Re: FYI: MSVC 2005 project files
Post by: WMCoolmon on February 01, 2007, 03:02:51 am
If you don't mind, update or delete the MSVC2005 files in CVS...there's not much point to having them in CVS if they don't compile at all.

I don't have 2005 installed.
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on February 01, 2007, 01:17:15 pm
yea i will update the project files once i add the fred2 project and get it to run.
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on February 02, 2007, 09:46:00 pm
i've just committed what i had and i'll do fred2 when i get around to it.  Didn't want the old project files accidentally overwriting the new ones
Title: Re: FYI: MSVC 2005 project files
Post by: Backslash on February 07, 2007, 10:21:53 pm
Excellent!

Let me know if you get speech or voice recognition working.  I had it working with 2003, but 2005 doesn't like the SDK or something.
Title: Re: FYI: MSVC 2005 project files
Post by: karajorma on February 08, 2007, 03:53:19 am
I'm going to bump this into the main SCP forum because a couple of people have been asking
Title: Re: FYI: MSVC 2005 project files
Post by: neoterran on February 08, 2007, 10:37:10 am
yeah, like me :D
Title: Re: FYI: MSVC 2005 project files
Post by: KeldorKatarn on February 14, 2007, 03:34:18 pm
Any news on this?
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on February 14, 2007, 07:41:19 pm
well when i posted my message, the build was working, but goober's added some additional files since then so i'll need to update the project files.  i also think fred is working as well.
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on February 14, 2007, 09:01:38 pm
updated project files

+1
Title: Re: FYI: MSVC 2005 project files
Post by: KeldorKatarn on February 16, 2007, 05:48:55 pm
On which branch? I keep downloading 3.6.9 and always getting the same old not working project file.
Is it on the HEAD branch? Or what do I need?
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on February 16, 2007, 10:35:03 pm
yes its on the head branch.  i may want to fix the project files for 3.6.9, but i rarely work on that branch.
Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 17, 2007, 01:13:48 pm
I resurect this thread...

Any work on getting the Voice SDK to work? I discovered that problem a long time ago when I got the professional version.
Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 17, 2007, 01:50:33 pm
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=147257&SiteID=1
Title: Re: FYI: MSVC 2005 project files
Post by: takashi on March 17, 2007, 05:54:04 pm
on the topic of code, how do you code in a SEXP?
Title: Re: FYI: MSVC 2005 project files
Post by: karajorma on March 17, 2007, 06:48:34 pm
http://www.volitionwatch.com/articles/ArticleDisp.php?ID=53
Title: Re: FYI: MSVC 2005 project files
Post by: phreak on March 18, 2007, 05:29:44 pm
that guide is sort of old since a few changes to the sexp files have been made, but overall its similar.

redmenace:  I have the voice sdk installed, but i never enable the compiler flag to turn it on.
Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 18, 2007, 05:57:37 pm
oh sorry. When if ever you try and use speech sdk, changes to the actual code must be made to make it work.
Title: Re: FYI: MSVC 2005 project files
Post by: takashi on March 18, 2007, 10:25:13 pm
what kind of changes?
Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 19, 2007, 12:30:55 am
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=147257&SiteID=1

It affects VS2005 only.
Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 21, 2007, 08:51:38 pm
Hey, I am working with a pull from November 2006. I fixed most of the issues with the speech sdk. But the speech.cpp is choking on this line:
Code: [Select]
return SUCCEEDED(Voice_device->Speak(Conversion_buffer, SPF_ASYNC, NULL));I got the error below:
1>..\..\code\sound\speech.cpp(160) : error C2664: 'ISpVoice::Speak' : cannot convert parameter 1 from 'unsigned short [10000]' to 'const WCHAR *'

Some help would be appreciated.
Title: Re: FYI: MSVC 2005 project files
Post by: taylor on March 21, 2007, 09:18:00 pm
You should just be able to change Conversion_buffer[] from "unsigned short" to "WCHAR" and that's it.  The types are the same as far as I know, but MS may have changed it a little, or they are just dealing with type-specific error conditions properly now (which is pretty much required for 64-bit platform support).
Title: Re: FYI: MSVC 2005 project files
Post by: WMCoolmon on March 22, 2007, 03:05:55 am
what kind of changes?

Title: Re: FYI: MSVC 2005 project files
Post by: redmenace on March 22, 2007, 04:26:58 am
I am not sure how we want to handle the custom header file from the sdk. Any thoughts?