Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use Pin
sashoalm20-Mar-09 22:39
sashoalm20-Mar-09 22:39 
QuestionProblem in compling through vc++ 2005 Pin
raj157620-Mar-09 19:16
raj157620-Mar-09 19:16 
AnswerRe: Problem in compling through vc++ 2005 Pin
Stuart Dootson21-Mar-09 0:37
professionalStuart Dootson21-Mar-09 0:37 
Questionconverting hex to image Pin
annese20-Mar-09 18:59
annese20-Mar-09 18:59 
GeneralRe: converting hex to image Pin
norish20-Mar-09 20:33
norish20-Mar-09 20:33 
GeneralRe: converting hex to image Pin
annese20-Mar-09 20:47
annese20-Mar-09 20:47 
GeneralRe: converting hex to image Pin
CPallini21-Mar-09 1:06
mveCPallini21-Mar-09 1:06 
GeneralRe: converting hex to image Pin
norish21-Mar-09 1:19
norish21-Mar-09 1:19 
refine below
1. (JPG format may not have file header section; i might be wrong. D'Oh! | :doh: )
1'. check byte sequence of original, database and generated from your code.

annese wrote:
2.do you mean i have to convert hex string to BYTE?


generally so. you need convert char[2] to unsigned char
like "FF" (char[]) -> 0xff (unsigned char)

annese wrote:
3.i am using fwrite function which i assigned hex string values into unsigned char variable


good. but to say, you must fwrite array of BYTE above.
example)
char HEX[9] = "FFD8FFE1"; //original string
BYTE BIN[4] = { 0xff,0xd8,0xff,0xe1 }; // converted one
x fwrite(HEX, 1, 8, fp); // wrong!
o fwrite(BIN, 1, 4, fp); // good!

check further. Big Grin | :-D
GeneralRe: converting hex to image Pin
annese21-Mar-09 3:42
annese21-Mar-09 3:42 
GeneralRe: converting hex to image Pin
annese21-Mar-09 6:28
annese21-Mar-09 6:28 
QuestionCPU Time Pin
Max++20-Mar-09 18:33
Max++20-Mar-09 18:33 
AnswerRe: CPU Time Pin
N a v a n e e t h20-Mar-09 19:09
N a v a n e e t h20-Mar-09 19:09 
AnswerRe: CPU Time Pin
Stuart Dootson21-Mar-09 0:41
professionalStuart Dootson21-Mar-09 0:41 
Questionhow to detect the installed language pack in an application through MFC . Pin
Purish Dwivedi20-Mar-09 18:12
Purish Dwivedi20-Mar-09 18:12 
AnswerRe: how to detect the installed language pack in an application through MFC . Pin
JBAK_CP21-Mar-09 5:17
JBAK_CP21-Mar-09 5:17 
QuestionWhen call CWnd::Creat, the parent windows parameter can't be NULL Pin
followait20-Mar-09 17:29
followait20-Mar-09 17:29 
AnswerRe: When call CWnd::Creat, the parent windows parameter can't be NULL Pin
Yusuf20-Mar-09 18:14
Yusuf20-Mar-09 18:14 
GeneralRe: When call CWnd::Creat, the parent windows parameter can't be NULL Pin
followait20-Mar-09 18:36
followait20-Mar-09 18:36 
QuestionBinary Edit Source Pin
ShiXiangYang20-Mar-09 15:53
ShiXiangYang20-Mar-09 15:53 
AnswerRe: Binary Edit Source Pin
Yusuf20-Mar-09 16:17
Yusuf20-Mar-09 16:17 
AnswerRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 0:49
Michael Schubert21-Mar-09 0:49 
JokeRe: Binary Edit Source Pin
norish21-Mar-09 1:49
norish21-Mar-09 1:49 
JokeRe: Binary Edit Source Pin
Rajesh R Subramanian21-Mar-09 4:52
professionalRajesh R Subramanian21-Mar-09 4:52 
GeneralRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 8:30
Michael Schubert21-Mar-09 8:30 
QuestionReadString() crashes at the end of file? [modified] Pin
AlanLai20-Mar-09 14:37
AlanLai20-Mar-09 14:37 

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.