Solved

Unresolved Token delete when writing managed wrapper class

Posted on 2004-09-02
2
304 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

705 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