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

C / C++ / MFC

 
QuestionRe: Working with CArchieve Pin
prasad_som20-Aug-06 23:20
prasad_som20-Aug-06 23:20 
AnswerRe: Working with CArchieve Pin
Kiran Pinjala20-Aug-06 23:38
Kiran Pinjala20-Aug-06 23:38 
QuestionCreating binary File Pin
harsha_123420-Aug-06 22:01
harsha_123420-Aug-06 22:01 
AnswerRe: Creating binary File Pin
Cedric Moonen20-Aug-06 22:16
Cedric Moonen20-Aug-06 22:16 
GeneralRe: Creating binary File Pin
harsha_123420-Aug-06 22:44
harsha_123420-Aug-06 22:44 
GeneralRe: Creating binary File Pin
Cedric Moonen20-Aug-06 22:46
Cedric Moonen20-Aug-06 22:46 
GeneralRe: Creating binary File Pin
Hamid_RT21-Aug-06 0:56
Hamid_RT21-Aug-06 0:56 
AnswerRe: Creating binary File [modified] Pin
toxcct20-Aug-06 22:16
toxcct20-Aug-06 22:16 
AnswerRe: Creating binary File Pin
kakan20-Aug-06 22:23
professionalkakan20-Aug-06 22:23 
QuestionUSB Pin
thathvamsi20-Aug-06 21:56
thathvamsi20-Aug-06 21:56 
AnswerRe: USB Pin
Cedric Moonen20-Aug-06 22:12
Cedric Moonen20-Aug-06 22:12 
GeneralRe: USB Pin
thathvamsi20-Aug-06 22:27
thathvamsi20-Aug-06 22:27 
GeneralRe: USB Pin
Don Fletcher20-Aug-06 23:12
Don Fletcher20-Aug-06 23:12 
QuestionTo Insert ling graph control in to the Dialog [modified] Pin
dinesh_IP20-Aug-06 21:37
dinesh_IP20-Aug-06 21:37 
AnswerRe: To Insert ling graph control in to the Dialog [modified] Pin
Cedric Moonen20-Aug-06 21:50
Cedric Moonen20-Aug-06 21:50 
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 

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.