Author |
Message |
Topic: get_font_ID@ in 64-bit programs |
Moji
Replies: 3
Views: 14760
|
Forum: 64-bit Posted: Tue Jul 18, 2023 12:06 pm Subject: Re: |
Moji,
Define ID as INTEGER(KIND=7) and I think that should fix the problem, with the code working correctly for both WIN32 and X64 compilers.
Ken
Thank you Ken for the suggestion. If the input para ... |
Topic: get_font_ID@ in 64-bit programs |
Moji
Replies: 3
Views: 14760
|
Forum: 64-bit Posted: Tue Jul 18, 2023 9:47 am Subject: get_font_ID@ in 64-bit programs |
In the manual, it is stated that get_font_ID@ requires an integer parameter (/64):
PROGRAM GET_FONT_ID_TEST
IMPLICIT NONE
INCLUDE <windows.ins>
INTEGER :: ID
... |
Topic: chsort@ in 64-bit programs |
Moji
Replies: 4
Views: 9587
|
Forum: 64-bit Posted: Thu Jun 15, 2023 2:21 pm Subject: Re: |
Your code does not issue a correct call to the FTN95 routine CHSORT@.
1. The second argument should be a character array with N elements. Your code has a scalar character variable.
2. The third ... |
Topic: chsort@ in 64-bit programs |
Moji
Replies: 4
Views: 9587
|
Forum: 64-bit Posted: Thu Jun 15, 2023 12:25 pm Subject: chsort@ in 64-bit programs |
I noticed that chsort@ behaves differently in 32-bit and 64-bit programs, when the last argument is negative. It is ignored in 32-bit, but causes run time error in a 64-bit program.
PROGRAM CHSORT_ ... |
Topic: comparing required time for linking 32 and 64-bit programs |
Moji
Replies: 3
Views: 7607
|
Forum: 64-bit Posted: Fri Jun 02, 2023 1:41 pm Subject: comparing required time for linking 32 and 64-bit programs |
Required time for the linking of 64-Bit programs is considerably longer than the 32-Bit alternatives. I did a benchmark to compare the linking time of these two versions on two of our programs (with t ... |
Topic: Parameters of get_im_info$ |
Moji
Replies: 3
Views: 14000
|
Forum: ClearWin+ Posted: Thu Mar 09, 2023 4:28 pm Subject: |
Thank you so much.
In get_im_info$ and get_im_info$$, I just changed the declaration to:
integer(C_INT)::width(*),height(*),nb_colours(*)
I guess that shoul ... |
Topic: Parameters of get_im_info$ |
Moji
Replies: 3
Views: 14000
|
Forum: ClearWin+ Posted: Thu Mar 09, 2023 9:02 am Subject: |
Maybe I didn't explain the problem properly. Here is the syntax of the GET_IM_INFO@ subroutine:
SUBROUTINE GET_IM_INFO@( FILENAME, WIDTH, HEIGHT
+ NB_COLOURS, NB_IMAGES, FORMAT, ERROR )
C ... |
Topic: Alternative for New_Page@ |
Moji
Replies: 2
Views: 9641
|
Forum: ClearWin+ Posted: Wed Jan 25, 2023 3:01 pm Subject: Alternative for New_Page@ |
As mentioned in ClearWin manual (Appendix A.), NEW_PAGE@ is one of the routines that are useful in new programs. However, it has no ClearWin+ alternative and to use this routine for 64-bit, it is nece ... |
Topic: Parameters of get_im_info$ |
Moji
Replies: 3
Views: 14000
|
Forum: ClearWin+ Posted: Fri Jan 06, 2023 2:33 pm Subject: Parameters of get_im_info$ |
According to manual, WIDTH, HEIGHT and NB_COLOURS parameters of get_im_info@ should be integer arrays. However, in clrwin$ these parameters (in get_im_info$) are declared as integer. Therefore, third ... |
Topic: Calling A FORTRAN DLL From Excel & VBA |
Moji
Replies: 14
Views: 20777
|
Forum: 64-bit Posted: Wed Aug 11, 2021 1:36 pm Subject: |
Here is the Fortran Code (test_code1.f90):
DOUBLE PRECISION FUNCTION test_code1(myarg1, myarg2)
DOUBLE PRECISION myarg1, myarg2
test_code1 = myarg1 + myarg2
END
The code is compiled ... |
Topic: Calling A FORTRAN DLL From Excel & VBA |
Moji
Replies: 14
Views: 20777
|
Forum: 64-bit Posted: Wed Aug 11, 2021 12:14 pm Subject: |
Paul,
As you asked for it, I created a stand alone 64-Bit Visual Basic program. This program calls a function from a FTN95 DLL and returns the result.
The program works fine and without any err ... |
Topic: Calling A FORTRAN DLL From Excel & VBA |
Moji
Replies: 14
Views: 20777
|
Forum: 64-bit Posted: Wed Jun 09, 2021 4:55 pm Subject: |
Hi mecej4,
thank you so much for your reply.
As I mentioned in my first post, Excel can also call Fortran functions and the results are correct, but Excel crashes later on, as you try to insert ... |
Topic: Calling A FORTRAN DLL From Excel & VBA |
Moji
Replies: 14
Views: 20777
|
Forum: 64-bit Posted: Wed Jun 09, 2021 12:45 pm Subject: |
I am writing this post, to get some help regarding calling 64-Bit Fortran subroutines/functions in Excel.
In the previous post, I explained the process that I used and the corresponding error.
... |
Topic: Bug report in sdbg64 (version 8.70) |
Moji
Replies: 11
Views: 17701
|
Forum: 64-bit Posted: Wed May 19, 2021 11:37 am Subject: |
Paul,
I tested it again (with the new compiler and the new slink64). The Problem is still there and the debugger jumps directly to the last line of the function. |
Topic: Calling A FORTRAN DLL From Excel & VBA |
Moji
Replies: 14
Views: 20777
|
Forum: 64-bit Posted: Fri Apr 23, 2021 6:01 pm Subject: |
I have also similar problem in calling 64-Bit Fortran dlls in 64-Bit Excel.
I used this simple Fortran code:
DOUBLE PRECISION FUNCTION test_code1(myarg1, myarg2)
DOUBLE PRECISION ... |
|