What is the value of Ctrl+Z in terms of CString?
-
Hi all, please help me to tell about the the String value of Ctrl+Z. please tell me what string i use in place of Ctrl+Z. thanks in advance.
What is meant by string value of Ctrl+Z?
-
What is meant by string value of Ctrl+Z?
-
i want to use it over serial port so i need this. i mean How to write ctrl-z to a serial port?
The value for CTRL-Z (^Z) is 26 (decimal). It is often used as an end-of-file marker (DOS). You might also find useful to know that CTRL-A (^A) is 1 and that all the others, i.e. CTRL-B through CTRL-Y characters fall in between (CTRL-B is 2, CTRL-C is 3, and so on). char c[2]; c[0] = (char)26; c[1] = 0; CString cstring; cstring = CString( c);
SkyWalker
-
i want to use it over serial port so i need this. i mean How to write ctrl-z to a serial port?
Following ascii chart shows value of Ctrl+Z is 26: http://www.physics.udel.edu/~watson/scen103/ascii.html[^]
-
i want to use it over serial port so i need this. i mean How to write ctrl-z to a serial port?
Try this -
CString cs;
cs.Format(_T("%c"), 26);«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Try this -
CString cs;
cs.Format(_T("%c"), 26);«_Superman_» I love work. It gives me something to do between weekends.
Microsoft MVP (Visual C++) -
Yes 0xA1 is 26 in decimal.
-
Yes 0xA1 is 26 in decimal.
0x1a = 26 0xa1 = 161
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Hi all, please help me to tell about the the String value of Ctrl+Z. please tell me what string i use in place of Ctrl+Z. thanks in advance.
-
Hi all, please help me to tell about the the String value of Ctrl+Z. please tell me what string i use in place of Ctrl+Z. thanks in advance.
Do you want to know the value of Ctrl+Z? It's so easy! You don't need to ask anyone,you don't need the characters table. What you need to do is: Run ComTrace, then type the "Ctrl+Z" in HyperTerminal,It's ok! You can get '1A' http://www.armecos.com/en/comtrace.html[^]