Ok, I got to this:
#include <iostream>
#include <Windows.h>
#include <conio.h>
using namespace std;
typedef int (*MsgFunction)(int);
HINSTANCE hinstDLL ;
int main()
{
MsgFunction MsgBox(0) ;
hinstDLL = LoadLibraryA("FXCM.dll") ;
if(hinstDLL != 0)
{
MsgBox = (MsgFunction)GetProcAddress(hinstDLL, "MsgBox");
}
if(MsgBox == 0)
{
cout << "MsgBox is NULL \n";
}
int x = MsgBox(5);
if(x == 5)
{
cout << "Message Displayed! \n" ;
}
FreeLibrary(hinstDLL) ;
return 0 ;
getch() ;
}
Works, how do I call BrokerOpen function, because I get this after I try to run the file