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

C / C++ / MFC

 
AnswerRe: CDaoDatabase for Opening MS-Access Pin
Jochen Arndt23-Apr-13 0:03
professionalJochen Arndt23-Apr-13 0:03 
QuestionMulti Threaded ::ShowWindow(...) Pin
Bram van Kampen22-Apr-13 13:58
Bram van Kampen22-Apr-13 13:58 
AnswerRe: Multi Threaded ::ShowWindow(...) Pin
«_Superman_»22-Apr-13 17:07
professional«_Superman_»22-Apr-13 17:07 
QuestionRe: Multi Threaded ::ShowWindow(...) Pin
David Crow23-Apr-13 4:53
David Crow23-Apr-13 4:53 
AnswerRe: Multi Threaded ::ShowWindow(...) Pin
«_Superman_»23-Apr-13 17:35
professional«_Superman_»23-Apr-13 17:35 
GeneralRe: Multi Threaded ::ShowWindow(...) Pin
David Crow24-Apr-13 2:07
David Crow24-Apr-13 2:07 
Questionget all domains form adsi forest Pin
venkatesh5286722-Apr-13 0:29
venkatesh5286722-Apr-13 0:29 
QuestionThreads and messages - is this legal? Pin
charlieg21-Apr-13 15:31
charlieg21-Apr-13 15:31 
AnswerRe: Threads and messages - is this legal? Pin
pasztorpisti21-Apr-13 19:28
pasztorpisti21-Apr-13 19:28 
GeneralRe: Threads and messages - is this legal? Pin
charlieg22-Apr-13 4:34
charlieg22-Apr-13 4:34 
GeneralRe: Threads and messages - is this legal? Pin
pasztorpisti22-Apr-13 6:46
pasztorpisti22-Apr-13 6:46 
GeneralRe: Threads and messages - is this legal? Pin
charlieg22-Apr-13 11:20
charlieg22-Apr-13 11:20 
GeneralRe: Threads and messages - is this legal? Pin
PJ Arends22-Apr-13 12:00
professionalPJ Arends22-Apr-13 12:00 
GeneralRe: Threads and messages - is this legal? Pin
charlieg22-Apr-13 11:20
charlieg22-Apr-13 11:20 
GeneralRe: Threads and messages - is this legal? Pin
pasztorpisti22-Apr-13 22:46
pasztorpisti22-Apr-13 22:46 
AnswerRe: Threads and messages - is this legal? Pin
Stephen Hewitt22-Apr-13 20:48
Stephen Hewitt22-Apr-13 20:48 
GeneralRe: Threads and messages - is this legal? Pin
charlieg23-Apr-13 14:17
charlieg23-Apr-13 14:17 
QuestionName Space Vs Include Pin
Bram van Kampen21-Apr-13 14:51
Bram van Kampen21-Apr-13 14:51 
AnswerRe: Name Space Vs Include Pin
pasztorpisti21-Apr-13 19:40
pasztorpisti21-Apr-13 19:40 
GeneralRe: Name Space Vs Include Pin
Bram van Kampen28-Apr-13 0:34
Bram van Kampen28-Apr-13 0:34 
QuestionHiding the folder from the explorer Pin
sarfaraznawaz18-Apr-13 23:59
sarfaraznawaz18-Apr-13 23:59 
AnswerRe: Hiding the folder from the explorer Pin
André Kraak20-Apr-13 8:17
André Kraak20-Apr-13 8:17 
GeneralRe: Hiding the folder from the explorer Pin
Bram van Kampen21-Apr-13 15:19
Bram van Kampen21-Apr-13 15:19 
AnswerRe: Hiding the folder from the explorer Pin
Stefan_Lang22-Apr-13 0:26
Stefan_Lang22-Apr-13 0:26 
Questionhow to start a thread to get webinfo(xml) with chttpfile Pin
haha_c18-Apr-13 22:54
haha_c18-Apr-13 22:54 
when I use following function get the web info,it always takes a long time,My application can not do anything ,so how to create a thread to get the info .
void CMainFrame::GetXMLInfo(string& strweb,wstring& strErrorMsg)
{
CString strURL = _T("http://xxxxx.com");
CInternetSession Session(_T("MyWeb"));
CHttpFile *lpFile = NULL;
try
{
lpFile = (CHttpFile*)Session.OpenURL(strURL,1,INTERNET_FLAG_TRANSFER_ASCII|INTERNET_FLAG_RELOAD|INTERNET_FLAG_DONT_CACHE);
if (lpFile != NULL)
{
while(TRUE)
{
char szBuff[1024] = {0};
if ( lpFile->Read(szBuff, 1024) <= 0)
{
break;
}
strweb += szBuff;
}
}
}catch(CInternetException* pEx)
{
TCHAR pszError[64];
pEx->GetErrorMessage(pszError, 64);
strErrorMsg = pszError;
pEx->Delete();
}
delete lpFile;
lpFile = NULL;
Session.Close();
}

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.