Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sending an array to DLL Function

I have adapted one old Fortran application to DLL and made input interface
in Excel. I have to send array of variables to that DLL and get back array
of results.
Here's a part:

'FORTRAN SUBROUTINE ZFAK(TITLE, NT, TT, IA, X1, P1, P2, DELP, MP, X2, PP,
P, RP, Z, Z1,WMA, DENS, GRAV, PPCAT, PPC, TPCC, TPC, RT, M1)

and in VBA macro
Call ZFAK("naslov", NT, TT, IA, X1, P1, P2, DELP, MP, X2, pp, P, RP, z, z1,
WMA, DENS, GRAV, PPCAT, PPC, TPCC, TPC, RT, M1)

input variables: "naslov", NT, TT, IA, X1, P1, P2, DELP, MP
output variables X2, pp, P, RP, z, z1, WMA, DENS, GRAV, PPCAT, PPC, TPCC,
TPC, RT, M1
X1 and X2 are arrays [x1(12), x2(12)]

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Sending an array to DLL Function


"Clark" <stillnospam@me wrote in message
...

As an alternate approach, if may be quite simple to dump the FORTRAN code
into VBA. It'll be slower but it'll solve the array passing problem.


That's the thing I've been thinking about so many times, but there are lot
of other FOR subroutines to work with, so this solution is unacceptable :).


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Array Function? Johnnie[_2_] Excel Worksheet Functions 4 July 21st 09 08:38 PM
OR function in array-entered IF function veggies27 Excel Worksheet Functions 8 March 11th 08 06:32 PM
Is there an array function or something like it? nyys Excel Worksheet Functions 0 January 12th 06 07:47 PM
#DIV/0! in the array function Sergun Excel Worksheet Functions 1 November 25th 05 01:14 PM
array function cutsygurl Excel Discussion (Misc queries) 1 July 1st 05 04:49 PM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"