Click here to Skip to main content
15,925,661 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLoading of unnecessary libraries at run-time Pin
Zerox MXI26-Jul-07 4:58
Zerox MXI26-Jul-07 4:58 
AnswerRe: Loading of unnecessary libraries at run-time Pin
Jonathan [Darka]26-Jul-07 5:05
professionalJonathan [Darka]26-Jul-07 5:05 
AnswerRe: Loading of unnecessary libraries at run-time Pin
Mark Salsbery26-Jul-07 5:12
Mark Salsbery26-Jul-07 5:12 
AnswerRe: Loading of unnecessary libraries at run-time Pin
Randor 26-Jul-07 6:29
professional Randor 26-Jul-07 6:29 
QuestionASCII to Hex Pin
AAKAra26-Jul-07 4:16
AAKAra26-Jul-07 4:16 
AnswerRe: ASCII to Hex Pin
jeron126-Jul-07 4:24
jeron126-Jul-07 4:24 
GeneralRe: ASCII to Hex Pin
AAKAra26-Jul-07 5:12
AAKAra26-Jul-07 5:12 
GeneralRe: ASCII to Hex Pin
CPallini26-Jul-07 5:25
mveCPallini26-Jul-07 5:25 
AnilUnni wrote:
m_baPersonImage[10] =07;

Out of boundary.Big Grin | :-D

AnilUnni wrote:
I need to convert this 10 byte array to hex of 5 bytes

Confused | :confused:
You can convert your 10-bytes array into a a 5 bytes one (binary not hex,
hex is only a convenient numerical base) if and only if you're sure each byte of the original array ranges from 0 to 15 (as in your example).
If the above is your requirement then
BYTE  target[5];
target[0] = m_baPersonImage[0] * 16 + m_baPersonImage[1];
target[1] = m_baPersonImage[2] * 16 + m_baPersonImage[3];
...



Hope that helps
Smile | :)


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.

AnswerRe: ASCII to Hex Pin
Mark Salsbery26-Jul-07 5:15
Mark Salsbery26-Jul-07 5:15 
GeneralRe: ASCII to Hex Pin
AAKAra26-Jul-07 5:23
AAKAra26-Jul-07 5:23 
GeneralRe: ASCII to Hex Pin
Mark Salsbery26-Jul-07 6:31
Mark Salsbery26-Jul-07 6:31 
AnswerRe: ASCII to Hex Pin
toxcct26-Jul-07 5:35
toxcct26-Jul-07 5:35 
QuestionCode to create XML file Pin
Maynka26-Jul-07 4:08
Maynka26-Jul-07 4:08 
AnswerRe: Code to create XML file Pin
led mike26-Jul-07 4:42
led mike26-Jul-07 4:42 
GeneralRe: Code to create XML file Pin
Maynka26-Jul-07 5:07
Maynka26-Jul-07 5:07 
QuestionWriteFile issue Pin
George_George26-Jul-07 3:03
George_George26-Jul-07 3:03 
AnswerRe: WriteFile issue Pin
David Crow26-Jul-07 3:11
David Crow26-Jul-07 3:11 
GeneralRe: WriteFile issue Pin
CPallini26-Jul-07 3:32
mveCPallini26-Jul-07 3:32 
QuestionRe: WriteFile issue Pin
David Crow26-Jul-07 3:44
David Crow26-Jul-07 3:44 
AnswerRe: WriteFile issue Pin
CPallini26-Jul-07 4:24
mveCPallini26-Jul-07 4:24 
AnswerRe: WriteFile issue [modified] Pin
CPallini26-Jul-07 3:27
mveCPallini26-Jul-07 3:27 
QuestionC and converting data types. Pin
choadvach26-Jul-07 2:53
choadvach26-Jul-07 2:53 
AnswerRe: C and converting data types. Pin
Chris Losinger26-Jul-07 3:00
professionalChris Losinger26-Jul-07 3:00 
AnswerRe: C and converting data types. Pin
jhwurmbach26-Jul-07 3:05
jhwurmbach26-Jul-07 3:05 
AnswerRe: C and converting data types. Pin
CPallini26-Jul-07 3:10
mveCPallini26-Jul-07 3:10 

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.