Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Call C# managed dll from native c++ (for noobs)

$
0
0

Hello,

First of all I know this question has been asked around many times. Although I've been reading the same answers over and over and still didn't get much help. 

What I need is to instantiate a class built in a C# dll, which purpose is to retrieve images from a camera. This meaning I want to retrieve a byte[] or similar structure from it. My main application is hosted in a native c++ program, built using openFrameworks and a whole set of other libraries (thus I can't compile usint /clr).

I have very little experience on COM or .NET, I would like to be pointed towards the right direction. Up to this moment I know about several methods, as mentioned in the post "How to call C# dll from C++" (can't post links yet); but I'm not familiar with the COM nuances. I'm finding it hard to find the documentation I need. 

Does anybody know about basic COM reads I should start with? I have never worked with .NET and there are several new elements. Also, most of the information sources are for deprecated methods. 

I am using Visual studio 2010 and my C# library is built in .NET 2.0.

Best regards,

Sergio.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>