By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,919 Members | 1,587 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,919 IT Pros & Developers. It's quick & easy.

load c# dll from c++

P: 1
hello,
can someone please help me?

Topic: load c# dll from c++
I work in c++ (MFC) and I want to load my dll and operate functions within the dll (which is written in C#).

I tried write this:
#include <vcclr.h>
#using <mscorlib.dll>
using namespace System;
Assembly a = Assembly.LoadFile("Engine.dll");

but I get error use /clr option.
can somebody give me full example to load this dll?

somebody write that in order to do that I need to expose the C# .dll to COM
through interop and access it in C++ like you would any other COM
object.
but how can I write this in c++ (MFC)???

please help me,
jj
Jun 13 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.