Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: sockets question Pin
CherezZaboro10-Nov-04 11:58
CherezZaboro10-Nov-04 11:58 
Generalascii to binary Pin
Anonymous10-Nov-04 7:14
Anonymous10-Nov-04 7:14 
GeneralRe: ascii to binary Pin
David Crow10-Nov-04 7:23
David Crow10-Nov-04 7:23 
GeneralRe: ascii to binary Pin
Anonymous10-Nov-04 7:35
Anonymous10-Nov-04 7:35 
GeneralRe: ascii to binary Pin
David Crow10-Nov-04 7:56
David Crow10-Nov-04 7:56 
GeneralRe: ascii to binary Pin
GDavy10-Nov-04 10:02
GDavy10-Nov-04 10:02 
GeneralRe: ascii to binary Pin
Anonymous10-Nov-04 10:24
Anonymous10-Nov-04 10:24 
GeneralRe: ascii to binary [edited] Pin
PJ Arends10-Nov-04 10:37
professionalPJ Arends10-Nov-04 10:37 
Do you mean you want a text string containing the ones and zeroes of the binary value?

If so this may help
string ConvertToBinary(TCHAR ch)
{
   string out;
   int size = sizeof(TCHAR) * 8; // Fixed, forgot the  times 8 part
   for (int i = size - 1; i >= 0; --i)
      out += ch & 1 << i ? '1' : '0';
 
   return out;
}




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralRe: ascii to binary Pin
Branislav11-Nov-04 1:32
Branislav11-Nov-04 1:32 
GeneralPort modified message Pin
Fernando A. Gomez F.10-Nov-04 5:11
Fernando A. Gomez F.10-Nov-04 5:11 
GeneralRe: Port modified message Pin
bryce10-Nov-04 11:51
bryce10-Nov-04 11:51 
Generalstarting external program, waiting for completion Pin
Steve Kearon10-Nov-04 4:56
Steve Kearon10-Nov-04 4:56 
GeneralRe: starting external program, waiting for completion Pin
David Crow10-Nov-04 5:05
David Crow10-Nov-04 5:05 
GeneralRe: starting external program, waiting for completion Pin
Steve Kearon10-Nov-04 5:22
Steve Kearon10-Nov-04 5:22 
GeneralRe: starting external program, waiting for completion Pin
David Crow10-Nov-04 6:16
David Crow10-Nov-04 6:16 
GeneralRe: parameters of function ::SHGetSpecialFolderLocation(...) Pin
David Crow10-Nov-04 5:01
David Crow10-Nov-04 5:01 
GeneralRe: parameters of function ::SHGetSpecialFolderLocation(...) Pin
Michael Dunn10-Nov-04 15:10
sitebuilderMichael Dunn10-Nov-04 15:10 
QuestionWhat means F(const _variant_t& OptArgs) at import TLB into &#1057;++ ? Pin
vgrigor110-Nov-04 0:11
vgrigor110-Nov-04 0:11 
AnswerRe: What means F(const _variant_t&amp; OptArgs) at import TLB into &amp;#1057;++ ? Pin
jan larsen11-Nov-04 3:33
jan larsen11-Nov-04 3:33 
GeneralMFC, raw win32, .net, managed c++ .... Pin
i2c9-Nov-04 23:43
i2c9-Nov-04 23:43 
GeneralRe: MFC, raw win32, .net, managed c++ .... Pin
jan larsen10-Nov-04 0:16
jan larsen10-Nov-04 0:16 
GeneralRe: MFC, raw win32, .net, managed c++ .... Pin
Maximilien10-Nov-04 2:43
Maximilien10-Nov-04 2:43 
GeneralRe: MFC, raw win32, .net, managed c++ .... Pin
Henry miller10-Nov-04 2:47
Henry miller10-Nov-04 2:47 
GeneralRe: MFC, raw win32, .net, managed c++ .... Pin
i2c10-Nov-04 20:45
i2c10-Nov-04 20:45 
GeneralRe: MFC, raw win32, .net, managed c++ .... Pin
jan larsen11-Nov-04 0:52
jan larsen11-Nov-04 0:52 

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.