Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory Leak, context Device Pin
Magnus Westin9-May-06 4:10
Magnus Westin9-May-06 4:10 
Questionservice in c++,mfc Pin
raghuji.rao9-May-06 2:28
raghuji.rao9-May-06 2:28 
QuestionRe: service in c++,mfc Pin
David Crow9-May-06 2:42
David Crow9-May-06 2:42 
AnswerRe: service in c++,mfc Pin
toxcct9-May-06 2:43
toxcct9-May-06 2:43 
QuestionHelp required:Creating IE instance Pin
rana749-May-06 2:25
rana749-May-06 2:25 
Questiontwo appliction refering same file path Pin
Anu_Bala9-May-06 2:11
Anu_Bala9-May-06 2:11 
AnswerRe: two appliction refering same file path Pin
Cedric Moonen9-May-06 2:44
Cedric Moonen9-May-06 2:44 
GeneralRe: two appliction refering same file path Pin
Anu_Bala9-May-06 18:09
Anu_Bala9-May-06 18:09 
Here I will explain my problem in detail…
First here Operator means my trainee. and I am a Trainer.From my trainer coding I have to send some Tag details(Tag Name like Controller,Indicator,Guage ;Scale value;Alarm color) to my trainee coding.Each trainee should receive different tag details.
I have two different trainee coding as AA and BB. I have saved the tag details in a file in C Drive as c:\\FOD file for Trainee AA and c:\\YCS file for BB. I have to send details at a time.
Till now my application is running by having one trainee as BB.So, my coding referring the file with out any confusion. Now I have to develop for two trainee codings.
So I changed my previous coding by adding these two lines,
if(FodFlag==TRUE)//Its for A operator
{
strFileName += "\\FODCS\\Tag.FODCS";
}
I set a flag for the selection of AA trainee. But it’s the wrong way Coz’
For eg; If I choose A operator as well as OPSTATION == CS3000 operator..then the file directory get changed and showed the error message box.
BOOL OpenReadFile()
{
CString strFileName;
strFileName = WorkDirectory;
///Newly added coding
if(FodFlag==TRUE)//Its for AA operator
{
strFileName += "\\FODCS\\Tag.FODCS";
}/////end of new coding
if(OPSTATION == CENTUMXL)//it may be BB opr
{
strFileName += "\\YXL\\Tag.YXL";
}
else if(OPSTATION == CS3000)//it may be BB opr

{
strFileName += "\\YCS\\Tag.YCS";
}
else if(OPSTATION == HONEYWELL)//it may be BB opr

{
strFileName += "\\TDC\\Tag.TD3";
}
else if(OPSTATION == FOXBORO)//it may be BB opr

{
strFileName += "\\FOX\\Tag.FOX";
}
else
{
AfxMessageBox(IDS_OPSTATION);
return 0;
}
if(!PFile.Open( strFileName, CFile::modeRead ))
{
AfxMessageBox("Failed to read Tag Point information");
return 0;
}
return 1;
}
Among Two trainees,Here AA is compulsory Trainee and BB may any of the above BB operator.

GeneralRe: two appliction refering same file path Pin
Cedric Moonen9-May-06 20:19
Cedric Moonen9-May-06 20:19 
QuestionXP visual styles Pin
mosali satish9-May-06 1:30
mosali satish9-May-06 1:30 
AnswerRe: XP visual styles Pin
Nibu babu thomas9-May-06 1:35
Nibu babu thomas9-May-06 1:35 
Questionowner draw menu Pin
zuma779-May-06 0:38
zuma779-May-06 0:38 
QuestionMIXERCONTROL API (Urgent) Pin
atimpoo9-May-06 0:29
atimpoo9-May-06 0:29 
AnswerRe: Zoom tutorial Pin
Christian Graus9-May-06 0:25
protectorChristian Graus9-May-06 0:25 
GeneralRe: Zoom tutorial Pin
Sebastian Schneider9-May-06 1:58
Sebastian Schneider9-May-06 1:58 
GeneralRe: Zoom tutorial Pin
Cedric Moonen9-May-06 2:02
Cedric Moonen9-May-06 2:02 
JokeRe: Zoom tutorial Pin
toxcct9-May-06 2:42
toxcct9-May-06 2:42 
QuestionDoubt related with Voice Over IP Pin
Jeeva Mary Varghese8-May-06 23:20
Jeeva Mary Varghese8-May-06 23:20 
AnswerRe: Doubt related with Voice Over IP Pin
Maximilien9-May-06 2:29
Maximilien9-May-06 2:29 
QuestionWay to use both EN_CHANGE and EN_KILLFOCUS Pin
zxc898-May-06 22:56
zxc898-May-06 22:56 
AnswerRe: Way to use both EN_CHANGE and EN_KILLFOCUS Pin
Cedric Moonen8-May-06 23:00
Cedric Moonen8-May-06 23:00 
GeneralRe: Way to use both EN_CHANGE and EN_KILLFOCUS Pin
zxc898-May-06 23:49
zxc898-May-06 23:49 
GeneralRe: Way to use both EN_CHANGE and EN_KILLFOCUS Pin
Nibu babu thomas9-May-06 0:23
Nibu babu thomas9-May-06 0:23 
GeneralRe: Way to use both EN_CHANGE and EN_KILLFOCUS Pin
zxc899-May-06 0:34
zxc899-May-06 0:34 
AnswerRe: Way to use both EN_CHANGE and EN_KILLFOCUS Pin
David Crow9-May-06 7:50
David Crow9-May-06 7: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.