Click here to Skip to main content
15,898,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 !
QuestionRe: How can I upload an file in MFC ? Pin
David Crow27-Jan-11 8:57
David Crow27-Jan-11 8:57 
AnswerRe: How can I upload an file in MFC ? Pin
mesajflaviu27-Jan-11 8:59
mesajflaviu27-Jan-11 8:59 
GeneralRe: How can I upload an file in MFC ? Pin
David Crow27-Jan-11 9:14
David Crow27-Jan-11 9:14 
GeneralRe: How can I upload an file in MFC ? Pin
mesajflaviu27-Jan-11 10:19
mesajflaviu27-Jan-11 10:19 
GeneralRe: How can I upload an file in MFC ? Pin
mesajflaviu30-Jan-11 19:55
mesajflaviu30-Jan-11 19:55 
QuestionCan anybody help me to convert some vb function in vc++? [modified] Pin
Le@rner26-Jan-11 23:12
Le@rner26-Jan-11 23:12 
GeneralRe: Can anybody help me to convert some vb function in vc++? Pin
Malli_S26-Jan-11 23:21
Malli_S26-Jan-11 23:21 
AnswerRe: Can anybody help me to convert some vb function in vc++? Pin
CPallini26-Jan-11 23:38
mveCPallini26-Jan-11 23:38 
Questionhow to use CButton class in win 32 Pin
rajniyadav1a26-Jan-11 19:41
rajniyadav1a26-Jan-11 19:41 
AnswerRe: how to use CButton class in win 32 Pin
_AnsHUMAN_ 26-Jan-11 20:19
_AnsHUMAN_ 26-Jan-11 20:19 
AnswerRe: how to use CButton class in win 32 Pin
Cedric Moonen26-Jan-11 20:31
Cedric Moonen26-Jan-11 20:31 
AnswerRe: how to use CButton class in win 32 Pin
CPallini26-Jan-11 21:30
mveCPallini26-Jan-11 21:30 
Questionhow to close document handle Pin
VCsamir26-Jan-11 18:19
VCsamir26-Jan-11 18:19 
AnswerRe: how to close document handle Pin
Cedric Moonen26-Jan-11 20:38
Cedric Moonen26-Jan-11 20:38 
AnswerRe: how to close document handle Pin
CPallini26-Jan-11 22:02
mveCPallini26-Jan-11 22:02 
GeneralRe: how to close document handle Pin
VCsamir26-Jan-11 22:21
VCsamir26-Jan-11 22:21 
GeneralRe: how to close document handle Pin
Richard MacCutchan26-Jan-11 22:38
mveRichard MacCutchan26-Jan-11 22:38 

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.