[Dev-C++] Problem using DLL (compiled in DEV-C++) in Visual Basic
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Elektro <el...@wo...> - 2001-08-21 16:18:34
|
Somebody has compiled a DLL in DEV-C++ and used in VB later ?
I have compiled a DLL in DEV-C++ but it don=B4t work in VB, I have the=
message "DLL convention call type is incorrect"
#include <windows.h>
# define DLLIMPORT __declspec (dllexport)
BOOL WINAPI DllMain( HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved){
return TRUE;
}
DLLIMPORT int suma(int a,int b){
return a+b;
}
DLLIMPORT int resta(){
return 7*8;
}
DLLIMPORT int multiplica(int a,int b){
return a*b;
}
DLLIMPORT int nada(){
return a*45;
}
|