Click to See Complete Forum and Search --> : C# class in mfc


robbi11880
January 14th, 2009, 10:04 PM
Hello at all,

i wrote an little Data Access Layer in C# with .NET.
Now I want to use it in an unmanaged visual c++ MFC code, createt in VS 6.

Is it possible to use my DAL in this older project? How can I easily do this? Do you know some Tutorials therefore?

Do you know some DAL examples in C# for "looking up" to optimze my one.

Best regards, Robbi

Arjay
January 14th, 2009, 11:00 PM
Is it possible to use my DAL in this older project?Kind of.

How can I easily do this? . You could do this by exposing your DAL via COM and then call it from C++. It wouldn't be simple.

Do you know some Tutorials therefore?
Search MSDN for "COM callable wrapper".