chris_s_p_mann
Mar 15th, 2001, 04:17 AM
Does anyone know how to pass a string from a C application to an activex DLL written in VB? - I have managed to pass strings accross and display them in the VB activex DLL, but I need to be able to modify the value in the DLL and have the change reflected in the original variable in the C application. (ie) I want to pass the string byRef, not byVal.
When I try, I just get ???????? turn up as the message in the VB DLL.
If anyone knows how to do this, please let me know and ideally, include a couple lines of example code on the 'C' side of it. - I am getting more and more frustrated with trying to understand all these different string types that are required within C to do this. (eg) char, bstr_t and BSTR.
Thanks.
When I try, I just get ???????? turn up as the message in the VB DLL.
If anyone knows how to do this, please let me know and ideally, include a couple lines of example code on the 'C' side of it. - I am getting more and more frustrated with trying to understand all these different string types that are required within C to do this. (eg) char, bstr_t and BSTR.
Thanks.