Hi,
I have been struggling with a dll for VBA, but now I'm closer to the finish line, thanks to all the help here.
Now my issue is that I can't determine the proper way to make the function call to the dll with the function pointer returned from GetProcAddress.
Here is my code. Please advise
Code:
If (hinstLib <> Null) Then
ProcAddress = 0
ProcAddress = GetProcAddress(hinstLib, "EPIQ_init")
call void(ProcAddress) (1000);
End If
Code:
#ifdef EPIQUTIL_EXPORTS
#define EPIQUTIL_API extern "C" __declspec(dllexport)
#else
#define EPIQUTIL_API extern "C" __declspec(dllimport)
#endif
// The functions needed to interface with VBA EPIQ Utils
// This function must be called before any other function.
EPIQUTIL_API void EPIQ_init(const long MyWaitTime);
what am I doing wrong with the function call?