I have created a function display a dialog. When I try to show a previously selected window, it causes error. :(What seems to be the problem? Here’s my code: void CProjectView::SetSelectedDialog(CDialog* dialog) { if(m_pSelectedDialog) { //Hide previously selected window m_pSelectedDialog->ShowWindow(SW_HIDE); } if(dialog) { // show Selected Window CRect rect; GetClientRect( &rect ); m_pSelectedDialog = dialog; m_pSelectedDialog->MoveWindow(rect, TRUE); m_pSelectedDialog->ShowWindow(SW_SHOW); } }
romuzu
Posts
-
Call to Dialog causes error -
Error during MSVC++ 6 Debug ModeCan anybody help me with this error? During debug mode I have receive this error message: MSVCRT.DLL: Access Violation. But if i Run my application on Release Mode. No error occured. Your help is appreciated.
-
Anybody in the PhilippinesIt would be my pleasure to help you organize the get-together.By the way, pinoy n pinoy ito pre... sorry to disappoint you but im a guy. ehheehheh:laugh::laugh::laugh: I've been in the IT industry since june 2004, 3 months after i graduated college. I'll pop u a message on your YM. Thanks... just me, romuzu
-
Anybody in the Philippineshi! JayR. Im from the Philippines too. :-D I don't know any event that we can get-together. Maybe you can organize one. ehehehehe. I like the idea of having a get-together so that we can share our IT industry knowledge. By the way, are you familiar with PhilNITS(Philippine IT Standards) Exam? Im planning to take it this october but I just cant get my motivations. Hope to hear from you soon. Thanks and have a great day. just me, romuzu
-
PC for GamingIm planning to buy a pc for gaming. I know a little about computer specifications. Can anybody tell me which computer specification should I buy and which brand. Thanks!
-
C++ Naming ConventionsIm looking for MS Visual C++ Naming conventions. The naming conventions I know are from Visual Basic. I don't know if its ok to adopt the naming conventions from VB. If you know some articles on Visual C++ please let me know. Thanks.
-
Database AccessWe are developing an application that connects to a database. Can anybody tell me which is better on database access? First, One time access to the database(loads all database contents to a to a vector or recordset) then update the changes to the database whenever necessary. This is usually done on the application start-up.Second option is to load database contents(data which is only needed for a particular dialog) then update database when there are changes. For me the second option is better because it does not consume much memory resources and only the needed data are accessed whenever needed. What do you think guys?
-
WTFyour system might be infected with virus. try installing an antivirus program.
-
Syntax Errorthis is the file on the include folder of MSVC++(VECTOR) #ifdef _MSC_VER #pragma pack(push,8) #endif /* _MSC_VER */ _STD_BEGIN <-- this is shown by the error but i believe this is not the real error // TEMPLATE CLASS vector template > class vector { i also included the header file on my source code.
-
Syntax Errorthats the only error message i recieve.
-
Syntax ErrorF:\Installation\VC98\INCLUDE\vector(17) : error C2143: syntax error : missing ';' before 'namespace' i get this error message but i already checked my syntax and it is correct. what should i do to correct this error?
-
Prof-UIS DLL ProblemWhen i run my project on debug mode, i get a message saying that profuis225md.dll is not a valid windows image. If I run it on release mode, the project is ok. I can't debug the project because of this. What can I do to solve this problem. Thanks in advance.
-
Disable Menu Itemi actually added an event handler. when the event handler is only ON_COMMAND for that dialog the menu is enabled but when i add the ON_UPDATE_COMMAND_UI event handler, the menu is disabled. and i have another problem, it doesn't show the dialog.
-
Disable Menu ItemI added an item on my menu. I also added handlers to it. but when i run my project, the menu i added is disabled. Does anybody know how to solve this problem. it would help a lot.
-
unexpected end of file while looking for precompiled header directivei did what you have suggested. It resulted to another error. here it is: fatal error C1853: 'Debug/CMMITool.pch' is not a precompiled header file created with this compiler the file which i included the stdafx.h header file is a C source file. this must have caused the other error.
-
Another Errorf:\installation\vc98\include\xmemory(37) : warning C4100: '_P' : unreferenced formal parameter f:\installation\vc98\include\xmemory(68) : see reference to function template instantiation 'void __cdecl std::_Destroy(unsigned int *)' being compiled Error.cpp I also got this error. It seems that it caused by the include header. How can i solve this? Thanks again.
-
unexpected end of file while looking for precompiled header directiveunexpected end of file while looking for precompiled header directive i have this error when i compile my project on debug mode but when i compile it in release mode it doesn't have this problem. Please help me. i don't know how to debug this and how come the error occurs when I compile it in debug mode and not when I compile it in release mode. What probably is the cause? Does it mean that i have a missing file? I'm new to Visual C++ Programming.
-
nobody is listening to mehi! i'll try to help you when i have my free time. hope to hear from you.
-
Workspace problemthanks! it helped a lot.
-
Workspace problemHi! My workspace cant open all the classes of my project then the workspace window is all black out. What seems to be a problem and how can i solve this problem?