View Full Version : Screens for VS2005/2008 Integration
craigwmiller
03-31-2009, 06:44 PM
We have purchased the Lahey 7.1 integration with VS2005/2008 and were wondering if windows screens should be generated using something like Wisk since creating screens for Lahey Fortran in the .NET development environment appears to be disabled? Is the use of COM to develop database applications or to programatically access Excel or Word available as well?
tzeis
04-01-2009, 07:23 AM
You can use WiSK to generate Windows forms with your native LF95.
You could also use VB.Net or C# for the Windows forms and the COM and DB accessibility, and pass information to Fortran code in a DLL. We provide an example solution called CSmainFdll with examples of passing arguments between .Net and a Fortran DLL. It is also possible to create a .Net delegate procedure that allows a Fortran dll procedure to call back into the .Net application.
craigwmiller
05-28-2009, 05:37 PM
I did a search for CSmainFdll on the Lahey webpage and came up empty handed. Any suggestions on how I should find this example?
admin
05-28-2009, 06:14 PM
By default, the example is in the directory "C:\Program Files\Lahey-Fujitsu Fortran\v7.2\Win32\Examples\Visual Studio 2008\CSharpmainFdll" and the solution is called "CSmainFdll.sln". If you installed the 2005 integration, it would be under 2005 rather than 2008.
craigwmiller
06-03-2009, 03:57 PM
The example is C++. I have been looking at how to get variables and functions in a VB or C+ dll to be recognized by Fortran and have concluded that this is not possible at this time. However, C++ has functionality that allows it to create DLLs that Fortran can read and work with. One other issue is that if you link to a DLL, debugging of the DLL is difficult if not impossible (correct me if I'm wrong).
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.