SafeArray Mixed Language Problem

SafeArray Mixed Language Problem

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,


5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.



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?

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 great now!

Leave a Comment

Please sign in to add a comment. Not a member? Join today