CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: C# class in mfc

  1. #1
    Join Date
    Jul 2008
    Posts
    10

    C# class in mfc

    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

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: C# class in mfc

    Quote Originally Posted by robbi11880 View Post
    Is it possible to use my DAL in this older project?
    Kind of.

    Quote Originally Posted by robbi11880 View Post
    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.

    Quote Originally Posted by robbi11880 View Post
    Do you know some Tutorials therefore?
    Search MSDN for "COM callable wrapper".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured