Click here to Skip to main content
15,903,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To Insert ling graph control in to the Dialog Pin
dinesh_IP20-Aug-06 22:04
dinesh_IP20-Aug-06 22:04 
GeneralRe: To Insert ling graph control in to the Dialog Pin
Dinu_IP8-Oct-06 23:52
Dinu_IP8-Oct-06 23:52 
QuestionDisabling Pin
SandhyaSri20-Aug-06 19:39
SandhyaSri20-Aug-06 19:39 
QuestionRe: Disabling Pin
prasad_som20-Aug-06 19:58
prasad_som20-Aug-06 19:58 
QuestionList Control problem Pin
Anu_Bala20-Aug-06 19:20
Anu_Bala20-Aug-06 19:20 
GeneralRe: List Control problem Pin
prasad_som20-Aug-06 20:08
prasad_som20-Aug-06 20:08 
AnswerRe: List Control problem Pin
Hamid_RT20-Aug-06 20:36
Hamid_RT20-Aug-06 20:36 
GeneralRe: List Control problem Pin
Anu_Bala21-Aug-06 20:12
Anu_Bala21-Aug-06 20:12 
yes, I want to update already entry user.My code is
void CLogFileInfo::UpdateListCtrl()
{
FILE *fpLogInfo;
Fname=_T("");
Instr=_T("");
ModelPeriod=_T("");
Model=_T("");
sno=1;
cnt=1;
char Sno[10];
CString GlbFNamePath2;
char LogList[200];
pCtrl->DeleteAllItems();
GlbFNamePath2 = gsInstallPath + "\\Esim\\sys\\" + "LogInfo.txt";
if ((fpLogInfo=fopen((LPCTSTR)GlbFNamePath2, "r"))!=NULL)
{
while(fgets(LogList,100,fpLogInfo)!=NULL)
{
RowIndex=sno-1;
sprintf(Sno,"%d",sno);
ReadStr =LogList;
ReadStr.TrimRight();
if (cnt==1)
Fname=ReadStr;
if (cnt==2)
Instr=ReadStr;
if (cnt==3)
Traine=ReadStr;
if (cnt==4)
ModelName=ReadStr;
if (cnt==5)
Model=ReadStr;
if(cnt>=5)
{
Index=pCtrl->InsertItem(RowIndex,Sno);
pCtrl->SetItemText(Index,1,Fname);//"LogFile" or "LogFIle_username"
pCtrl->SetItemText(Index,2,Instr);//Instructor name
pCtrl->SetItemText(Index,3,Traine);//Trainee name
pCtrl->SetItemText(Index,4,ModelPeriod);//2 hours
pCtrl->SetItemText(Index,5,Model);//Boiler or Suction...
cnt=1;
sno+=1;
newsno=sno;
}
else
{
cnt=cnt+1;
}
}
fclose(fpLogInfo);
}
}

In this coding it list all entries in to ListControl..
Here FName is for users entry identification.Common users entry with just "LogFile" FName and some registered people enter with "LogFile_username"... i want to replace the LogFile entry at each entry and LogFile_username is entered as it is ..ok I hope u get my points

Anu

GeneralRe: List Control problem Pin
Hamid_RT22-Aug-06 8:11
Hamid_RT22-Aug-06 8:11 
Questionget page margins for different paper types Pin
ch7liu20-Aug-06 16:34
ch7liu20-Aug-06 16:34 
QuestionPlease help me. Access LAN computer. [modified] Pin
thangnvhl20-Aug-06 15:09
thangnvhl20-Aug-06 15:09 
AnswerRe: Please help me. Access LAN computer. Pin
Hamid_RT31-Aug-06 6:14
Hamid_RT31-Aug-06 6:14 
QuestionDoes turning on /GS- switch make the final binary code run slower? Pin
Link260020-Aug-06 15:00
Link260020-Aug-06 15:00 
AnswerRe: Does turning on /GS- switch make the final binary code run slower? [modified] Pin
Paul Conrad21-Aug-06 9:46
professionalPaul Conrad21-Aug-06 9:46 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Link260021-Aug-06 16:01
Link260021-Aug-06 16:01 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Paul Conrad21-Aug-06 17:54
professionalPaul Conrad21-Aug-06 17:54 
GeneralRe: Does turning on /GS- switch make the final binary code run slower? Pin
Link260021-Aug-06 20:39
Link260021-Aug-06 20:39 
QuestionBreaking point Pin
Waldermort20-Aug-06 9:44
Waldermort20-Aug-06 9:44 
AnswerRe: Breaking point Pin
RChin20-Aug-06 9:53
RChin20-Aug-06 9:53 
AnswerRe: Breaking point Pin
Kevin McFarlane20-Aug-06 9:55
Kevin McFarlane20-Aug-06 9:55 
AnswerRe: Breaking point Pin
Neville Franks20-Aug-06 11:51
Neville Franks20-Aug-06 11:51 
AnswerRe: Breaking point Pin
bob1697220-Aug-06 11:58
bob1697220-Aug-06 11:58 
Question(ios::good == true) crashes the program Pin
jon-8020-Aug-06 8:52
professionaljon-8020-Aug-06 8:52 
AnswerRe: (ios::good == true) crashes the program Pin
Michael Dunn20-Aug-06 10:38
sitebuilderMichael Dunn20-Aug-06 10:38 
GeneralRe: (ios::good == true) crashes the program Pin
jon-8021-Aug-06 5:10
professionaljon-8021-Aug-06 5:10 

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.