Solved

Unresolved Token delete when writing managed wrapper class

Posted on 2004-09-02
2
289 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
2 Comments
 
LVL 6

Accepted Solution

by:
Svetlin_Panayotov earned 250 total points
Comment Utility
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
Comment Utility
Still don't know why it wouldn't recognize delete, but I've left points anyway.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  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 …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now