Managed and Unmanaged C++ Interop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SantaClaus
    New Member
    • Feb 2007
    • 18

    Managed and Unmanaged C++ Interop

    Dear All,
    I have to include an unmanaged C++ header file in a managed C++ form file "Form1.h" and instantiate objects of unmanaged types. When I include the unmanaged file, I get all kinds of linker errors.

    Any Ideas??

    Please let me know.

    Thanks a lot,
    SC
  • chowsaikeet
    New Member
    • Jun 2007
    • 3

    #2
    Mind to share with us what type of errors you are getting?

    FYI: Interoperations between managed and unmanaged code are done through p/invoking.

    regards
    keet

    Originally posted by SantaClaus
    Dear All,
    I have to include an unmanaged C++ header file in a managed C++ form file "Form1.h" and instantiate objects of unmanaged types. When I include the unmanaged file, I get all kinds of linker errors.

    Any Ideas??

    Please let me know.

    Thanks a lot,
    SC

    Comment

    • Savage
      Recognized Expert Top Contributor
      • Feb 2007
      • 1759

      #3
      Originally posted by SantaClaus
      Dear All,
      I have to include an unmanaged C++ header file in a managed C++ form file "Form1.h" and instantiate objects of unmanaged types. When I include the unmanaged file, I get all kinds of linker errors.

      Any Ideas??

      Please let me know.

      Thanks a lot,
      SC
      Are u a real Santa?

      Savage

      Comment

      Working...