Hi All,
I have a C++ DLL which receives an array parameter as follows:
typedef const char* pStr;
typedef const pStr* Strarry;// the declaration of the function:
__declspec(dllexport) int _stdcall filem(pStr filename,Strarry fielddesc), I already handled the BSTR string for the first parameter, that works.
(we are talking about the second parameter), I cannot use LPSAFEARRAY FAR *, for the second parameter in the declaration, I have to manipulate the array in the code itself. I am passing the array from VB(which is a safearray).
My question is ; is there a way I can convert the array that I receive from VB to a C++ style array in the body of the function, bear in mind that what is passed is a pointer to the array, and I am not sending the array back to VB.
Thanks.
I have a C++ DLL which receives an array parameter as follows:
typedef const char* pStr;
typedef const pStr* Strarry;// the declaration of the function:
__declspec(dllexport) int _stdcall filem(pStr filename,Strarry fielddesc), I already handled the BSTR string for the first parameter, that works.
(we are talking about the second parameter), I cannot use LPSAFEARRAY FAR *, for the second parameter in the declaration, I have to manipulate the array in the code itself. I am passing the array from VB(which is a safearray).
My question is ; is there a way I can convert the array that I receive from VB to a C++ style array in the body of the function, bear in mind that what is passed is a pointer to the array, and I am not sending the array back to VB.
Thanks.