View previous topic :: View next topic |
Author |
Message |
Sterren
Joined: 08 Jul 2014 Posts: 6
|
Posted: Mon Sep 01, 2014 3:16 pm Post subject: Using COM (Component Object Model) objects |
|
|
Hi,
Does the FTN95 7.1 compiler have any simplifying syntax for using COM objects? How would I access objects in FORTRAN through COM?
Thanks, Sterren |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7916 Location: Salford, UK
|
Posted: Mon Sep 01, 2014 3:35 pm Post subject: |
|
|
There is nothing for Win32 FTN95. There may be a way via .NET Fortran. |
|
Back to top |
|
|
Sterren
Joined: 08 Jul 2014 Posts: 6
|
Posted: Mon Sep 01, 2014 3:45 pm Post subject: |
|
|
That is unfortunate. The product I wish to use as a COM client is a Win32 application. Can you recommend any literature on how to interface with COM through FORTRAN? Available free and online would be a bonus. |
|
Back to top |
|
|
jalih
Joined: 30 Jul 2012 Posts: 196
|
Posted: Tue Sep 02, 2014 9:50 am Post subject: Re: |
|
|
Sterren wrote: | That is unfortunate. The product I wish to use as a COM client is a Win32 application. |
The most straightforvard way to use COM automation would be to write a FTN95 callable DLL in C++ or use some other programming tool with easier support for COM. Also if you prefer hardcode approach, then you can probably call methods of the COM objects directly from the FTN95 with a little help from the inline assembler.
I once wrote a simple DLL for interfacing Excel from FTN95. It's available here with sample FTN95 project. |
|
Back to top |
|
|
jalih
Joined: 30 Jul 2012 Posts: 196
|
Posted: Tue Sep 02, 2014 5:13 pm Post subject: |
|
|
Also this might be helpful example and could be used as a starting point for general purpose COM functions. |
|
Back to top |
|
|
|