- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
For the second question, take a look at NARGS and GETARG portability routines.
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Sabalan.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page