Click here to Skip to main content
15,911,715 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: richedit control content Pin
Michael Schubert16-May-08 4:10
Michael Schubert16-May-08 4:10 
AnswerRe: richedit control content Pin
David Crow16-May-08 5:11
David Crow16-May-08 5:11 
QuestionInformation about a file ? Pin
cuesdean florin16-May-08 2:59
cuesdean florin16-May-08 2:59 
AnswerRe: Information about a file ? Pin
Hamid_RT16-May-08 3:07
Hamid_RT16-May-08 3:07 
AnswerRe: Information about a file ? Pin
CPallini16-May-08 3:11
mveCPallini16-May-08 3:11 
AnswerRe: Information about a file ? Pin
David Crow16-May-08 4:56
David Crow16-May-08 4:56 
QuestionVisual C++ 5.0 and NorthwindOledb sample error Pin
waquasalig16-May-08 2:30
waquasalig16-May-08 2:30 
QuestionError occur "Overlapped i/o operations in progress" Pin
ShilpiP16-May-08 2:15
ShilpiP16-May-08 2:15 
Hello All,

I got the error "Overlapped i/o operations in progress".Please let me know that what is the mistake??
I hardcode the second param of InternetOpenUrl to understand you what is the url type i am using.

void GetSuggestionList(LPCTSTR szURL)
{
	
	DWORD dwError=0;

	LPVOID lpMsgBuf;
	TCHAR szBuf[80]; 

    if (hInternetSession == NULL)
    {
        hInternetSession = InternetOpen(L"Microsoft Internet Explorer",
                        INTERNET_OPEN_TYPE_PRECONFIG,
                        NULL,
                        NULL,
                        INTERNET_FLAG_ASYNC);
        
        if (hInternetSession != NULL)
        {
             InternetSetStatusCallback(hInternetSession,
                        (INTERNET_STATUS_CALLBACK)InternetCallbackFunction);

          
            hURL = InternetOpenUrl(hInternetSession,
                        L"http://wioclite.webdunia.com",
                        NULL,
                        0,
                        INTERNET_FLAG_RELOAD |
                        INTERNET_FLAG_PRAGMA_NOCACHE |
                        INTERNET_FLAG_NO_CACHE_WRITE,
                        (unsigned long)(&request_context));
			if(!hURL)
			{
				dwError =	GetLastError();
				FormatMessage(
							FORMAT_MESSAGE_ALLOCATE_BUFFER | 
							FORMAT_MESSAGE_FROM_SYSTEM,
							 NULL,
							dwError,
							MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
							(LPTSTR) &lpMsgBuf,
							0, NULL );
				 wsprintf(szBuf, L"%s failed with error %d: %s", szURL, dwError, lpMsgBuf); 
 
				MessageBox(NULL, szBuf, L"Error", MB_OK); 
			}
        }
		
    }
}       


Thanks in Advance Smile | :)

Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

Questionproblem in loading grid control Pin
waquasalig16-May-08 2:08
waquasalig16-May-08 2:08 
Question[Message Deleted] Pin
Kwanalouie16-May-08 1:28
Kwanalouie16-May-08 1:28 
AnswerRe: Help with global class variables in multiple files Pin
Nelek16-May-08 1:41
protectorNelek16-May-08 1:41 
GeneralRe: Help with global class variables in multiple files Pin
Kwanalouie16-May-08 1:48
Kwanalouie16-May-08 1:48 
GeneralThe question was... Pin
Nelek16-May-08 1:58
protectorNelek16-May-08 1:58 
AnswerRe: [Message Deleted] Pin
Michael Schubert16-May-08 1:47
Michael Schubert16-May-08 1:47 
RantRe: [Message Deleted] [modified] Pin
toxcct16-May-08 1:53
toxcct16-May-08 1:53 
QuestionRe: [Message Deleted] Pin
CPallini16-May-08 1:55
mveCPallini16-May-08 1:55 
GeneralRe: [Message Deleted] Pin
Michael Schubert16-May-08 2:15
Michael Schubert16-May-08 2:15 
GeneralRe: [Message Deleted] Pin
toxcct16-May-08 2:17
toxcct16-May-08 2:17 
AnswerRe: [Message Deleted] Pin
Hamid_RT16-May-08 2:06
Hamid_RT16-May-08 2:06 
GeneralRe: [Message Deleted] Pin
ThatsAlok6-Jul-09 20:16
ThatsAlok6-Jul-09 20:16 
GeneralRe: [Message Deleted] Pin
Hamid_RT7-Jul-09 1:08
Hamid_RT7-Jul-09 1:08 
QuestionHow to read Japanese from String Table? Pin
sumit.durg16-May-08 1:24
sumit.durg16-May-08 1:24 
AnswerRe: How to read Japanese from String Table? Pin
Michael Schubert16-May-08 1:28
Michael Schubert16-May-08 1:28 
GeneralRe: How to read Japanese from String Table? Pin
sumit.durg16-May-08 3:13
sumit.durg16-May-08 3:13 
AnswerRe: How to read Japanese from String Table? Pin
Hamid_RT16-May-08 1:30
Hamid_RT16-May-08 1:30 

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.