Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: call stack and memory options in VS2005 Pin
ThatsAlok4-Oct-06 7:24
ThatsAlok4-Oct-06 7:24 
QuestionModification of the Project Multi Layer Perceptron Pin
Pitufo553-Oct-06 18:44
Pitufo553-Oct-06 18:44 
AnswerRe: Modification of the Project Multi Layer Perceptron Pin
Waldermort3-Oct-06 19:20
Waldermort3-Oct-06 19:20 
AnswerRe: Modification of the Project Multi Layer Perceptron Pin
Hamid_RT3-Oct-06 19:35
Hamid_RT3-Oct-06 19:35 
GeneralRe: Modification of the Project Multi Layer Perceptron Pin
Pitufo553-Oct-06 19:50
Pitufo553-Oct-06 19:50 
QuestionUpdating screen Pin
box_boy_scott3-Oct-06 14:51
box_boy_scott3-Oct-06 14:51 
AnswerRe: Updating screen Pin
Waldermort3-Oct-06 17:24
Waldermort3-Oct-06 17:24 
GeneralRe: Updating screen Pin
box_boy_scott4-Oct-06 15:52
box_boy_scott4-Oct-06 15:52 
This is routine that I call to initially paint the screen and then to update the screen.

int PaintScrn ()
{
pdash_Line = dash_Line;
memset(pdash_Line,'-',300);
//--------- Line 1 ----------------
TextOut(hdc,Col_1,Line_1,"Code Directory",strlen("Code Directory"));
TextOut(hdc,Col_2,Line_1,":",1);
if(strlen(code_dir) == 0)
{
TextOut(hdc,Col_3,Line_1,home_dir,strlen(home_dir));
}
else
{
TextOut(hdc,Col_3,Line_1,code_dir,strlen(code_dir));
}
//--------- Line 2 ----------------
TextOut(hdc,Col_1,Line_2,"OVL File :",12);
TextOut(hdc,Col_2,Line_2,":",1);
if(strlen(overlay1_name)>0)
{
TextOut(hdc,Col_3,Line_2,overlay1_name,strlen(overlay1_name));
}
//--------- Line 3 ----------------
if(strlen(overlay2_name)>0)
{
TextOut(hdc,Col_3,Line_3,overlay2_name,strlen(overlay2_name));
}
//--------- Line 4 ----------------
TextOut(hdc,Col_1,Line_4,"APP File :",9);
TextOut(hdc,Col_2,Line_4,":",1);
if(strlen(app_name)>0)
{
TextOut(hdc,Col_3,Line_4,app_name,strlen(app_name));
}
//--------- Line 5 ----------------
TextOut(hdc,Col_1,Line_5,"SFL File :",9);
TextOut(hdc,Col_2,Line_5,":",1);
if(strlen(sfl_name)>0)
{
TextOut(hdc,Col_3,Line_5,sfl_name,strlen(sfl_name));
}
//--------- Line 6 ----------------
TextOut(hdc,Col_1,Line_6,"CRT File :",9);
TextOut(hdc,Col_2,Line_6,":",1);
if(strlen(crt_name)>0)
{
TextOut(hdc,Col_3,Line_6,crt_name,strlen(crt_name));
}
//--------- Line 7 ----------------
TextOut(hdc,Col_1,Line_7,"TBL File :",9);
TextOut(hdc,Col_2,Line_7,":",1);
if(strlen(tbl_name)>0)
{
TextOut(hdc,Col_3,Line_7,tbl_name,strlen(tbl_name));
}
//--------- Line 8 ----------------
TextOut(hdc,Col_1,Line_8,pdash_Line,185);
//--------- Line 9 ----------------
TextOut(hdc,Col_4,Line_9,pdash_Line,26);
TextOut(hdc,Col_5,Line_9,"***** BLOCK SIZE *****",strlen("***** BLOCK SIZE *****"));
//--------- Line 10 ----------------
TextOut(hdc,Col_4,Line_10,"** FILE SIZE **",strlen("** FILE SIZE **"));
TextOut(hdc,Col_5,Line_10,"DEC",strlen("DEC"));
TextOut(hdc,Col_6,Line_10,"HEX",strlen("HEX"));
//--------- Line 11 ----------------
TextOut(hdc,Col_1,Line_11,pdash_Line,185);
//--------- Line 12 ----------------
TextOut(hdc,Col_1,Line_12,"Output Flash Filename",strlen("Output Flash Filename"));
TextOut(hdc,Col_2,Line_12,":",1);
if(strlen(flashFile)>0)
{
TextOut(hdc,Col_3,Line_12,flashFile,strlen(flashFile));
TextOut(hdc,Col_4,Line_12,flashFileSizeStr,strlen(flashFileSizeStr));
TextOut(hdc,Col_5,Line_12,flashDBlockSizeStr,strlen(flashDBlockSizeStr));
TextOut(hdc,Col_6,Line_12,flashHBlockSizeStr,strlen(flashHBlockSizeStr));
}
//--------- Line 13 ----------------
TextOut(hdc,Col_1,Line_13,"Output Cert Filename",strlen("Output Cert Filename"));
TextOut(hdc,Col_2,Line_13,":",1);
if(strlen(certFile)>0)
{
TextOut(hdc,Col_3,Line_13,certFile,strlen(certFile));
TextOut(hdc,Col_4,Line_13,certFileSizeStr,strlen(certFileSizeStr));
TextOut(hdc,Col_5,Line_13,certDBlockSizeStr,strlen(certDBlockSizeStr));
TextOut(hdc,Col_6,Line_13,certHBlockSizeStr,strlen(certHBlockSizeStr));
}
//--------- Line 14 ----------------
TextOut(hdc,Col_1,Line_14,"Output Script Filename",strlen("Output Script Filename"));
TextOut(hdc,Col_2,Line_14,":",1);
if(strlen(certFile)>0||strlen(scriptFile)>0)
{
TextOut(hdc,Col_3,Line_14,scriptFile,strlen(scriptFile));
//--------- Line 15 ----------------
TextOut(hdc,Col_3,Line_15,scriptFileTX,strlen(scriptFileTX));
}
return (0);
}

