troubleshooting Question

Linker errors LNK2019/LNK1561 (entry points) building custom wrapper (CRCW) code using C++ interop to use COM API DLL

Avatar of Xtreem
XtreemFlag for United Kingdom of Great Britain and Northern Ireland asked on
Visual C++.NET
2 Comments1 Solution1325 ViewsLast Modified:
I have implemented the code on this MSDN page in Visual Studio 2003:

It was created from the 'Add New Project' dialogue using 'Visual C++ Projects>>Empty Project (.NET)', which is an empty project that uses managed extensions for C++.

It compiles but I get a linker error:
error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup

...which I solved using the Accepted Answer from, namely

However, now I'm getting:
fatal error LNK1561: entry point must be defined

Judging from the Accepted Answer in, it would seem that the problem is due to including comdef.h as the Accepted Answer suggests using managed Math class rather than unmanaged math.h for that Question's particular problem, as opposed to the solution described in

I seem to be almost there, but still got one or two small obstacles yet to overcome. Any ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros