"Missing required export functions" error for my dll

G

Guest

I wrote and compiled a dll without error. When running the app that calls my dll, I get

"Missing required export functions at <filepath to my dll>

The dll was created with Visual C++ .Net (Version 7). I left the various files that were automatically created for my project (my_dll.cpp, my_dll.def, stdafx.cpp, stdafx.h) intact. I added a new .cpp file which contained my code and a header file that goes with it

When I look at my_dll.def, it does list all the three functions from my .cpp file that should be exposed

Is there something else I have to do to create the dll

(Oh yes, I had to change the project's Precompiled Headers property to "Not Using Precompiled Headers".

Thank you.
 
D

David Lowndes

I wrote and compiled a dll without error. When running the app that calls my dll, I get:
"Missing required export functions at <filepath to my dll>"

How are you calling your DLL function?
When I look at my_dll.def, it does list all the three functions from my .cpp file that should be exposed.

Have you examined your DLL with the depends utility - that will let
you see the exported names as they are.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top