Click here to Skip to main content
14,696,943 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialog Controls Palette Pin
anu_887-Aug-06 19:32
Memberanu_887-Aug-06 19:32 
Questionsetup via CD/web Pin
Tara147-Aug-06 7:45
MemberTara147-Aug-06 7:45 
AnswerRe: setup via CD/web Pin
Varchas R S7-Aug-06 11:11
MemberVarchas R S7-Aug-06 11:11 
GeneralRe: setup via CD/web Pin
Tara147-Aug-06 21:48
MemberTara147-Aug-06 21:48 
QuestionHow do i get the full path from a into a exe loaded/injected dll(module)? Pin
kefir0077-Aug-06 7:44
Memberkefir0077-Aug-06 7:44 
Questionflushing extra key presses Pin
Biboc7-Aug-06 6:53
MemberBiboc7-Aug-06 6:53 
Questionconverting hex to binary string Pin
flippydeflippydebop7-Aug-06 6:21
Memberflippydeflippydebop7-Aug-06 6:21 
AnswerRe: converting hex to binary string [modified] Pin
flippydeflippydebop7-Aug-06 6:25
Memberflippydeflippydebop7-Aug-06 6:25 
doh!!! im a muppet... its always the way isnt it.. no sooner than you ask for help to a problem then you realise what your doing wrong! hehe

as soon as i hit the send button i realised my small "long" was to small, and so ive changed it to __int64 and all is sound!! - ignore me all Smile | :) Smile | :)

	std::string hexvalue = "00C000000000";<br />
	std::string binary = "";<br />
<br />
	__int64 decimalVal;<br />
	<br />
	std::stringstream sstr(hexvalue);<br />
	sstr >> std::hex >> decimalVal;<br />
<br />
	// now convert decimalVal to binary<br />
	std::ostringstream out;<br />
	__int64 digit;<br />
	bool nonzero = false;<br />
<br />
	for (__int64 i = 50; i >=0; i--)<br />
	{<br />
		digit = (decimalVal >> i) & 1 ;<br />
		if (!nonzero && digit)<br />
			nonzero = true;<br />
<br />
		if (nonzero)<br />
			out << digit;<br />
	}<br />
<br />
	binary = out.str();



-- modified at 11:26 Monday 7th August, 2006
QuestionNT Service - working directory Pin
yoti117-Aug-06 6:20
Memberyoti117-Aug-06 6:20 
AnswerRe: NT Service - working directory Pin
Michael Dunn7-Aug-06 8:26
sitebuilderMichael Dunn7-Aug-06 8:26 
AnswerRe: NT Service - working directory Pin
David Crow7-Aug-06 9:15
MemberDavid Crow7-Aug-06 9:15 
AnswerRe: NT Service - working directory Pin
Vipin Aravind7-Aug-06 9:59
MemberVipin Aravind7-Aug-06 9:59 
AnswerRe: NT Service - working directory Pin
Hamid_RT8-Aug-06 7:37
MemberHamid_RT8-Aug-06 7:37 
QuestionNo browse info in VS2005 Pin
Jim A. Johnson7-Aug-06 6:14
MemberJim A. Johnson7-Aug-06 6:14 
QuestionCDialogBar with ScrollBar [modified] Pin
hsdjusa7-Aug-06 6:00
Memberhsdjusa7-Aug-06 6:00 
AnswerRe: CDialogBar with ScrollBar Pin
Michael Dunn7-Aug-06 8:28
sitebuilderMichael Dunn7-Aug-06 8:28 
QuestionA trouble question about the dialog Pin
xuwenq887-Aug-06 5:50
Memberxuwenq887-Aug-06 5:50 
AnswerRe: A trouble question about the dialog Pin
Cedric Moonen7-Aug-06 6:05
MemberCedric Moonen7-Aug-06 6:05 
GeneralRe: A trouble question about the dialog Pin
xuwenq887-Aug-06 18:41
Memberxuwenq887-Aug-06 18:41 
GeneralRe: A trouble question about the dialog Pin
Cedric Moonen7-Aug-06 21:19
MemberCedric Moonen7-Aug-06 21:19 
GeneralRe: A trouble question about the dialog Pin
xuwenq8812-Aug-06 6:27
Memberxuwenq8812-Aug-06 6:27 
Questionpacket Filtering with Pfbindinterfacetoindex Pin
_tasleem7-Aug-06 5:16
Member_tasleem7-Aug-06 5:16 
AnswerRe: packet Filtering with Pfbindinterfacetoindex Pin
Viorel.7-Aug-06 5:26
MemberViorel.7-Aug-06 5:26 
GeneralRe: packet Filtering with Pfbindinterfacetoindex Pin
_tasleem7-Aug-06 20:18
Member_tasleem7-Aug-06 20:18 
QuestionClassView Clutter in eMbedded Visual C++ Pin
Kegs457-Aug-06 4:50
MemberKegs457-Aug-06 4:50 

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.