- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there a way to call a fortran dll from vb and have in the argument list: a character string, an integer, and a character array? It seems that fortran is getting out of bounds on the array. I've tried using the "option base 1" command in vb, and I've used "Dim CharArray(1 to 5) as String. Nothing seems to work.
Mike
Mike
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I took the habitude to pass directly from VB to Fortran only integers (either 2 or 4 bytes) and floating point numbers. All other cases (strings and arrays of any kinds) I deal with twin definitions of type, end type structures.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mike, read "Everything you've always wanted to know about VB Arrays of Strings* (*but were afraid to ask)" by Lorri Menard in II-nd issue of the CVF Newsletter. It works for me.
Sabalan.
Sabalan.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page