Hi everyoneApparently when trying to pass a string from Lotus Script to a C++ file you need to pass it byVal string but I need to know what type of string Lotus Script can handle when sent from the C++.
Thank you in advance
Francisco
Hi everyoneApparently when trying to pass a string from Lotus Script to a C++ file you need to pass it byVal string but I need to know what type of string Lotus Script can handle when sent from the C++.
Thank you in advance
Francisco
Subject: Returning String
My guess is that you need to use a BSTR. If you’re using the CString class you could use .AllocSysString to return a BSTR.
Although, if you use ByVal in the LotusScript declaration, you should be able to pass in a buffer initialised using String$(buflen, 0). You need to ensure that the buflen specifies enough space for the C++ function to use.