See more:
(untagged)
Hi Gang:
This C++ newbie is getting frustrated.
I've written an instrument driver in native C++ for a client. I need to wrap it in a DLL that can be called by their existing application. One of my deliverables is a simple test application that demonstrates the DLL's functions.
I never anticipated having this much trouble! I haven't found a way to call a simple DLL. The example from a book I have doesn't work and the example in MSDN doesn't work. I'm using VS 2005.
Here's the error I get for calling a very simple DLL with a very simple console application:
Error 1 error LNK2019: unresolved external symbol "public: static double __cdecl MyFuncs::MyMathFuncs::Add(double,double)" (?Add@MyMathFuncs@MyFuncs@@SANNN@Z) referenced in function _wmain ExecDLL.obj
I've set the path to the DLL in the project properties. It seems like it is seeing the code in the header file: "__cedcl MyFuncs...etc.
But I'm stuck. If I had a simple example that worked, I can build from there.
I'll REALLY APPRECIATE any help.
Thanks,
Roger