By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,301 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,301 IT Pros & Developers. It's quick & easy.

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

P: n/a

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";


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 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.
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
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.
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.