from vb to c++
Dim Data As String, Output As String
'this can be any length, but this part is always static - GKSSP\0\0\0\0\0\0\0\0
Data = "GKSSP\0\0\0\0\0\0\0\0*?+?"
'trying to parse it to get the ascii bit - *?+?
Output = Mid(Data, InStr(Replace(Replace(Data, Chr(2), "?"), Chr(3), "?"), "?\0\0\0?\0\0\0") + 14)
any ideas guys how i can change that to c++ code?
if i feed something like this into a c++ function as a paramteter..
GKSSP\0\0\0\0\0\0\0\0*?+?
i have to replace the \ with a \\ right? (so c++ know its a backslah)
and also replace \2 with ?, \3 with ? (as it is in the vb)
im trying to parse it to get the ascii data on the end of the string, but i dont know if c++ has built in functions like mid, replace, instr etc
please help guys

