CSExeCOMServer . how to access the same process from C# project

Jun 22, 2010 at 3:52 PM
Hi All, i have successfully created the CSExeCOMServer and registered. i could use the server from multiple MFC application, Only one instance was running in the system so i could able to share the data's between the applications (i have a static member variable in the server). But if i invoke (use) the same server from C# application, it seems the server object (new) is running in the applications address space. And application is communicates with the object running on the same address space, not the original COM Server which is shared by all the MFC applications. Can any one sched some light on this. My intention is, i would like to share the data between C# and MFC application. Thanks in Advance. Anbhu
Jun 22, 2010 at 4:39 PM

using the Type method, i have done it.

Type simpleObjType = Type.GetTypeFromProgID("CSExeCOMServer.CSSimpleObject");

simpleObjType.Invoke(..,.., ..);

Do we have any other methods , other than the above mentioned?.

Because in this method, i need to have some wraper kind of functions to invoke every member of the server. Otherwise i need to create the TypeObject and Type in every place?.


Any helps?