Link to home
Start Free TrialLog in
Avatar of Wuotan
Wuotan

asked on

vector<byte> to LPBYTE conversion

I have a byte vector, but need to pass it to a function that only accepts LPBYTE.
How can I manage this conversion in VC++ no .net ?
Avatar of Pramod Bugudai
Pramod Bugudai
Flag of India image

Something like below.

vector<BYYE> inVec;

void ProcessInput(const char *, vector<BYTE>*);
Avatar of Wuotan
Wuotan

ASKER

Sorry but that didn't helped me with my problem.
simply use  &v[0] if v is your vector.

Sara
ASKER CERTIFIED SOLUTION
Avatar of sarabande
sarabande
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wuotan

ASKER

thank you very much!