I am using mysql_query for create a table in mysql.In normal it's working fine.When i put some wrong column name that mysql_query show execute.But in real condition mysql_query not execute or cursor jump into catch.Here is code
I have quite a strange problem. My program is based on MFC dialog but modeless. It starts hidden and creates a tray icon. The user can exit it in two ways: if the program is visible the user can press the exit button; if the program is not visible the user can right click on the tray icon and press exit. Both of these message handle routines call CWnd::DestryWindow which calls my OnDestroy which calls Shell_NotifyIcon( NIM_DELETE, ... ). On XP and 7 everything works fine but on Vista when the app is exiting through the tray icon message handler the call to Shell_NotifyIcon( NIM_DELETE, ... ) returns FALSE with GetLastError() returning 0. The result is that the icon does not disappear with the exiting of the app but only when the tray bar is refreshed (the mouse goes over it).
Why is this named with the same name as of the structure?
Because that is a pointer variable, which points to another similar structure (or may point to NULL if it is the last node). I suggest that you take a look at the Wikipedia Entry[^], which illustrates this with a diagrams (that must help you understand it better).
Look at LayeredWindows[^] for starters. The only way i can think of to connect this with OpenGL is to render your graphic into a bitmap with OpenGL and then use this bitmap to update your layered window. Hope this helps something.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
(Question 1): How do you obtain the data contained in the various CPropertyPage(s) that the CPropertySheet loaded by the AddPage() function?
(Question 2): How do you find out which page the User is presently on? Ex: how do I find out when all the data has been entered?, so I can collect the data entered(once I find out how to get the data from the CPropertyPage(s))
A C++ programming language novice, but striving to learn
1) CPropertySheet::GetPage(int index) will return a pointer to a CPropertyPage object, which can be cast to a specific CPropertyPage derived class pointer; e.g., CMyPage* page = (CMyPage*)MySheet->GetPage(0);.
2) Likewise, CPropertySheet::GetActivePage()will return a CPropertyPage pointer to the active page. There's also a GetActiveIndex() which returns the integer index of the active page.