Whenever I use libload, I get a result of 0. Which means it didn't like it for some reason.
The DLL works fine when implicitely load from a small C++ app I made to test the DLL.
Here's the source of my barebone DLL.
Code: Select all
// File: SampleDLL.h
//
#ifndef INDLL_H
#define INDLL_H
extern "C"
{
#ifdef EXPORTING_DLL
extern __declspec(dllexport) int HelloWorld() ;
#else
extern __declspec(dllimport) int HelloWorld() ;
#endif
}
#endif
Code: Select all
// SampleDLL.cpp
#include <windows.h>
#define EXPORTING_DLL
#include "sampleDLL.h"
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
extern "C"
{
int HelloWorld(void)
{
return 1;
}
}
Code: Select all
Let>lib="C:\Users\fbeaucha\Documents\testlib\Release\testlib.dll"
LibLoad>lib,hDll
LibFunc>hDll,HelloWorld,r
LibFree>hDll
Any help would be greatly apreciated.