Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Dll NT / 2000

Deleted_U_Intel
Employee
562 Views
Hi!
I am new to fortran, and have a problem calling a Fortaran DLL from VB under WIn 2000. It works under NT. Are there known porting issues along these lines?

Also, after looking thru documentation, I cant see how to call a Fortran program with command args, and get a return value. Like the old "int main( args)" in C can return an integer value. Can fortran be made to work this way?

Thanks..
Dbrady
0 Kudos
2 Replies
Jugoslav_Dujic
Valued Contributor II
562 Views
For the first question, I'm not aware of many porting issues. Fortran side, especially if pure number crunching, is supposed to work provided you don't have errors such as uninitialized variables. True, recently we had a problem with porting a DCOM client dll from Win2K to WinNT, and it turned out that it had to call CoInitializeSecurity on 2000 but mustn't have called it to work properly -- but that's just a wild stab in the dark -- and it wasn't written in Fortran anyway.

For the second question, take a look at NARGS and GETARG portability routines.

Jugoslav
0 Kudos
sabalan
New Contributor I
562 Views
Regarding the first question: What happens when you run the DLL under W2K? Have you distributed VB and CVF run-time libraries to the system with W2K? For CVF you need at least DFORRT.DLL to be copied to the user. See here for redistributables self-installing kit.

Sabalan.
0 Kudos
Reply