Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionvc 2005 CDatabase compile error Pin
ns10-Oct-07 5:21
ns10-Oct-07 5:21 
AnswerRe: vc 2005 CDatabase compile error Pin
Mark Salsbery10-Oct-07 5:35
Mark Salsbery10-Oct-07 5:35 
GeneralRe: vc 2005 CDatabase compile error Pin
ns10-Oct-07 5:43
ns10-Oct-07 5:43 
AnswerRe: vc 2005 CDatabase compile error Pin
David Crow10-Oct-07 8:36
David Crow10-Oct-07 8:36 
AnswerRe: rebase and memory allocation Pin
Nemanja Trifunovic10-Oct-07 7:41
Nemanja Trifunovic10-Oct-07 7:41 
GeneralRe: rebase and memory allocation Pin
aks.10-Oct-07 15:27
aks.10-Oct-07 15:27 
GeneralRe: rebase and memory allocation Pin
JudyL_MD11-Oct-07 3:23
JudyL_MD11-Oct-07 3:23 
QuestionError in ShowWindow() Pin
GauranG Shah10-Oct-07 4:45
GauranG Shah10-Oct-07 4:45 
Hello Friends,

I am using win32 application. In that I hide the Application on Dialog Initialization and put the icon in the taskbar. I am using the Context menu in taskbar. Ans Want to show the window when someone choose the Exit option of the menu. But it show me the strange Error.

Error code = 0x000005B4 which means "This operation returned because the timeout period expired. "

I am using following code

LRESULT CALLBACK MyDialogProc(...)
{
    ShowWindow(hWndDlg,SW_HIDE); //Hide the main window
   switch(message)
	{
         case WM_TASKMSG:     	  //user Messages for Task Manager
            if(lParam == WM_RBUTTONDOWN)	
		{
		POINT pt;
	        GetCursorPos(&pt);	
	        TrackPopupMenuhmenuTrackPopup,NULL,pt.x ,pt.y,0,hWndDlg,NULL); 
		}
		break;
	
	 case WM_COMMAND :	//Handling Context Menu Messages
	        switch(LOWORD(wParam))
		{
                   case ID_Exit:
		     if( ! ShowWindow(hWndDlg,SW_SHOWNORMAL) )
			{      
                             //Here getting the Error that TimeOut Expire
					dError = GetLastError();
                        }
                 }
         } 
 }

I search lot on google for this error but it show that this type of error comes with database(SQL Connection) only.And not getting any solution
Please Help me if u know the solution. Thnx in advance




AnswerRe: Error in ShowWindow() Pin
Nathan Holt at EMOM10-Oct-07 5:28
Nathan Holt at EMOM10-Oct-07 5:28 
GeneralRe: Error in ShowWindow() Pin
GauranG Shah10-Oct-07 19:16
GauranG Shah10-Oct-07 19:16 
QuestionRe: Error in ShowWindow() Pin
David Crow11-Oct-07 3:26
David Crow11-Oct-07 3:26 
GeneralRe: Error in ShowWindow() Pin
Nathan Holt at EMOM11-Oct-07 8:10
Nathan Holt at EMOM11-Oct-07 8:10 
QuestionRead/Write properties Office 2007 in C++ Pin
SameerSathe10-Oct-07 4:42
SameerSathe10-Oct-07 4:42 
AnswerRe: Read/Write properties Office 2007 in C++ Pin
toxcct10-Oct-07 5:15
toxcct10-Oct-07 5:15 
QuestionHelp moving from FTP to HTTPS Pin
al_in_the_city10-Oct-07 4:40
al_in_the_city10-Oct-07 4:40 
AnswerRe: Help moving from FTP to HTTPS Pin
led mike10-Oct-07 5:23
led mike10-Oct-07 5:23 
AnswerRe: Help moving from FTP to HTTPS Pin
vikas amin11-Oct-07 7:00
vikas amin11-Oct-07 7:00 
AnswerRe: Help moving from FTP to HTTPS [modified] Pin
vikas amin11-Oct-07 11:47
vikas amin11-Oct-07 11:47 
QuestionCompiling Visual C/C++ code on Windows XP Pin
Dennis Russell10-Oct-07 4:38
Dennis Russell10-Oct-07 4:38 
GeneralRe: Compiling Visual C/C++ code on Windows XP Pin
Matthew Faithfull10-Oct-07 5:14
Matthew Faithfull10-Oct-07 5:14 
GeneralRe: Compiling Visual C/C++ code on Windows XP Pin
Dennis Russell10-Oct-07 5:19
Dennis Russell10-Oct-07 5:19 
Questionvc 2005 compile error Pin
ns10-Oct-07 4:26
ns10-Oct-07 4:26 
AnswerRe: vc 2005 compile error Pin
Cedric Moonen10-Oct-07 4:33
Cedric Moonen10-Oct-07 4:33 
GeneralRe: vc 2005 compile error Pin
ns10-Oct-07 5:18
ns10-Oct-07 5:18 
AnswerRe: vc 2005 compile error Pin
toxcct10-Oct-07 5:11
toxcct10-Oct-07 5:11 

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.