- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. Thats it
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