473,398 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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


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.
Nov 17 '05 #1
1 1395
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ricky Romaya | last post by:
Hi, Anybody could show me a regex for capturing words (alphas, without numerics) in languages other than english (languages with special characters i.e. french, german)? I've tried '+' but the...
0
by: James Lee | last post by:
Hi, I'd like to be able to store both English and Korean in my table. Currently, it only supports English. I understand that I can use the command: Alter Table my_table to alter my...
5
by: Ahmad | last post by:
Hi all, I have written a simple c++ app, as I'm still learning c++. The thing works flawlessly on VC++6, but just doesn't work on g++. The transliterate function which causes the problem is...
18
by: OrenFlekser | last post by:
Hi I've posted this message couple of days ago, but I can't find it now, so sorry if you see it twice... Anyways - I have a text box, and I want my users to be able to write only in english...
4
by: HeroOfSpielburg | last post by:
Hello, I am trying to using the Shift_JIS character set in my web pages, and have specified it as such in the <head>. <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> ...
0
by: Dr. Zharkov | last post by:
To see character of Microsoft Agent in Visual Basic .NET 2003, we create the project: File, New, Project, Visual Basic Project, Windows Application. In Form1 we place two controls: Button and...
0
by: Dr. Zharkov | last post by:
To see character of Microsoft Agent in Visual Basic .NET 2003, we create the project: File, New, Project, Visual Basic Project, Windows Application. In Form1 we place two controls: Button and...
7
by: Frederico Pissarra | last post by:
Recently I tried to use -G5 option on CL compiler (from Visual Studio 2005)... To my surprise, there is no processor specific optimizations anymore! Is that correct? Is so, why? s Fred
6
by: Mohamed Fysal | last post by:
Hi, I have a major problem. I am using a VB exe which is having a structure declared and it looks like below Public Type SCANNEDIBUTTNO IButtonUserNumber As String * 32
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.