Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: SDK CPP
A ".C" source compiles clean and the resulting DLL loads and executes normally. If I rename the same source as a ".CPP" it also compiles and links clean, but AddExtender() fails to load the ".CPP" version. Instead I get a "3395: Not a valid extender" error.
I'd like to be able to generate the DLL from a .CPP to be able to use MFC and incorporate DAO (MS Access) functions. Adding DAO to a .C source is an excellent way to generate a couple hundred thousand compile errors. In fact, I suspect that you could set a new world record that way, as far as nasty compiles go.
Advice please. Can I build a true C++ DLL that AddExtender will accept, and if so, how?
Would it be difficult to add an "AddExtCPP()" function to permit use of C++ generated DLLs?
We've tried in the past with older compiler and gave up. The newer compiler might have some options to allow the name not to be mangled.
There is some utility that can display the names for you (or make a MAP file from the link) to see that names you are getting.
The extender load process basically does a LoadLibrary on the extender, then tries a GetProcAddress to get the entrypoint name. If it cannot find it, it whines and claims that it is not a valid extender DLL.
Article ID: W12586
Filename: Problem Creating Extender DLL from CPP.txt
File Created: 2017:07:28:12:58:14
Last Updated: 1999:04:15:15:48:14