codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  building a DLL  sass at 06:30 on Thursday, March 02, 2006
 

I am writing in C++ a DLL for a program, that is probably written in Fortran. This DLL includes a function, that has several arguments, and some of them are then returned as results. Problem is, that some arguments are one- or two-dimensional array of float or double and I don't know, how to declare function header properly.
For non-dimensional variables, this is easy: I just add the & sign (like int &PrjLen) and the value of the PrjLen variable is returned properly to the main program. But for one- and two-dimensional arrays, this does not work. I tried several combinations (like double &Matrix1[6][6], double &Matrix2[][6], double Matrix3[6][6], double Matrix4[][6], ...), yet none of them worked.
Please help me?









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  how to receive emails using CDONTS in ASP
•  Need to use C++/COM to add document to FileNET
•  Re: Do - While loop
•  selects jump around when containing div is shown
•  JavaScript Form Question
•  Java From Question
•  Re: Import Excel File to sql server database...
•  Re: need help with event please..
•  image format conversion


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006