Click here to Skip to main content
15,902,634 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:22
David Crow3-Nov-09 3:22 
Answer[Message Deleted] Pin
davidcrow693-Nov-09 3:33
davidcrow693-Nov-09 3:33 
QuestionRe: Need help constructing B+ tree Pin
David Crow3-Nov-09 3:36
David Crow3-Nov-09 3:36 
AnswerRe: Need help constructing B+ tree Pin
Tim Craig3-Nov-09 14:21
Tim Craig3-Nov-09 14:21 
AnswerRe: Need help constructing B+ tree PinPopular
David Crow3-Nov-09 4:00
David Crow3-Nov-09 4:00 
QuestionConverting unsigned short int to its hex representation Pin
yeah10003-Nov-09 1:58
yeah10003-Nov-09 1:58 
AnswerRe: Converting unsigned short int to its hex representation Pin
Richard MacCutchan3-Nov-09 2:06
mveRichard MacCutchan3-Nov-09 2:06 
AnswerRe: Converting unsigned short int to its hex representation [fixed: thanks to David] Pin
CPallini3-Nov-09 2:30
mveCPallini3-Nov-09 2:30 
I would do
void CreateHexValues(unsigned short inValue, char hexOut[6])
{
  sprintf(hexOut, "%02x %02x", (inValue >> 8), (inValue & 0xFF) );
}

Smile | :)

Please note: Array allocation is, by design...Roll eyes | :rolleyes: , responsibility of the caller.

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

modified on Tuesday, November 3, 2009 9:27 AM

QuestionRe: Converting unsigned short int to its hex representation Pin
David Crow3-Nov-09 3:16
David Crow3-Nov-09 3:16 
AnswerRe: Converting unsigned short int to its hex representation Pin
CPallini3-Nov-09 3:29
mveCPallini3-Nov-09 3:29 
AnswerRe: Converting unsigned short int to its hex representation Pin
yeah10003-Nov-09 4:41
yeah10003-Nov-09 4:41 
AnswerRe: Converting unsigned short int to its hex representation Pin
softwaremonkey4-Nov-09 11:23
softwaremonkey4-Nov-09 11:23 
Questionc++ code Pin
anilga3-Nov-09 1:51
anilga3-Nov-09 1:51 
AnswerRe: c++ code Pin
Nikola Tanev3-Nov-09 2:08
Nikola Tanev3-Nov-09 2:08 
AnswerRe: c++ code Pin
Richard MacCutchan3-Nov-09 2:15
mveRichard MacCutchan3-Nov-09 2:15 
AnswerRe: c++ code Pin
CPallini3-Nov-09 2:18
mveCPallini3-Nov-09 2:18 
AnswerRe: c++ code Pin
Michael Schubert3-Nov-09 2:36
Michael Schubert3-Nov-09 2:36 
AnswerRe: c++ code Pin
David Crow3-Nov-09 3:13
David Crow3-Nov-09 3:13 
AnswerRe: c++ code Pin
Rajesh R Subramanian3-Nov-09 3:15
professionalRajesh R Subramanian3-Nov-09 3:15 
AnswerRe: c++ code Pin
Hamid_RT3-Nov-09 6:39
Hamid_RT3-Nov-09 6:39 
GeneralOT Pin
CPallini3-Nov-09 6:50
mveCPallini3-Nov-09 6:50 
GeneralRe: OT Pin
Hamid_RT3-Nov-09 19:28
Hamid_RT3-Nov-09 19:28 
QuestionHow can add path of all files to List Ctrl those are present in folder ? Pin
Le@rner3-Nov-09 1:51
Le@rner3-Nov-09 1:51 
AnswerRe: How can add path of all files to List Ctrl those are present in folder ? Pin
Code-o-mat3-Nov-09 1:57
Code-o-mat3-Nov-09 1:57 
GeneralRe: How can add path of all files to List Ctrl those are present in folder ? Pin
iwt.dev3-Nov-09 4:34
iwt.dev3-Nov-09 4:34 

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.