e.g. heres the line in vb
VB Code:
"IRCVERS IRC8 MSN-OCX!9.02.0310.2401" & VbCrLf & "AUTH GateKeeperPassport I " & ":GKSSP\0\0\0" & Chr(3)
how would i convert that to c++ ?
Printable View
e.g. heres the line in vb
VB Code:
"IRCVERS IRC8 MSN-OCX!9.02.0310.2401" & VbCrLf & "AUTH GateKeeperPassport I " & ":GKSSP\0\0\0" & Chr(3)
how would i convert that to c++ ?
An online VB to C++ converter
"IRCVERS IRC8 MSN-OCX!9.02.0310.2401\r\nAUTH GateKeeperPassport I :GKSSP\\0\\0\\0\3" I think, although this line doesn't mean anything without context.
thank you very much!!!
what is the \r\n though? are they escape characters for c++
and i see you've also put in a backslash \ between a \ and a 0 in the last part of the string, what does this do?
In VB "\" is a string containing a single backslash. In C++ \ is the escape character, it gives a special meaning to the thing following it. To get a string containing just a backslash in C++ you use "\\". vbCrLf is a constant that stands for "cariage return + line feed". These two characters are \r and \n in C++. Finally chr(3) is the character with ascii code 3, in C++ this can be written as \3.
thanks alot mate, very usefull info there.
I guess ill read some tutorials now.