- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to populate a C++ SAFEARRAY of strings in a FORTRAN rotuine then return it to the C++.
The debugger says I have a bad argument, but I can't seem to figure out how to fix it.
Can someone have a look at the attached program please, and give me some pointers?
Thanks so much,
Dan
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not that I'm familiar with this, but nevertheless...
The main problem is that you're creating a SafeArray of Variants but you're trying to put BSTRs in there. Also, I fixed run-time libraries so that you don't get a linker warning.
HTH
Jugoslav
The main problem is that you're creating a SafeArray of Variants but you're trying to put BSTRs in there. Also, I fixed run-time libraries so that you don't get a linker warning.
HTH
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the effort Jugoslav, but I can't get your attachment to compile...
resSATEST.rc2 is missing.
Also if I copy your changes into my original, it still doesn't work.
What am I doing wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I forgot to pack it up, but it's unchanged from your version -- simply copy it back into /res/ folder along with Satest.ico.
Jugoslav
Jugoslav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Cheers...works great now!
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
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