?
Solved

Unresolved Token delete when writing managed wrapper class

Posted on 2004-09-02
2
Medium Priority
?
305 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 750 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
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…
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.
Suggested Courses

762 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