AnswerRe: Updating screen Pin
Hamid_RT3-Oct-06 18:12
Hamid_RT3-Oct-06 18:12 
GeneralRe: Updating screen Pin
box_boy_scott4-Oct-06 15:50
box_boy_scott4-Oct-06 15:50 
GeneralRe: Updating screen Pin
Hamid_RT4-Oct-06 19:07
Hamid_RT4-Oct-06 19:07 
AnswerRe: Updating screen Pin
A_Fa3-Oct-06 19:39
A_Fa3-Oct-06 19:39 
GeneralRe: Updating screen Pin
box_boy_scott4-Oct-06 15:56
box_boy_scott4-Oct-06 15:56 
QuestionWhat does WINAPI do? Pin
Oliver1233-Oct-06 14:21
Oliver1233-Oct-06 14:21 
AnswerRe: What does WINAPI do? Pin
Waldermort3-Oct-06 17:18
Waldermort3-Oct-06 17:18 
AnswerRe: What does WINAPI do? Pin
Nibu babu thomas3-Oct-06 17:22
Nibu babu thomas3-Oct-06 17:22 
AnswerRe: What does WINAPI do? Pin
David Crow4-Oct-06 3:23
David Crow4-Oct-06 3:23 
GeneralRe: What does WINAPI do? Pin
Oliver1234-Oct-06 5:16
Oliver1234-Oct-06 5:16 
GeneralRe: What does WINAPI do? Pin
David Crow4-Oct-06 5:27
David Crow4-Oct-06 5:27 
AnswerRe: What does WINAPI do? Pin
Hamid_RT4-Oct-06 9:06
Hamid_RT4-Oct-06 9:06 
Questiondisplaying data in a table like view Pin
jones_m3-Oct-06 12:34
jones_m3-Oct-06 12:34 
AnswerRe: displaying data in a table like view Pin
Nibu babu thomas3-Oct-06 17:29
Nibu babu thomas3-Oct-06 17:29 
AnswerRe: displaying data in a table like view Pin
Hamid_RT3-Oct-06 18:25
Hamid_RT3-Oct-06 18:25 
GeneralRe: displaying data in a table like view Pin
jones_m4-Oct-06 2:54
jones_m4-Oct-06 2:54 
GeneralRe: displaying data in a table like view Pin
Hamid_RT4-Oct-06 3:06
Hamid_RT4-Oct-06 3:06 

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.