Click here to Skip to main content
15,922,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "GetDlgItem" call Fails...... Pin
Pazzuzu17-Oct-04 22:13
Pazzuzu17-Oct-04 22:13 
GeneralRe: "GetDlgItem" call Fails...... Pin
Blake Miller18-Oct-04 6:30
Blake Miller18-Oct-04 6:30 
GeneralI would like to convert int to char Pin
sacoskun14-Oct-04 21:34
sacoskun14-Oct-04 21:34 
GeneralRe: I would like to convert int to char Pin
Mad__14-Oct-04 22:03
Mad__14-Oct-04 22:03 
GeneralRe: I would like to convert int to char Pin
sacoskun14-Oct-04 22:06
sacoskun14-Oct-04 22:06 
GeneralRe: I would like to convert int to char Pin
Mad__14-Oct-04 22:11
Mad__14-Oct-04 22:11 
GeneralRe: I would like to convert int to char Pin
sacoskun14-Oct-04 22:16
sacoskun14-Oct-04 22:16 
GeneralRe: I would like to convert int to char Pin
Mad__14-Oct-04 22:53
Mad__14-Oct-04 22:53 
I don't understend what meen N in this code Wink | ;)

For binare representation of value i use this function:
<br />
char* BinPrintf(int value)<br />
{<br />
	char tmp[256];<br />
	memset(tmp, 0, 256);<br />
    int tpos = 0;<br />
<br />
	while(value)<br />
	{<br />
		tmp[tpos++] = 0x30+value%2;<br />
		value = value >> 1;<br />
	}<br />
<br />
	char *ret = new char[strlen(tmp)+1];<br />
	memset(ret, 0, strlen(tmp)+1);<br />
	tpos = strlen(tmp)-1;<br />
	value = 0;<br />
	while(tpos > -1)<br />
		ret[value++] = tmp[tpos--];<br />
<br />
	return ret;<br />
}<br />

GeneralRe: I would like to convert int to char Pin
David Crow15-Oct-04 6:14
David Crow15-Oct-04 6:14 
GeneralRe: I would like to convert int to char Pin
David Crow15-Oct-04 6:03
David Crow15-Oct-04 6:03 
GeneralRe: I would like to convert int to char Pin
sacoskun16-Oct-04 2:20
sacoskun16-Oct-04 2:20 
GeneralRe: I would like to convert int to char Pin
toxcct14-Oct-04 22:40
toxcct14-Oct-04 22:40 
GeneralRe: I would like to convert int to char Pin
sacoskun14-Oct-04 22:49
sacoskun14-Oct-04 22:49 
GeneralRe: I would like to convert int to char Pin
toxcct14-Oct-04 22:54
toxcct14-Oct-04 22:54 
GeneralRe: I would like to convert int to char Pin
sacoskun14-Oct-04 23:04
sacoskun14-Oct-04 23:04 
GeneralRe: I would like to convert int to char Pin
Bob Stanneveld15-Oct-04 2:25
Bob Stanneveld15-Oct-04 2:25 
GeneralRe: I would like to convert int to char Pin
Sujan Christo14-Oct-04 22:06
Sujan Christo14-Oct-04 22:06 
QuestionHow to trace handle leaks Pin
Member 6562814-Oct-04 20:13
Member 6562814-Oct-04 20:13 
GeneralToolbar button state Pin
ledallam14-Oct-04 20:09
ledallam14-Oct-04 20:09 
GeneralRe: Toolbar button state Pin
Sujan Christo14-Oct-04 21:04
Sujan Christo14-Oct-04 21:04 
Generaldebugging the break point? :) :) Pin
FASTian14-Oct-04 19:47
FASTian14-Oct-04 19:47 
GeneralRe: debugging the break point? :) :) Pin
toxcct14-Oct-04 19:52
toxcct14-Oct-04 19:52 
GeneralRe: debugging the break point? :) :) Pin
22491714-Oct-04 21:14
22491714-Oct-04 21:14 
GeneralRe: debugging the break point? :) :) Pin
David Crow15-Oct-04 6:22
David Crow15-Oct-04 6:22 
GeneralDecimal number class Pin
paulb14-Oct-04 19:16
paulb14-Oct-04 19:16 

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.