Im getting the following error when I try to do a DLL import:
I'm using VC++ 6, here's my DLL code:
(it's just a test function that returns 2X the value passed in)
I placed the DLL file in C
rogram Files/ MetaTrader - Alpari UK/ experts / libraries
I managed to get the MessageBox() function to work by importing user32.dll
Inserted Code
2009.08.03 00:47:51 dlltest USDCHF,H1: cannot call function 'tibbsNum' from dll 'tibbs.dll' (error 127)
Inserted Code
// tibbs.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#define MT4_EXPFUNC __declspec(dllexport)
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
MT4_EXPFUNC double __stdcall tibbsNum(const double x)
{
return x*2;
} I placed the DLL file in C
I managed to get the MessageBox() function to work by importing user32.dll