Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Banzif
Newbie


Joined: 30 Oct 2008
Posts: 1

PostPosted: Sat May 02, 2009 1:40 am   

CMUD COM Question
 
So I've been playing around getting CMUD to communicate with C# code through COM. I've gotten CMUD to make calls to the C# object, but I haven't been able to use CMUD's COM interface much from C# code.

Code:

Type oType = Type.GetTypeFromProgID("Cmud.Application");
if (oType != null)
{
     COMCMUD.Application app = (COMCMUD.Application)Activator.CreateInstance(oType);
     COMCMUD.cMUDSession session = app.CurrentSession;



Getting the Application works, but everything I've tried to get the session always ends up giving null. I don't have a lot of experience with COM and I'm just kinda playing around with it, but anyone have any helpful hints on where to go from there?
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Sat May 02, 2009 3:30 am   
 
I've never much messed with the z/cmud com interface, but i believe the cmud interface closely aproximates the zmud one. You might find these articles helpful.

http://www.zuggsoft.com/page.php?file=zmud/comzmud.htm
http://www.zuggsoft.com/page.php?file=zmud/comserve.htm

Keep in mind ...

Zugg wrote:
That API is only used for zMUD compatibility. The newer API is the LUA interface, which does have access to buttons and events.
_________________
"To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net