Solved

Unresolved Token delete when writing managed wrapper class

Posted on 2004-09-02
2
302 Views
Last Modified: 2013-12-03
I am new to managed c++.  I am writing a managed wrapper for an unmanaged class.  When I compile I get
error LNK2020: unresolved token (0A00000C) delete
I'm assuming this is referring to the delete in the destructor of the unmanaged class.  How do I get rid of this?
Thanks,
0
Comment
Question by:kayhustle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 250 total points
ID: 11970375
Just idea - try to use LocalFree() / GlobalFree() instead delete.I had similar problem - but at runtime - and this worked for me.

Svetlin
0
 
LVL 1

Author Comment

by:kayhustle
ID: 11986260
Still don't know why it wouldn't recognize delete, but I've left points anyway.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C++ to C# code conversion issue 4 128
How to determine if the result of an equation is an integer in C++? 3 32
boost::uuid crashes 17 61
Text effect for logo 17 62
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question