473,324 Members | 2,193 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,324 software developers and data experts.

How in VC++ .NET to see character of Microsoft Agent?

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 Microsoft Agent Control 2.0. We
write down a code:

Dim myGenie As AgentObjects.IAgentCtlCharacterEx

Const DATAPATH_1 As String = "genie.acs"

Private Sub Button1_Click(ByVal sender As System.Object, _

ByVal e As System.EventArgs) Handles Button1.Click

AxAgent1.Characters.Load("Genie", DATAPATH_1)

myGenie = AxAgent1.Characters("Genie")

myGenie.Show()

End Sub

After Start and click of button we see Genie.

To see character of Microsoft Agent in Visual C++ .NET 2003, similarly we
create the project: File, New, Project, Visual C++ Projects, (.NET), Windows
Forms Application (.NET). In Form1 we place two controls: button and
Microsoft Agent Control 2.0. We write down a code:

using namespace Interop;

static AgentObjects::AgentClass* myGenie =

new AgentObjects::AgentClass();

static String* DATAPATH_1 = "genie.acs";

private:

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

System::EventArgs * e)

{

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

myGenie->add_Show(0);

}

After Start and click of button we do not see Genie.

How in Visual C++ .NET 2003 to write down this code, to see character of
Microsoft Agent?

Beforehand many thanks for the answer, Dr. Zharkov V.A., Moscow, Russia.
Nov 17 '05 #1
0 1341

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

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"> ...
1
by: Edward Diener | last post by:
If you run this simple console program after building it on VC++ .NET 2003, you will see the error message, "Error getting initial stream position", from the attempt to use the...
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...
1
by: Dr. Zharkov | last post by:
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...
2
by: Paolo | last post by:
I imported a VC++6.0 project into VC++7.1. The conversion operation makes a mess with Preprocessor Definitions, adding a "$(NoInherit)" for each file. For example: I had a DLL project in VC++6.0...
3
by: Hamilton Woods | last post by:
Diehards, I developed a template matrix class back around 1992 using Borland C++ 4.5 (ancestor of C++ Builder) and haven't touched it until a few days ago. I pulled it from the freezer and...
3
by: =?Utf-8?B?RGlwZXNoX1NoYXJtYQ==?= | last post by:
Hi all, I am porting my code in VC++ to VC.net i.e managed. I have seen somewhere that i need to convert my char* to String*, but String * doesnt perform pointer arithmetic like String* p; *p++='...
1
by: =?Utf-8?B?UGF1bCBQaGlsbGlwcw==?= | last post by:
I have read many things about this but I haven't got a clear vision on what to do if anything about this. I have a system that tries to find holes in my web site. One of the things it has...
7
by: Ashutosh Bhawasinka | last post by:
Hi, I have a C# .Net application which needs to use some feature which can be only developed in Visual C++ (its extended MAPI). The C# exe will be supplied to users without a setup. What kind...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.