R
Robert Ginsburg
I have a mixed mode C++ dll, mostly it is unmanaged code that currently
communicates with a remote server over DCOM. I am trying to plug in the new
IPCChannel remoting provider to replace the DCOM (the replacment server is
in C#). (I cant CLR enable the whole dll, and just use managed classes due
to an ATL framework error/bug that I posted a question on previously).
I have created a new unmanaged class in the project and clr enabled that
class. It has to be an unmanaged class so that the existing unmanaged
classes can use it and include it's header. Well all of this works fine if
I connect and call the channel on every method, but I want to keep a
persistant reference to the remote object in an instance of the class. I
cant declare the managed instance variable in the header because it is
included in the unmanaged code and the compiler wont let me . I have tried
to declare an void pointer and then pin it up using the GCHandle::Alloc .. ,
this compiles but throws an error since the remote reference is
"non-blittable".
Any thoughts or help is appreciated
Robert
communicates with a remote server over DCOM. I am trying to plug in the new
IPCChannel remoting provider to replace the DCOM (the replacment server is
in C#). (I cant CLR enable the whole dll, and just use managed classes due
to an ATL framework error/bug that I posted a question on previously).
I have created a new unmanaged class in the project and clr enabled that
class. It has to be an unmanaged class so that the existing unmanaged
classes can use it and include it's header. Well all of this works fine if
I connect and call the channel on every method, but I want to keep a
persistant reference to the remote object in an instance of the class. I
cant declare the managed instance variable in the header because it is
included in the unmanaged code and the compiler wont let me . I have tried
to declare an void pointer and then pin it up using the GCHandle::Alloc .. ,
this compiles but throws an error since the remote reference is
"non-blittable".
Any thoughts or help is appreciated
Robert