注释如下:[
]<br>var<br> LindoDllHandle :THandle;<br><br> ILINDO
rocedure; Stdcall; //定义过程变量<br> INIT
rocedure; Stdcall;<br> LUNOPN
rocedure(Lunit: PLongint; Lfname: PLongint; ByValKfname: Pchar; Inrout: PLongint; Notfmt: PLongint; Lutrmi: PLongint; Lutrmo: PLongint); Stdcall;<br> CAPOUT
rocedure(Dunit: PLongint); Stdcall;<br> QUIET
rocedure(j: PLongint); Stdcall;<br> DEFROW
rocedure(Idir: PLongint; Rhs: PSingle; Idrow: PLongint; Trouble: PLongint); Stdcall;<br> APPCOL
rocedure(ByValKname: Pchar; Nonz: PLongint; Value: PSingle; Idrow: PLongint; Trouble: PLongint); Stdcall;<br> GO
rocedure(Limgo: PLongint; Istat: PLongint); Stdcall;<br> REPROW
rocedure(i: PLongint; Primal: PSingle; Dual: PSingle); Stdcall;<br> REPVAR
rocedure(i: PLongint; Primal: PSingle; Dual: PSingle); Stdcall;<br> LSEXIT
rocedure; Stdcall;<br> MAKINT
rocedure(i: PLongint); Stdcall;<br>begin<br> //动态载入 " LNDDLL32.DLL " 文件<br> str := GetCurrentDir; //获得当前路径<br> str := str + '/LNDDLL32.DLL'; //指定库文件<br> LindoDllHandle := loadlibrary(Pchar(str)); //引导库文件<br> if LindoDllHandle&lt;32 then //判断是否引导成功,出错小于则32<br> begin<br> Application.MessageBox('代码结构载入失败!',PChar('系统提示'),MB_ICONWARNING+MB_OK);<br> exit;<br> end;<br> @ILINDO := GetProcAddress(LindoDllHandle,'ILINDO_STD'); <br> //打开库文件,获得入口地址<br> @INIT := GetProcAddress(LindoDllHandle,'INIT_STD');<br> @LUNOPN := GetProcAddress(LindoDllHandle,'LUNOPNX_STD');<br> @CAPOUT := GetProcAddress(LindoDllHandle,'CAPOUT_STD');<br> @QUIET := GetProcAddress(LindoDllHandle,'QUIET_STD');<br> @DEFROW := GetProcAddress(LindoDllHandle,'DEFROW_STD');<br> @APPCOL := GetProcAddress(LindoDllHandle,'APPCOLX_STD');<br> @GO := GetProcAddress(LindoDllHandle,'GO_STD');<br> @REPROW := GetProcAddress(LindoDllHandle,'REPROW_STD');<br> @REPVAR := GetProcAddress(LindoDllHandle,'REPVAR_STD');<br> @LSEXIT := GetProcAddress(LindoDllHandle,'LSEXIT_STD');<br> @MAKINT := GetProcAddress(LindoDllHandle,'MAKINT_STD');<br><br> FreeLibrary(LindoDllHandle);//释放库文件<br>end;