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 

Using COM (Component Object Model) objects

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Sterren



Joined: 08 Jul 2014
Posts: 6

PostPosted: Mon Sep 01, 2014 3:16 pm    Post subject: Using COM (Component Object Model) objects Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7916
Location: Salford, UK

PostPosted: Mon Sep 01, 2014 3:35 pm    Post subject: Reply with quote

There is nothing for Win32 FTN95. There may be a way via .NET Fortran.
Back to top
View user's profile Send private message AIM Address
Sterren



Joined: 08 Jul 2014
Posts: 6

PostPosted: Mon Sep 01, 2014 3:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Tue Sep 02, 2014 9:50 am    Post subject: Re: Reply with quote

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
View user's profile Send private message
jalih



Joined: 30 Jul 2012
Posts: 196

PostPosted: Tue Sep 02, 2014 5:13 pm    Post subject: Reply with quote

Also this might be helpful example and could be used as a starting point for general purpose COM functions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group