Click here to Skip to main content
15,901,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LPARAM problem Pin
Joe Woodbury21-Aug-08 18:57
professionalJoe Woodbury21-Aug-08 18:57 
GeneralRe: LPARAM problem Pin
Dhiraj kumar Saini21-Aug-08 19:02
Dhiraj kumar Saini21-Aug-08 19:02 
GeneralRe: LPARAM problem Pin
Joe Woodbury21-Aug-08 19:46
professionalJoe Woodbury21-Aug-08 19:46 
Questioncall OnCancel of Dialog from a thread in the dialog Pin
ptr_Electron21-Aug-08 18:47
ptr_Electron21-Aug-08 18:47 
AnswerRe: call OnCancel of Dialog from a thread in the dialog Pin
Jijo.Raj21-Aug-08 19:41
Jijo.Raj21-Aug-08 19:41 
QuestionHow do I edit a combo box's list-box item in-place ? Pin
SherTeks21-Aug-08 18:12
SherTeks21-Aug-08 18:12 
AnswerRe: How do I edit a combo box's list-box item in-place ? Pin
Hamid_RT21-Aug-08 18:18
Hamid_RT21-Aug-08 18:18 
Questionprintf like function question! Pin
fantasy121521-Aug-08 17:58
fantasy121521-Aug-08 17:58 
Please run the code below.
int main(int argc, char* argv[])
{
	int ii = 20;
	char tmp[32] = "loveing";
	printf("[%d]hello[%s]\n", tmp); //no integer fill the %d format

	char szData[52] = {0};
	sprintf(szData, "[%d]saying [%s]\n",ii);//no string fill the %s format
	printf("%s", szData);
	return 0;
}


The compiler don't complain in the compile phase, but when you press F5 to debug, 'unhandle exception' prompt. while not debug, run it at once, you just get wield strings or output.

We all use some sort of printf or CString::Format in the code, we are not careful sometimes. So how to handle this problem or check out the bugs in the exist project?
AnswerRe: printf like function question! Pin
Hamid_RT21-Aug-08 18:14
Hamid_RT21-Aug-08 18:14 
AnswerRe: printf like function question! [modified] Pin
Joe Woodbury21-Aug-08 19:07
professionalJoe Woodbury21-Aug-08 19:07 
GeneralRe: printf like function question! Pin
fantasy121524-Aug-08 14:39
fantasy121524-Aug-08 14:39 
AnswerRe: printf like function question! Pin
Nibu babu thomas21-Aug-08 20:10
Nibu babu thomas21-Aug-08 20:10 
AnswerRe: printf like function question! Pin
CPallini21-Aug-08 21:38
mveCPallini21-Aug-08 21:38 
QuestionVC++ MFC Pin
Selvan.S21-Aug-08 17:34
Selvan.S21-Aug-08 17:34 
AnswerRe: VC++ MFC Pin
Jijo.Raj21-Aug-08 18:11
Jijo.Raj21-Aug-08 18:11 
AnswerRe: VC++ MFC Pin
Hamid_RT21-Aug-08 18:18
Hamid_RT21-Aug-08 18:18 
Questionpath from where project is executing Pin
ani_ikram21-Aug-08 17:00
ani_ikram21-Aug-08 17:00 
AnswerRe: path from where project is executing Pin
Naveen21-Aug-08 17:43
Naveen21-Aug-08 17:43 
AnswerRe: path from where project is executing Pin
fantasy121521-Aug-08 17:47
fantasy121521-Aug-08 17:47 
Questionquick question about SetWorkingDirectory Pin
monsieur_jj21-Aug-08 16:36
monsieur_jj21-Aug-08 16:36 
AnswerRe: quick question about SetWorkingDirectory Pin
Naveen21-Aug-08 16:56
Naveen21-Aug-08 16:56 
AnswerRe: quick question about SetWorkingDirectory Pin
Hamid_RT21-Aug-08 18:20
Hamid_RT21-Aug-08 18:20 
QuestionWhen I Click a row of DataGrid control,What message occurs? Pin
aygrhnwms30421-Aug-08 14:58
aygrhnwms30421-Aug-08 14:58 
AnswerRe: When I Click a row of DataGrid control,What message occurs? Pin
_AnsHUMAN_ 21-Aug-08 18:32
_AnsHUMAN_ 21-Aug-08 18:32 
QuestionNot able to receive messages to the control procedure on invoking the shortcut keys. Pin
Hari-Adarapu21-Aug-08 10:08
Hari-Adarapu21-Aug-08 10:08 

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.