forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 14 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Mon Jul 20, 2020 9:48 pm   Subject:
PaulLaidler, yes, I used your simple fortran program. I took out the F_STDCALL, etc. in all subroutines, added blocks of code one at a time, and got the DLL to work with C++Builder.

It wasn't a s ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Mon Jul 20, 2020 2:44 pm   Subject:
PaulLaidler, I took your simple fortran routine and added blocks, one at a time. I used the file on unit 10 to write debug lines. It turns out that Silverfrost is much more strict abt WRITE statements ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Fri Jul 17, 2020 7:21 pm   Subject:
After the F77 common blocks, local variables, & format statements, the fortran opens and reads a text file with integer arguments, input data file name, and output data file name. Both files are i ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Fri Jul 17, 2020 7:03 pm   Subject:
Forgot to mention that Sub INPUTS calls three other subroutines, all starting with "F_STDCALL Subroutine" and including "ENTRY SALFSTARTUP.", The on-line help wasn't clear on wheth ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Fri Jul 17, 2020 6:54 pm   Subject:
Here's the C++Builder code:
typedef void (__cdecl *MYPROC)();
HINSTANCE hndl;
MYPROC ProcAdd;
BOOL fFreeResult, fLinkSuccess = FALSE;
CurrDirec = GetCurrentDir();
hndl = LoadLibrary ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Wed Jul 15, 2020 8:32 pm   Subject:
mecej4, tnx for the hints, but it doesn't make sense for me to re-write hundreds of write statements that work perfectly fine when using a DLL created by an old FORTRAN compiler.

I'm hoping that my ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Tue Jul 14, 2020 8:20 pm   Subject:
Out of curiosity, I pulled my XP machine with an old FORTRAN compiler out of storage, and built the DLL with the same source code (taking out any F95 code). Running the DLL with C++Builder worked just ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Thu Jul 09, 2020 8:28 pm   Subject:
mecej4, the FORTRAN source includes several multi-line writes such as a header and a glossary. I wasn't talking abt passing a format statement from C++builder to the DLL. I was talking abt an inabilit ...
  Topic: WRITE called in a DLL results in an exception
BK

Replies: 21
Views: 15517

PostForum: General   Posted: Wed Jul 08, 2020 7:54 pm   Subject: WRITE called in a DLL results in an exception
I'm using C++Builder 10.3 to build a GUI for legacy F77 FORTRAN analysis software. A Win32 DLL was built and loads OK. The DLL needs to write results to an external file. The usual WRITE statement wit ...
  Topic: string handling functions
BK

Replies: 6
Views: 6015

PostForum: General   Posted: Wed Jul 08, 2020 2:33 pm   Subject:
Thanks mecej4. The "I" format worked.

Robert, string handling functions that directly do conversions between numeric and string (e.g., int to str and str to int) aren't available.
  Topic: string handling functions
BK

Replies: 6
Views: 6015

PostForum: General   Posted: Tue Jul 07, 2020 9:10 pm   Subject: string handling functions
I've been trying to convert integer data to strings without success. Silverfrost apparently doesn't have string handling functions, so I've been trying to use writing to an internal file as shown in t ...
  Topic: Unable to find an entry point in a DLL
BK

Replies: 5
Views: 5474

PostForum: General   Posted: Thu May 28, 2020 2:45 pm   Subject:
Tnx for the reply. Apparently my version of VS doesn't include dumpbin.
  Topic: Unable to find an entry point in a DLL
BK

Replies: 5
Views: 5474

PostForum: General   Posted: Thu May 28, 2020 2:37 pm   Subject:
For VS, language is visual basic, 32 bit. Out of frustration, I thought I'd try something like a DEC command. I'll check out FTN95.chm, tnx for the hint.
  Topic: Unable to find an entry point in a DLL
BK

Replies: 5
Views: 5474

PostForum: General   Posted: Wed May 27, 2020 5:19 pm   Subject: Unable to find an entry point in a DLL
I'm trying to use Visual Studio 2019 to build a Win32 GUI for legacy F77 FORTRAN software. IN VS, I've used DLLImport and LoadLibrary to load the fortran DLL. VS reports no errors or warnings, so that ...
 
Page 1 of 1
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group