Author |
Message |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Thu Mar 06, 2008 8:15 pm Subject: Re: |
There is an example of how to call VC DLLs from FTN95 (and how to call FTN95 DLLs from VC) in the examples installed with FTN95.
i tried to use the same thing but it doesn't work |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Tue Mar 04, 2008 6:46 pm Subject: |
i found a solution, with calling to LoadLibrary and GetProcAddress in VC. |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Tue Mar 04, 2008 3:10 pm Subject: Re: |
FTN95 comes with a C++ compiler called SCC.
If your C++ code will compile with SCC then this is the simplest way to mix C++ and FTN95 Fortran. Then you can link using SLINK.
my code didn't compile ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Mon Mar 03, 2008 5:49 pm Subject: |
In the Salford ftn95 user guide in page 167 "Generation of DLLs and exporting of functions" i found this:
The export command
The export command has the form:
export entryname
F_STDC ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Mon Mar 03, 2008 3:52 pm Subject: Re: |
thanks for your help.
If you post very short but complete C++ and Fortran sample code then I may be able to help you with the details.
Use just a few lines of code.
Compile your C++ using a Mic ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Sat Mar 01, 2008 4:30 am Subject: Re: |
As I said, the simplest way forward is to compile your C++ with SCC.
Have you tried this?
i didn't try this, but i'm afraid that, it will be more complicated to make changes in my C++ code, i'm not ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Fri Feb 29, 2008 10:38 pm Subject: |
i found something similar extern "C"
{
double __declspec(dllimport) __stdcall BZ_Y(Points* bz,double x);
}
void test()
{
Points* bz = new ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Fri Feb 29, 2008 9:49 pm Subject: |
here is my code:
first file:
module Bezier
type Point
double precision x,y
end type
CONTAINS
......
double precision function Get_t(bz,x)
.....
end functi ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Fri Feb 29, 2008 4:37 pm Subject: Re: |
I'm using VC6(visual studio) like that:
extern "C" double BZ_Y(Points* bz,double x);
void test()
{
Points* bz = new PointsFTN95 comes with a C++ compiler called SCC.
If your C++ ... |
Topic: Help |
simply
Replies: 14
Views: 14998
|
Forum: Support Posted: Fri Feb 29, 2008 3:34 pm Subject: Help |
Hi,
I have a dll in C++, and i try to use fortran for some calculation to test if the speed could be improved. i wrote a DLL in fortran(using plato3 and ftn95) but i got a problem during building the ... |
|