_export myFunction(BSTR *VBtextin, BSTR *VBpassword, BSTR *VBtextout, FPINT encrypt) { BSTR password = SysAllocString (*VBpassword); char* myChar; myChar = (char*) password //is this ok to cast? it seems to remain the same when i print out. //then I encrypt the myChar in some function...and want to convert back to BSTR //i've tried a few ways like below, and some other ways i've seen online...to no avail. _bstr_t temp(myChar); SysReAllocString(VBtextout, myChar);
BSTR
char*
ConvertBSTRToString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)