I have been given a fortran90 .dll, of which I want to call a function. Now I know some things:
- one should pass by pointer (or this is simply the signature, I forgot)
- one should declare the function "extern"
- one should add an '_' to the function name
Now everything's ok, except for the characters. Apparently the fortran standard does not prescribe a pass-by-pointer for character arrays. Several variations exist, which make use of the fact that the size of a fortran string is hidden in the string itself.
Could anyone share his/her experience on this? I'm thinking ofmy own string class with a conversion constructor.
Thanks a lot!!