|
Banzif Newbie
Joined: 30 Oct 2008 Posts: 1
|
Posted: 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? |
|
|
|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
|
_________________ "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 |
|
|
|
|
|