Software Archive
Read-only legacy content
17061 Discussions

Autocad and Fortran

sabine_gebhard
Beginner
442 Views
I would like to use some Fortran-code in a Dll from a Autocad-ARX.
it works fine, as long as i do not use any write statements.
so it seems the fortran runtime is not correctly initialized,
or am i wrong ?

i can't think of any way to combine these two.
0 Kudos
3 Replies
Steven_L_Intel1
Employee
442 Views
I am assuming that Autocad calls the Fortran code as a DLL. If so, then there is no console to write to. You can create one yourself by calling the Win32 API routine AllocConsole, or use some method that doesn't involve the console, such as MessageBox or a dialog box.

Steve
0 Kudos
bdrichards
Beginner
442 Views
I have not a problem writing, to a binary file for example, from my Autocad DLL (ADSRX) written in CVF. Where are you "writing". You will be unable to use a WRITE statement to write to the AutoCAD command prompt line (use the ads_printf function if this is your intent). Bill
0 Kudos
sabine_gebhard
Beginner
442 Views
Thank you. Thats it
0 Kudos
Reply