- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to make a Fortran dll and call it from Excel. The amount of input/output data to the dll is very large so I want the dllto read data and write resultstotext files.
When I compile the Fortran routine as an exe, this works fine. I have also made a small Fortran dll and calling it from Excle works fine.
However, as soon as I try to make the dll read/write from files I get the error message: Run-time error '53': File not found
I am not even able to define the filename...
Character FileName*25
FileName="C:TempInput.dat"
Are there any limitations for what a dll can do, or am I doing things completely wrong.
Any help is appreciated
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, there's no such limitation at all -- file I/O works the very same way in dll as in .exe. Only, one has to pay special attentionto working directory, which can not be assumed to be the same as dll's directory, (but that's the same with .exe's as well) -- however, since you spell out the full path to the file, that should not be an issue for you. Thus, you're doing something else "completely wrong".
Jugoslav

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