nilmer Posted November 18, 2003 Posted November 18, 2003 hello, Is anyone familiar with incorporating Ms agents into a .net app? i found this information for VB, but it does not appear to be valid for .net In the General | Declarations section of you form, add this code: Dim Merlin As IAgentCtlCharacter 'This _ "creates" Merlin Const MERLINPATH = "Merlin.acs" '"Merlin.acs" _ is Merlin's character file. Next, add the following code to the form's Load event: Agent1.Characters.Load "Merlin", MERLINPATH '"Loads" _ Merlin. Set Merlin = Agent1.Characters("Merlin") 'Without _ this code, every time you wanted you make Merlin _ do something, you would have to type _ "Agent1.Characters("Merlin")". With this _ code, you just have to type "Merlin". Quote
Moderators Robby Posted November 18, 2003 Moderators Posted November 18, 2003 Here's a sample in C#, http://www.devarticles.com/art/1/298/3 It should be the same thing n VB.NET Quote Visit...Bassic Software
Mehyar Posted November 18, 2003 Posted November 18, 2003 The url Robby posted is great. C# and VB.NET are pretty much identical. Here is another url for a sample project VB.NET .... http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=394&lngWId=10 Quote Dream as if you'll live forever, live as if you'll die today
nilmer Posted November 18, 2003 Author Posted November 18, 2003 perfect thanks for the help both of you Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.