Thread: instantiate unmanaged object in managed code

  1. #1
    Registered User
    Join Date
    Jan 2006

    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
    Yes. Unless the class is marked as __gc/__value or you use __gc new, the object will be unmanaged.
    All the buzzt!

    "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, 02:22 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM