How in VC++ .NET to set English to character of MS Agent?

D

Dr. Zharkov

Hello. In project on Visual Basic .NET 2003 (File, New, Project, Visual
Basic Project, Windows Application) after occurrence of Genie of Microsoft
Agent and pressing of key Scroll Lock below Genie there is help "Genie is
listening for command", and further it is possible to operate Genie through
commands in a microphone. That Genie understood commands in English, in a
code on Visual Basic one line is written down:

myGenie.LanguageID = &H409S



In project on Visual C++ .NET 2003 (File, New, Project, Visual C++ Projects,
(.NET), Windows Forms Application (.NET)) after occurrence of Genie and
pressing of key Scroll Lock below Genie there is a help in Russian "Genie
does not listen. Input of speech is in Russian inaccessible", and further,
naturally, it is impossible to operate Genie through commands in a
microphone. In the project on Visual C++ I tried to write down below a code



using namespace Interop;

static AgentObjects::IAgentCtlCharacterEx* myGenie;

static String* DATAPATH_1 = "genie.acs";



private:

System::Void button1_Click(System::Object * sender,

System::EventArgs * e)

{

axAgent1->Characters->Load("Genie", DATAPATH_1);

myGenie = axAgent1->Characters->Character("Genie");



similar code of type:



myGenie->LanguageID = &H409S; // Error at building.

myGenie->set_LanguageID(409); //Error at Start.



but there are error messages. In MSDN on this question it is written
nothing, on a site microsoft.com/msagent are given samples of 1998, and
there is no support.



Inform, please, some variants of this line of a code on Visual C++, to set
English (US) to the character of Microsoft Agent.



Beforehand many thanks for the answer, Dr. Zharkov V.A., Moscow, Russia.
 
D

Dr. Zharkov

Dr. Dmitri Klementiev has informed me, that this line with Visual Basic



myGenie.LanguageID = &H409S





on Visual C++ notes so:



myGenie->LanguageID = 0x409;



Now Genie fulfills voice commands in English.

Many thanks. Dr. Zharkov V.A. Moscow, Russia.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top