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

C / C++ / MFC

 
AnswerRe: Connect SQL database in MFC application with ADO connection Pin
Hamid_RT22-Oct-07 20:43
Hamid_RT22-Oct-07 20:43 
GeneralRe: Connect SQL database in MFC application with ADO connection Pin
CodingLover23-Oct-07 0:16
CodingLover23-Oct-07 0:16 
GeneralRe: Connect SQL database in MFC application with ADO connection Pin
Hamid_RT23-Oct-07 0:57
Hamid_RT23-Oct-07 0:57 
GeneralRe: Connect SQL database in MFC application with ADO connection Pin
CodingLover23-Oct-07 1:18
CodingLover23-Oct-07 1:18 
GeneralRe: Connect SQL database in MFC application with ADO connection Pin
Hamid_RT23-Oct-07 2:22
Hamid_RT23-Oct-07 2:22 
QuestionConvert to double value Pin
ashishbhatt22-Oct-07 19:54
ashishbhatt22-Oct-07 19:54 
QuestionRe: Convert to double value [modified] Pin
Nishad S22-Oct-07 20:10
Nishad S22-Oct-07 20:10 
AnswerRe: Convert to double value Pin
ashishbhatt22-Oct-07 20:37
ashishbhatt22-Oct-07 20:37 
I have used this code to check the value stored on memory and so I found the output like as explained.

<br />
	double x = 2;<br />
	unsigned char *str;<br />
	str = (unsigned char *)malloc(sizeof(unsigned char *));<br />
	str = (unsigned char *)&x;<br />
<br />
	CString st, str1;<br />
	str1 = "";<br />
	for(int i = 0; i < 8; i++)<br />
	{<br />
		st.Format(CString("%.2X "), *(str++));<br />
		str1.Append(st);<br />
	}<br />
	AfxMessageBox(str1);<br />
<br />


here the output like as below....

00 00 00 00 00 00 00 40 in messagebox.


Ashish Bhatt

GeneralRe: Convert to double value Pin
Anand Todkar22-Oct-07 20:57
Anand Todkar22-Oct-07 20:57 
GeneralRe: Convert to double value Pin
ashishbhatt22-Oct-07 21:16
ashishbhatt22-Oct-07 21:16 
GeneralRe: Convert to double value Pin
Anand Todkar22-Oct-07 21:28
Anand Todkar22-Oct-07 21:28 
GeneralRe: Convert to double value Pin
Cedric Moonen22-Oct-07 21:02
Cedric Moonen22-Oct-07 21:02 
QuestionRe: Convert to double value Pin
Nishad S22-Oct-07 21:02
Nishad S22-Oct-07 21:02 
AnswerRe: Convert to double value Pin
codeII22-Oct-07 21:25
codeII22-Oct-07 21:25 
AnswerRe: Convert to double value Pin
chandu00423-Oct-07 0:17
chandu00423-Oct-07 0:17 
QuestionMaking a particular item of listview bold Pin
jyothi lakshmi22-Oct-07 19:46
jyothi lakshmi22-Oct-07 19:46 
AnswerRe: Making a particular item of listview bold Pin
Nishad S22-Oct-07 20:07
Nishad S22-Oct-07 20:07 
AnswerRe: Making a particular item of listview bold Pin
Naveen22-Oct-07 20:08
Naveen22-Oct-07 20:08 
AnswerRe: Making a particular item of listview bold Pin
Hamid_RT22-Oct-07 20:40
Hamid_RT22-Oct-07 20:40 
QuestionAm I in a UI thread? Pin
Peter Weyzen22-Oct-07 19:32
Peter Weyzen22-Oct-07 19:32 
AnswerRe: Am I in a UI thread? Pin
Naveen22-Oct-07 19:35
Naveen22-Oct-07 19:35 
GeneralRe: Am I in a UI thread? Pin
James R. Twine23-Oct-07 1:51
James R. Twine23-Oct-07 1:51 
GeneralRe: Am I in a UI thread? Pin
Naveen23-Oct-07 3:00
Naveen23-Oct-07 3:00 
QuestionRe: Am I in a UI thread? Pin
David Crow23-Oct-07 3:45
David Crow23-Oct-07 3:45 
AnswerRe: Am I in a UI thread? Pin
Naveen23-Oct-07 5:22
Naveen23-Oct-07 5:22 

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.