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