Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ 2005 iostream input problem for unsigned int Pin
Alex Aimer2-Feb-07 11:51
Alex Aimer2-Feb-07 11:51 
GeneralRe: VC++ 2005 iostream input problem for unsigned int Pin
cp98762-Feb-07 23:22
cp98762-Feb-07 23:22 
GeneralRe: VC++ 2005 iostream input problem for unsigned int Pin
Alex Aimer5-Feb-07 6:35
Alex Aimer5-Feb-07 6:35 
Questiontime Pin
ikbahrian1-Feb-07 23:04
ikbahrian1-Feb-07 23:04 
AnswerRe: time Pin
_AnsHUMAN_ 1-Feb-07 23:21
_AnsHUMAN_ 1-Feb-07 23:21 
GeneralRe: time Pin
ikbahrian2-Feb-07 4:46
ikbahrian2-Feb-07 4:46 
QuestionSwap Bytes Pin
Aint1-Feb-07 23:01
Aint1-Feb-07 23:01 
AnswerRe: Swap Bytes Pin
Christian Graus1-Feb-07 23:31
protectorChristian Graus1-Feb-07 23:31 
array is a char array ?  and swap is an int array ? int is four bytes, not two.  Try a short array, or just swap in place

			for (i=0; i<10; i+=2)<br />
			{<br />
byte temp = array[i];<br />
array[i] = array[i+1];<br />
array[i+1] = temp;<br />
}<br />
<br />
That's more efficient than doing shifts as well, I would presume.<br />


Christian Graus - C++ MVP

'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

GeneralRe: Swap Bytes Pin
Aint2-Feb-07 2:00
Aint2-Feb-07 2:00 
GeneralRe: Swap Bytes Pin
Michael Dunn2-Feb-07 9:12
sitebuilderMichael Dunn2-Feb-07 9:12 
GeneralRe: Swap Bytes Pin
Christian Graus2-Feb-07 10:21
protectorChristian Graus2-Feb-07 10:21 
QuestionLoad a class depending on a string Pin
S.C.Wong1-Feb-07 22:57
S.C.Wong1-Feb-07 22:57 
AnswerRe: Load a class depending on a string Pin
Waldermort1-Feb-07 23:21
Waldermort1-Feb-07 23:21 
QuestionRe: Load a class depending on a string Pin
David Crow2-Feb-07 2:46
David Crow2-Feb-07 2:46 
AnswerRe: Load a class depending on a string Pin
jhwurmbach2-Feb-07 3:05
jhwurmbach2-Feb-07 3:05 
AnswerRe: Load a class depending on a string Pin
Cedric Moonen2-Feb-07 4:10
Cedric Moonen2-Feb-07 4:10 
GeneralRe: Load a class depending on a string Pin
Mark Salsbery2-Feb-07 5:53
Mark Salsbery2-Feb-07 5:53 
GeneralRe: Load a class depending on a string Pin
Cedric Moonen2-Feb-07 6:28
Cedric Moonen2-Feb-07 6:28 
GeneralRe: Load a class depending on a string Pin
Mark Salsbery2-Feb-07 7:11
Mark Salsbery2-Feb-07 7:11 
QuestionConvert LPWSTR to LPSTR Pin
ajitatif angajetor1-Feb-07 22:39
ajitatif angajetor1-Feb-07 22:39 
AnswerRe: Convert LPWSTR to LPSTR Pin
jhwurmbach1-Feb-07 22:46
jhwurmbach1-Feb-07 22:46 
QuestionCan load custom control with dll resource Pin
dungpapai1-Feb-07 22:36
dungpapai1-Feb-07 22:36 
Questionavailable characters Pin
vlad.gs1-Feb-07 22:19
vlad.gs1-Feb-07 22:19 
AnswerRe: available characters Pin
Naveen2-Feb-07 1:02
Naveen2-Feb-07 1:02 
GeneralRe: available characters Pin
vlad.gs2-Feb-07 1:44
vlad.gs2-Feb-07 1:44 

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.