468,512 Members | 1,592 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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

Hi

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

class UnManaged
{
UnManaged(){}
~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()
}

~ManagedClass()
{
deelte m_objClass;
}

private:

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
_mainCRTStartup

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

Thanks in advance

Jul 21 '05 #1
0 992

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
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.