Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3046

[RESOLVED] DLL using GetProcAddress no exporting performed in DLL

$
0
0
HI,

I am creating a very simple DLL, and I have the LoadLibrary problem temporarily fixed, I now face an issue where GetProcAddress does not find any exported functions. Not sure what the DLL defines may be missing but any input would be greatly appreciated. This is for a very simple/crude timer using Sleep as the timer. Need it for a System Dialog that pops up when obj.click is called in HTML and prevents the program from continuing automation. Looking to use this DLL as a way to press the OK button on the DLG box and move on without human interaction. Below is the DLL code, so if you point out why the functions are not being exported would be greatly appreciated. I do get a 127 error "Procedure not defined", so it is most definatly the DLL.

Code:

#define EPIQUTIL_EXPORTS;


#ifdef EPIQUTIL_EXPORTS
#define EPIQUTIL_API __declspec(dllexport)
#else
#define EPIQUTIL_API __declspec(dllimport)
#endif

// The functions needed to interface with VBA EPIQ Utils

// This function must be called before any other function.
extern "C" EPIQUTIL_API void EPIQ_init(const long MyWaitTime);

Suggestions?


UPDATE: Found out that none of the functions are being exported, that would explain GetProcAddress failing. Used DependenciesGui to discover this. So now the question is how do I get them to export? I thought that with __declspec(dllexport) that VC would take care of exporting the functions. Any suggestions to this issue would be greatly appreciated.


UPDATE2: I had MVS generate a DLL with exports and even their own creation does not export a single thing. Help!!

Viewing all articles
Browse latest Browse all 3046

Trending Articles