Home > Back-end >  Master: vs 2010 MFC call Fortran DLL file error: Critical error detected c0000374
Master: vs 2010 MFC call Fortran DLL file error: Critical error detected c0000374

Time:10-03

Based on Fortran calculation advantage, made up a DLL file bxl1s. DLL, in order to offer reference,

Parameters and call _B1SWC @ 20

With vc + + interface, simple process, the main code is as follows:
 typedef void (__stdcall * LPFN) (double, double, double, double, double *); 

Void CtestbbView: : loadbxl1s ()
{

Double n_temp [10].
HINSTANCE hDLL;
LPFN LPFN;
HDLL=LoadLibrary (TEXT (" bxl1s. DLL "));

LPFN=(LPFN) GetProcAddress call (hDLL, "_B1SWC @ 20");

(* LPFN) (& amp; N_temp [0], & amp; N_temp [1], & amp; N_temp [2], & amp; N_temp [3], & amp; N_temp [4]);


FreeLibrary (hDLL);

return;
}


Void CtestbbView: : On32771 ()//menu items
{

Loadbxl1s ();
}


21 minutes, run the program error:
Critical error detected c0000374
  • Related