Ok ... allora prova ad utilizzare la specifica

extern "C"

per la funzione test

codice:
extern "C" {
  MT4_EXPFUNC bool __stdcall test(char* k){
    return (TRUE);
  }
}