Click here to Skip to main content
16,012,223 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAscii Pin
JensB23-Jul-03 21:39
JensB23-Jul-03 21:39 
GeneralRe: Ascii Pin
Dominik Reichl23-Jul-03 21:50
Dominik Reichl23-Jul-03 21:50 
GeneralRe: Ascii Pin
JensB23-Jul-03 22:50
JensB23-Jul-03 22:50 
GeneralP2P and SOCKS Pin
Derek Lakin23-Jul-03 21:32
Derek Lakin23-Jul-03 21:32 
GeneralRe: P2P and SOCKS Pin
Ryan Binns23-Jul-03 21:45
Ryan Binns23-Jul-03 21:45 
GeneralRe: P2P and SOCKS Pin
Derek Lakin23-Jul-03 21:53
Derek Lakin23-Jul-03 21:53 
Generalargh! CHotkeyctrl Pin
sheesh-ka-bob23-Jul-03 20:50
sheesh-ka-bob23-Jul-03 20:50 
GeneralRe: argh! CHotkeyctrl Pin
Dominik Reichl23-Jul-03 21:56
Dominik Reichl23-Jul-03 21:56 
Depends. If you need it in a readable way like "A" + Alt+Shift then it's not that easy.

If it doesn't have to be saved in a readable way, why not storing the 2 words as they are? Just save the 4 bytes raw to the file. Loading is easy: just read the 4 bytes and copy them back to the 2 words.

If it has to be an ASCII string then I would convert the words to their numerical strings (100 -> "100") and save that string (use function itoa). To convert it back, use atoi.

Big Grin | :-D
-Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)

GeneralTarget Build Pin
yitzhak23-Jul-03 19:41
yitzhak23-Jul-03 19:41 
GeneralRe: Target Build Pin
Toni7823-Jul-03 20:06
Toni7823-Jul-03 20:06 
GeneralRe: Target Build Pin
yitzhak23-Jul-03 21:53
yitzhak23-Jul-03 21:53 
GeneralRe: Target Build Pin
Toni7823-Jul-03 22:47
Toni7823-Jul-03 22:47 
QuestionHow to programmatically "lock computer"? Pin
Abin23-Jul-03 18:18
Abin23-Jul-03 18:18 
AnswerRe: How to programmatically "lock computer"? Pin
Ryan Binns23-Jul-03 18:47
Ryan Binns23-Jul-03 18:47 
GeneralRe: How to programmatically "lock computer"? Pin
Abin23-Jul-03 19:16
Abin23-Jul-03 19:16 
GeneralRe: How to programmatically "lock computer"? Pin
Ryan Binns23-Jul-03 19:21
Ryan Binns23-Jul-03 19:21 
GeneralScrolling Images Pin
Martin Hinchy23-Jul-03 18:04
Martin Hinchy23-Jul-03 18:04 
GeneralRe: Scrolling Images Pin
Ryan Binns23-Jul-03 18:51
Ryan Binns23-Jul-03 18:51 
GeneralRe: Scrolling Images Pin
J. Dunlap23-Jul-03 19:56
J. Dunlap23-Jul-03 19:56 
GeneralRe: Scrolling Images Pin
Ryan Binns23-Jul-03 20:00
Ryan Binns23-Jul-03 20:00 
GeneralOPENGL COLOR Problem Pin
sdfdsfa23-Jul-03 16:29
sdfdsfa23-Jul-03 16:29 
GeneralRe: OPENGL COLOR Problem Pin
Alexander M.,24-Jul-03 3:03
Alexander M.,24-Jul-03 3:03 
GeneralRe: OPENGL COLOR Problem Pin
sdfdsfa24-Jul-03 10:17
sdfdsfa24-Jul-03 10:17 
Questionprotect com dll? Pin
novachen23-Jul-03 14:35
novachen23-Jul-03 14:35 
AnswerRe: protect com dll? Pin
Toni7823-Jul-03 15:42
Toni7823-Jul-03 15:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.