Hi,
I have created a simple DLL with Dev-C++. The DLL .CPP file has this:
The .H file has a function prototype for the above code.Code:#include "C:\Dev-C++\programs\dll2\MainDll.h" #include <stdio.h> #define EXPORT __declspec(dllexport) EXPORT void __stdcall printMessage() { printf("Hello"); }
The DLL file is created just fine. I can use this DLL in my other Dev-C++ programs without any problem.
I am trying to use this in VB6
This produces "cannot find DLL entry point".Code:Private Declare Function printMessage Lib "C:\Dev-C++\programs\dll2\dllproj.dll" ()
I have not included any windows references inside my DLL code. I am trying to use this regular DLL with VB. I think that is my problem.
I have searched this site for solutions but none seem to fit. Any input would be welcomed.
Regards,
ChuckB




Reply With Quote