- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't want to use project wizard to do this work, but I want to
generate a dll file in fortran source code. This dll file can be generated from another .f90 file. This should be automatically finshed when the code is implemented.
someone can give me some suggestions? Thank you very much!
generate a dll file in fortran source code. This dll file can be generated from another .f90 file. This should be automatically finshed when the code is implemented.
someone can give me some suggestions? Thank you very much!
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) You need to find out how to generate your DLL using the command line.
All the commands (NMAKE etc) that are required should be in a file that you can then access by name from your program.
2) your program must write the FORTRAN code you need to files
3)You need to generate a character-string containing the full command line that
you need to compile and link your DLL using the FORTRAN filenames as arguments to the command file previously mentioned.
4) you need to execute this command by passing it to the operating system command shell using SYSTEM, SYSTEMQQor ShellExecute or some such subroutine or function in order to start the process of creating the dll
4)you need to wait for this to happen and act on the return flag you get.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your clarification!
Another problem is how to detect a arbitrary file's path in Fortran source code?
Another problem is how to detect a arbitrary file's path in Fortran source code?
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