>> ....so used the variable type DWORD
DWORD is basicaly an unsigned int. Aren't Code-128 barcodes alpha-numeric?
You can use functions like wcstombs() to convert a wchar_t string to a char string. So you can keep using a CString for you edit-box, and convert it to a char string where you need it.
gg