Board index » Visual Studio » BCSTR to Char byte value
|
SteveManatt
|
BCSTR to Char byte value
Visual Studio114
Dear Friends, I know it is an ordinary thing but I tried for few times and could not find the solution, now we are having holidays here so will be up for work a day after tomorrow but still don't know how to do that;-) Problem: I have a C++ dll that uses std calls for invoking the calls and every thing works just fine except the particular thing. __std void foo(BCSTR str){ //I get the exact string here with the size of 6 bytes } The caller is VB app. foo("A0B3C1") In dll I receive 6 bytes that makes sense but I want the original byte value that should be three bytes containing: First byte : A0 Second byte : B3 Third byte : C1 Must be easy peasy but can't get it;-) thanks ali - |
