Author Topic: FYI: MSVC 2005 project files  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

Offline redmenace

  • 211
Re: FYI: MSVC 2005 project files
oh sorry. When if ever you try and use speech sdk, changes to the actual code must be made to make it work.
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline takashi

  • Better than TrashMan
  • 29
Re: FYI: MSVC 2005 project files
what kind of changes?

 

Offline redmenace

  • 211
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline redmenace

  • 211
Re: FYI: MSVC 2005 project files
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.
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: FYI: MSVC 2005 project files
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).

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: FYI: MSVC 2005 project files
what kind of changes?

  • You can also choose from a variety of SEXP subcategories to show your SEXP in.
  • Sexp_help[] has been moved to code/parse/sexp.cpp (So you only have to change code/parse/sexp.cpp and code/parse/sexp.h to add a new SEXP)
-C

  

Offline redmenace

  • 211
Re: FYI: MSVC 2005 project files
I am not sure how we want to handle the custom header file from the sdk. Any thoughts?
Government is the great fiction through which everybody endeavors to live at the expense of everybody else.
              -Frederic Bastiat