Click here to Skip to main content
15,891,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: exception handeling Pin
Christian Graus24-Sep-06 15:18
protectorChristian Graus24-Sep-06 15:18 
GeneralRe: exception handeling Pin
Bram van Kampen24-Sep-06 16:15
Bram van Kampen24-Sep-06 16:15 
GeneralRe: exception handeling Pin
Christian Graus24-Sep-06 16:31
protectorChristian Graus24-Sep-06 16:31 
GeneralRe: exception handeling Pin
Bram van Kampen25-Sep-06 13:58
Bram van Kampen25-Sep-06 13:58 
GeneralRe: exception handeling Pin
Stephen Hewitt24-Sep-06 16:18
Stephen Hewitt24-Sep-06 16:18 
Questionproblem with code after switching to visual studio 2005 Pin
swatgodjr24-Sep-06 10:51
swatgodjr24-Sep-06 10:51 
AnswerRe: problem with code after switching to visual studio 2005 Pin
Christian Graus24-Sep-06 12:34
protectorChristian Graus24-Sep-06 12:34 
GeneralRe: problem with code after switching to visual studio 2005 Pin
swatgodjr24-Sep-06 13:06
swatgodjr24-Sep-06 13:06 
ok not a problem, i been constantly looking for ways to redo the code correctly but not much luck yet well heres the code to one part of my program:
<br />
const int TEXT_SIZE = 5000;<br />
char szbuf[TEXT_SIZE];<br />
std::ostringstream str(szbuf);<br />
<br />
void CHelpDialog::help_mes(char num[], bool cnt, char mess[])<br />
{<br />
	if(cnt == true)<br />
	{<br />
		str << " " << num << ". " << mess << "\r" << std::endl;<br />
<br />
	}<br />
	if(cnt == false)<br />
	{<br />
		str << "     " << mess << "\r" << std::endl;<br />
	}<br />
}<br />
<br />
BOOL CHelpDialog::OnInitDialog()<br />
{<br />
	CEdit *pHelpText;<br />
	pHelpText = (CEdit *) GetDlgItem(IDC_HELPTEXT);<br />
<br />
	str.seekp(0);<br />
	<br />
	help_mes("1", true, "Everything entered in this program is case-sensitive so if");<br />
	help_mes("", false, "your program fails to load when you type in name of the plug");<br />
	help_mes("", false, "in to load, check if you spelled it correctly with the right");<br />
	help_mes("", false, "capitalization.\n");<br />
	help_mes("2", true, "If the program you enter fails to load, make sure you have the");<br />
	help_mes("", false, "required dll files needed for the program.");<br />
	help_mes("3", true, "If there is any more bugs found than please contact me to let me");<br />
	help_mes("", false, "know. I can be reached at swatgod@gmail.com.\n");<br />
<br />
	pHelpText->SetWindowText(szbuf);<br />
	memset(szbuf, 0, sizeof(szbuf));<br />
<br />
	return true;<br />
}<br />


that is all the code that basically deals with the problem area, any advice is very much appreciated Smile | :) .
GeneralRe: problem with code after switching to visual studio 2005 Pin
Christian Graus24-Sep-06 14:14
protectorChristian Graus24-Sep-06 14:14 
GeneralRe: problem with code after switching to visual studio 2005 Pin
swatgodjr24-Sep-06 14:50
swatgodjr24-Sep-06 14:50 
GeneralRe: problem with code after switching to visual studio 2005 Pin
Christian Graus24-Sep-06 15:01
protectorChristian Graus24-Sep-06 15:01 
GeneralRe: problem with code after switching to visual studio 2005 Pin
swatgodjr24-Sep-06 15:19
swatgodjr24-Sep-06 15:19 
GeneralRe: problem with code after switching to visual studio 2005 Pin
Christian Graus24-Sep-06 15:32
protectorChristian Graus24-Sep-06 15:32 
QuestionMemory Hogger!? Pin
MacGadger24-Sep-06 7:43
MacGadger24-Sep-06 7:43 
AnswerRe: Memory Hogger!? Pin
Christian Graus24-Sep-06 16:12
protectorChristian Graus24-Sep-06 16:12 
AnswerRe: Memory Hogger!? Pin
Hamid_RT26-Sep-06 6:31
Hamid_RT26-Sep-06 6:31 
QuestionCEdit and ON_EN_CHANGE [modified] Pin
Oliver12324-Sep-06 6:55
Oliver12324-Sep-06 6:55 
AnswerRe: CEdit and ON_EN_CHANGE Pin
Eytukan24-Sep-06 7:20
Eytukan24-Sep-06 7:20 
GeneralRe: CEdit and ON_EN_CHANGE Pin
toxcct25-Sep-06 23:01
toxcct25-Sep-06 23:01 
AnswerRe: CEdit and ON_EN_CHANGE Pin
Gary R. Wheeler24-Sep-06 11:07
Gary R. Wheeler24-Sep-06 11:07 
QuestionRegistry Question Pin
LiYS24-Sep-06 5:54
LiYS24-Sep-06 5:54 
AnswerRe: Registry Question Pin
PJ Arends24-Sep-06 9:43
professionalPJ Arends24-Sep-06 9:43 
QuestionRich Edit Printing Pin
LiYS24-Sep-06 5:43
LiYS24-Sep-06 5:43 
QuestionHow to open Dialog for choose folder Pin
Max++24-Sep-06 5:40
Max++24-Sep-06 5:40 
AnswerRe: How to open Dialog for choose folder Pin
eusto24-Sep-06 6:18
eusto24-Sep-06 6:18 

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.