Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Problems linking VB and VF

omem84
Beginner
790 Views
Hello, I am new and I am and my writing is not so good (sorry). Well, I have created DLLs in VF and callable from Visual Basic,the DLLs works perfectly while VF is installed, but when I try to execute my programin other machine where VF is not installed a message box appears telling me "Error 53. .DLL not found". To try to solve this problem I have downloaded the kit at
and is supposed to installthe DLLs needed: DFORMD.DLL, DFORT.DLL, MSVCRT.DLL, etc, but it doesnt work and I have still the same problem, so I supposed that VF must be installed neccesary or not?
Please, help me. I am desperated.
0 Kudos
4 Replies
Jugoslav_Dujic
Valued Contributor II
790 Views
The redistributables kit contains only non-debug versions of run-time Dll's (the ones you're allowed to distribute). However, I suppose you shipped "Debug" version of your dll, which is linked with debug RTL's (non-distributable).

So, either build Release configuration of your dll and distribute that, or, if you for whatever reason use only Debug configuration, change settings for your dll at both:

"Project/Settings/Fortran/Libraries/Use run-time library" and
"Project/Settings/C++/Code generation/Use run-time library"

to either "Multithreaded Dll" or "Single-threaded Dll" and rebuild.

Simpler still, change those settings to "Single-threaded" or "Multi-threaded". In this way, you'll get the RTL statically linked with your dll, so you won't have to redistribute any additional dlls (on the cost of bigger file size).

Jugoslav

Message Edited by JugoslavDujic on 11-28-2005 10:42 AM

0 Kudos
omem84
Beginner
790 Views
I dont understand. Could you give an example? or Could you tell me another way? Or could you describe step by step what you said? Please:smileyvery-happy:
0 Kudos
omem84
Beginner
790 Views
Ok, jugoslav, thank you very much for your help. Now my dlls are callable from VB, but the dlls of the kit must be installed. The second choice you gave me is terrifif, but I dont know how, if you can give me more details I will appreciate it.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
790 Views
First, I assume we're talking about Compaq, not Intel VF, right?

Open your project in Visual Studio, go to "Project/Settings" menu, then follow the paths I mentioned above in the dialog box. (Take a good look at dialog options, because it's pretty difficult to navigate -- especially, see "Category" drop-down box). Make sure you set that for the right configuration (Debug or Release), selectable in top left combo box. Rebuild the dll.

As result, your dll will be slightly bigger.

To verify which dll's are required for its run, you can open the dll itself in "Dependency Walker" application from CVF program group. Usually, it will be just Kernel32.dll (maybe also User32.dll).

Jugoslav
0 Kudos
Reply