Click here to Skip to main content
15,909,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to let the computer boot at some time? Pin
yu-jian27-Jan-11 15:43
yu-jian27-Jan-11 15:43 
GeneralRe: How to let the computer boot at some time? Pin
Cool_Dev27-Jan-11 17:25
Cool_Dev27-Jan-11 17:25 
GeneralRe: How to let the computer boot at some time? Pin
yu-jian27-Jan-11 19:57
yu-jian27-Jan-11 19:57 
AnswerRe: How to let the computer boot at some time? Pin
CPallini27-Jan-11 22:10
mveCPallini27-Jan-11 22:10 
GeneralRe: How to let the computer boot at some time? Pin
yu-jian28-Jan-11 1:55
yu-jian28-Jan-11 1:55 
QuestionChar To String & Then Array. Pin
Mike Certini27-Jan-11 12:51
Mike Certini27-Jan-11 12:51 
AnswerRe: Char To String & Then Array. Pin
Cool_Dev27-Jan-11 17:23
Cool_Dev27-Jan-11 17:23 
AnswerAnswer: Char To String & Then Array. Pin
Mike Certini27-Jan-11 17:36
Mike Certini27-Jan-11 17:36 
GeneralRe: Answer: Char To String & Then Array. Pin
Richard MacCutchan27-Jan-11 22:57
mveRichard MacCutchan27-Jan-11 22:57 
QuestionCreating .dll linked to Excel, add function error [modified] Pin
jharn27-Jan-11 9:10
jharn27-Jan-11 9:10 
AnswerRe: Creating .dll linked to Excel, add function error Pin
Richard MacCutchan27-Jan-11 10:14
mveRichard MacCutchan27-Jan-11 10:14 
GeneralRe: Creating .dll linked to Excel, add function error [modified] Pin
jharn27-Jan-11 11:10
jharn27-Jan-11 11:10 
GeneralRe: Creating .dll linked to Excel, add function error Pin
T210227-Jan-11 11:44
T210227-Jan-11 11:44 
GeneralRe: Creating .dll linked to Excel, add function error Pin
Richard MacCutchan27-Jan-11 22:43
mveRichard MacCutchan27-Jan-11 22:43 
QuestionHow to make child control handle accelerator command of parent CView? Pin
hatemtaleb27-Jan-11 3:32
hatemtaleb27-Jan-11 3:32 
AnswerRe: How to make child control handle accelerator command of parent CView? Pin
User 742933827-Jan-11 9:08
professionalUser 742933827-Jan-11 9:08 
Questionhow we write the c-program.of sorting the set of point. w.r.t. convex polygon Pin
s.bhalerao27-Jan-11 1:07
s.bhalerao27-Jan-11 1:07 
Questionhow we write the c-pogram.of sorting the set of point. w.r.t. convex polygoan Pin
s.bhalerao27-Jan-11 1:03
s.bhalerao27-Jan-11 1:03 
AnswerRe: how we write the c-pogram.of sorting the set of point. w.r.t. convex polygoan Pin
Cedric Moonen27-Jan-11 1:30
Cedric Moonen27-Jan-11 1:30 
AnswerRe: how we write the c-pogram.of sorting the set of point. w.r.t. convex polygoan Pin
CPallini27-Jan-11 1:36
mveCPallini27-Jan-11 1:36 
AnswerRe: how we write the c-pogram.of sorting the set of point. w.r.t. convex polygoan Pin
Richard MacCutchan27-Jan-11 1:54
mveRichard MacCutchan27-Jan-11 1:54 
AnswerRe: how we write the c-pogram.of sorting the set of point. w.r.t. convex polygoan Pin
Stefan_Lang27-Jan-11 3:04
Stefan_Lang27-Jan-11 3:04 
QuestionHow can I upload an file in MFC ? Pin
mesajflaviu26-Jan-11 23:40
mesajflaviu26-Jan-11 23:40 
AnswerRe: How can I upload an file in MFC ? Pin
David Crow27-Jan-11 4:16
David Crow27-Jan-11 4:16 
GeneralRe: How can I upload an file in MFC ? Pin
mesajflaviu27-Jan-11 8:54
mesajflaviu27-Jan-11 8:54 
Ok , here is my download code , which goes perfectly :
( I don't know if is corectly , but does function )
BOOL CMyDoc::GetXmlFile(CString sAddress, CString& sResult)
{
	CString sTemp;
	CInternetSession ISession;
	CInternetFile* pIFile = NULL;
	CMainFrame* pFrame = (CMainFrame*)AfxGetMainWnd();

	try
	{
		pIFile = (CInternetFile*)ISession.OpenURL(sAddress);
		while(pIFile->ReadString(sTemp))sResult += sTemp;
		pIFile->Close();
		delete pIFile;
	}
	catch(CException* pException)
	{
		delete pIFile;
		pException->GetErrorMessage(sTemp.GetBuffer(255),255);
		sTemp.ReleaseBuffer();
		pFrame->SetMessageText(sTemp);
		return FALSE;
	}

	return TRUE;
}

I will be very glad if you can help me . Thank you very much !

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.