Re: Mixed mode woes (hopefully I simply dont get it )
- From: "Robert Ginsburg" <robert.ginsburg@xxxxxxxx>
- Date: Fri, 6 Jan 2006 11:48:03 -0500
My understanding is that the gcroot template requies managed support, so how
would I declare an instance var that used gcroot in the header used by
unmanaged classes ?
"Nishant Sivakumar" <nish@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:u$ECIxtEGHA.2380@xxxxxxxxxxxxxxxxxxxxxxx
> Not sure if this is useful, but have you looked at using gcroot?
>
> --
> Regards,
> Nish [VC++ MVP]
>
>
> "Robert Ginsburg" <robert.ginsburg@xxxxxxxx> wrote in message
> news:OC7invtEGHA.472@xxxxxxxxxxxxxxxxxxxxxxx
>>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
>>
>
>
.
- Follow-Ups:
- Re: Mixed mode woes (hopefully I simply dont get it )
- From: Tamas Demjen
- Re: Mixed mode woes (hopefully I simply dont get it )
- From: Nishant Sivakumar
- Re: Mixed mode woes (hopefully I simply dont get it )
- References:
- Mixed mode woes (hopefully I simply dont get it )
- From: Robert Ginsburg
- Re: Mixed mode woes (hopefully I simply dont get it )
- From: Nishant Sivakumar
- Mixed mode woes (hopefully I simply dont get it )
- Prev by Date: Re: Mixed mode woes (hopefully I simply dont get it )
- Next by Date: Re: get IP address by code
- Previous by thread: Re: Mixed mode woes (hopefully I simply dont get it )
- Next by thread: Re: Mixed mode woes (hopefully I simply dont get it )
- Index(es):
Relevant Pages
|
Loading