I'm trying to create a dll from a C++ project
I followed this link:
using a class defined in a c++ dll in c# code
And I encountered a problem:
DLL entry point "int __cdecl main (int, wchar_t * * const)" (? Main @@ $$ HYAHHQAPA_W @ Z) cannot be managed; compile to native
I changed the int main
to:
int _tmain (int argc, _TCHAR * argv [])
But I ran into a problem:
unresolved external symbol _main