instantiate unmanaged object in managed code

This is a discussion on instantiate unmanaged object in managed code within the C++ Programming forums, part of the General Programming Boards category; I have C++ code in Visual studio 6 (unmanaged) that I would like to use in .Net (Managed C++ code). ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    1

    instantiate unmanaged object in managed code

    I have C++ code in Visual studio 6 (unmanaged) that I would like
    to use in .Net (Managed C++ code).
    Is it possible to instantiate an unmanaged object in managed code?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    Yes. Unless the class is marked as __gc/__value or you use __gc new, the object will be unmanaged.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. circular doubly linked list help
    By gunnerz in forum C++ Programming
    Replies: 5
    Last Post: 04-28-2007, 08:38 PM
  2. Making a script language?
    By Blackroot in forum Game Programming
    Replies: 10
    Last Post: 02-16-2006, 01:22 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 03:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21