Marshalling a class intance's pointer between C++ and C# -


I have an ActiveX control (written in C ++) and the reference is that the RCW assembly from the C # project (Alicamp Is created by .exe).

In the C ++ code that enforces Excel control, I have to apply an interface that is exposed as X control property.

Looking at the generated RCW assemblies, see I interface and I can try to declare a variable of its type.

Now, if I have an example of a C ++ class that implements the interface in memory, is it possible to manage its data? C # objects represent the interface using that pointer ?

Please note that this is not the interface pointer. This is the indicator for my class example.

You may want to give C ++ / CLI a try. Writing code which varies between C ++ and C #, it is a snap.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -