You'll get this problem when running an "AnyĬPU" VB program on a 64-bit system where the DLL is 32-bit.įor email address, replace "invalid" with "com" For example, take a look at this link, there is a complete example of VB.NET calling Fortran DLL:Ĭhange the VB target platform from "Any CPU" to "X86" (or "X64" if youīuilt your DLL for 圆4). NET assembly with 圆4 configuration trying to load Fortran DLL built with Win32 configuration or missing/wrong Intel Fortran redistributables on the PC where the occurs as opposed to development PC and so forth), but my hunch is you will need to provide more details on your Fortran DLL and its API settings for external procedures (Intel default versus STDCALL, etc.), VB.NET code and assembly configuration, development PC versus the PC where the error happens.Īnd/or you may want to research by yourself on the Intel site and the forum, for there is ton of valuable information available there. Some experienced and expert user might be able to guess correctly what the problem might be (e.g. You may want to try posting your question(s) on the Intel Fortran Forum for Windows for more informed and pertinent responses: > On the development PC everything works.
> When trying to use an entry in a Fortran DLL (Intel(R) Compiler 16.0 Update 3 (package 207)) I get the message "An attemt was made to load a program with an incorrect format. On Thursday, Decemat 8:27:34 AM UTC-5, wrote: