Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Idle time in VC++ Pin
Kamyar Souri20-May-04 9:29
Kamyar Souri20-May-04 9:29 
GeneralA question about CRuntimeClass and Dynamic Creation Pin
SmilingHeart20-May-04 2:48
SmilingHeart20-May-04 2:48 
GeneralRe: A question about CRuntimeClass and Dynamic Creation Pin
Andrew Quinn AUS20-May-04 3:39
Andrew Quinn AUS20-May-04 3:39 
GeneralRe: A question about CRuntimeClass and Dynamic Creation Pin
SmilingHeart21-May-04 18:54
SmilingHeart21-May-04 18:54 
GeneralRe: A question about CRuntimeClass and Dynamic Creation Pin
igor196020-May-04 11:06
igor196020-May-04 11:06 
GeneralRe: A question about CRuntimeClass and Dynamic Creation Pin
SmilingHeart21-May-04 18:52
SmilingHeart21-May-04 18:52 
GeneralRe: A question about CRuntimeClass and Dynamic Creation Pin
igor196022-May-04 11:55
igor196022-May-04 11:55 
GeneralHelp needed with CStdioFile Pin
Chooikw20-May-04 2:41
Chooikw20-May-04 2:41 
I'm trying to check the update list from my webserver and then determine whether to update the program.But when i try to write something into my current installed list,it will cause an error for the next move. here is my code:
void CProjectXDlg::CheckUpdate(void)
{
CInternetSession session("Update");
CStdioFile* pFile=NULL;
CStdioFile fUpdateList;
CString strBuf,strBuf2;
pFile=session.OpenURL(host+"updatelist.txt");
fUpdateList.Open("applied.txt",CFile::modeReadWrite|CFile::modeNoTruncate|CFile::modeCreate);
while(pFile->ReadString(strBuf))
{
fUpdateList.ReadString(strBuf2);
if(strBuf!=strBuf2)//not same,go update!
{
fUpdateList.WriteString(strBuf+"\n");
}
}
fUpdateList.Close();

pFile->Close();
if(pFile)delete pFile;
session.Close();
}


the applied.txt will have some weird characters stored in...
GeneralRe: Help needed with CStdioFile Pin
David Crow20-May-04 2:47
David Crow20-May-04 2:47 
GeneralRe: Help needed with CStdioFile Pin
Chooikw20-May-04 3:10
Chooikw20-May-04 3:10 
GeneralRe: Help needed with CStdioFile Pin
*Dreamz20-May-04 3:58
*Dreamz20-May-04 3:58 
GeneralRe: Help needed with CStdioFile Pin
David Crow20-May-04 4:07
David Crow20-May-04 4:07 
GeneralRe: Help needed with CStdioFile Pin
Anonymous20-May-04 4:28
Anonymous20-May-04 4:28 
GeneralDistributing my VC++ app Pin
nay20-May-04 2:15
nay20-May-04 2:15 
GeneralRe: Distributing my VC++ app Pin
David Crow20-May-04 2:49
David Crow20-May-04 2:49 
GeneralRe: Distributing my VC++ app Pin
nay20-May-04 2:51
nay20-May-04 2:51 
GeneralRe: Distributing my VC++ app Pin
David Crow20-May-04 4:11
David Crow20-May-04 4:11 
GeneralRe: Distributing my VC++ app Pin
Michael Dunn20-May-04 5:15
sitebuilderMichael Dunn20-May-04 5:15 
GeneralXOR Operation Pin
vijayaramaraju20-May-04 1:50
vijayaramaraju20-May-04 1:50 
GeneralRe: XOR Operation Pin
Kamyar Souri20-May-04 9:38
Kamyar Souri20-May-04 9:38 
Questionhow do i change toolbar button bitmaps Pin
Member 63398320-May-04 0:54
Member 63398320-May-04 0:54 
QuestionVariable argument functions- how to? Pin
Ernesto D.19-May-04 23:44
Ernesto D.19-May-04 23:44 
AnswerRe: Variable argument functions- how to? Pin
Maxwell Chen19-May-04 23:49
Maxwell Chen19-May-04 23:49 
AnswerRe: Variable argument functions- how to? Pin
Prakash Nadar20-May-04 0:06
Prakash Nadar20-May-04 0:06 
GeneralRe: Variable argument functions- how to? Pin
Ernesto D.20-May-04 10:37
Ernesto D.20-May-04 10:37 

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.