Functions are not exported from Visual C++
Posted on 2001-08-23
I am compiling a MSVC++ API DLL (win32) project, and cannot seem to "find" my exported functions in the DLL. (Using Quickview - there are no exports. When linking to DLL - it says function not found)
I have tried using the __declspec ( dllexport ) prefix on the function prototypes (as per documentation) and also using the DEF file with an EXPORTS section.
Now - one funny thing I am doing is: My functions are in "C" files only. I am using the extern wrapper for the prtototypes.
This allows me to call the functions from a C++ file.
Could this be messing up my export? Do I have to provide C++ stubs for my C functions?
(In Borland C++ 5.02 this DLL compiles, exports and runs perfectly - have to port this to Microsoft unfortunately)
Thanks in advance