[gme-users] Passing user data in for events.

Zoltan Molnar zolmol at isis.vanderbilt.edu
Fri Dec 2 14:26:44 CST 2005


Please try to use 

gme.RootFolder.Associate( filename);

Instead of 

> terr.Associate((MGALib.MgaObject)gme.RootFolder,filename);

Br, Zoli

> -----Original Message-----
> From: gme-users-bounces at list.isis.vanderbilt.edu 
> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf 
> Of Daniel Waddington
> Sent: Friday, December 02, 2005 2:10 PM
> To: gme-users
> Subject: [gme-users] Passing user data in for events.
> 
> 
> Hi,
> 
> I am using  a .NET object to trigger an event on a Root 
> Folder object  
> through the IMgaProject interface. But I can't seem to get the  
> VARIANT param filled in on the AddOn side (which is handling 
> the event).
> 
> this is what I do...
> 
> gme.BeginTransaction 
> (terr,MGALib.transactiontype_enum,.TRANSACTION_GENERAL);
> gme.CreateTerritory(null, out terr, null);
> 
> string userdata = "hello"; 
> terr.Associate((MGALib.MgaObject)gme.RootFolder,filename);
> 
> gme.RootFolder.SendEvent(0x00010000);
> gme.CommitTransaction();
> 
> But on the other side the variant is empty. What am I do wrong?
> 
> Thanks,
> Daniel.
> 
> ===============================
>   Dr. Daniel G. Waddington
>   Lockheed Martin ATL
>   3 Executive Campus, 6th Floor
>   Cherry Hill, NJ 08002
>   Tel:856 792 9740
> ===============================
> 
> 
> 
> 
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> 


More information about the gme-users mailing list