There are functions with scalar string parameters (ref, value...etc) that
works automatically without nay manual marshalling effort.   A function
returning string result in parameter works wonderfully. However, if I try
to return instead of a single string in a parameter to string array, the
call will fail with the general catch all message of
   Error calling external object....
I even tried to copy the function signature from object browser to the
legacy application calling but no luck


Format of string is LPCSTR not LPWSTR.  Furthermore, I think null inside
the string could render the string to appear as null in messagebox in older
version of the software.


The legacy application is supposed to be able to use either -cstdcall or
com interface.  Since I use the oleobject, I assume I am using the com
interface which I don't know much other than what I read from MS site.
Apparently, I have not sufficiently digested and grasped the essentials to
fix my problem on hand.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to