470,870 Members | 993 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

problem while wrapping unmanaged c++ code in managed c++


I have created a unmanaged class in a header file UnManaged.h

class UnManaged
void HelloWorld(){}

I also created a .Net C++ class library to wrap this class and included the
header file "UnManaged.h" .

The Managed wrapper class definition follows,

__gc class ManagedClass

public ManagedClass()
m_objClass = new UnManaged()

deelte m_objClass;


UnManaged* m_objClass;

while building the class library code in .Net i am getting the following error

error LNK2019: unresolved external symbol _main referenced in function

Could anyone tell met why this linker error came and how to reolve this issue?

Thanks in advance

Jul 21 '05 #1
0 1054

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by David Kantowitz | last post: by
reply views Thread by Arthur Roodenburg | last post: by
4 posts views Thread by CristianMori | last post: by
8 posts views Thread by Nadav | last post: by
1 post views Thread by jsroberts | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.