Hi, How can I change the menu item properties dynamically? basically, I want to have the menu caption "Running!" when a certain code in my application is running and "Stopped" when the code is in standby. Thank you for your help Zakaria :confused:
zakarias
Posts
-
How to change menu item propeties ? -
How to write a string that contains the caracter "I need to strcpy the following phrase (I go "to" school) to a string. I tried the following: char test[50]; strcpy(test,"I go "to" school"); of course this is wrong!! Please help! Thanks in advance
-
How to open a database without MFC ?How can I open a database and execute SQL requests without MFC classes (CDaoDatabase, CDaoRecordset...)? in other words: how people used to work with databases before the existance of MFC (the old times)? Thank you in advance.:rose:
-
C1189: #error : MFC requires C++ compilation (use a .cpp suffix)I tried to link with MFC, change compile settings...etc but many other errors appeared...I still don't know how to convert from C to C++...beginner's problem! Maybe I will create a dll with all the MFC functions that I'll need and I'll call them from my application. Thanks a lot for your help.
-
How do I open SQL database using DAO??Here is a simple example. CDaoDatabase db; char requetesql[300]; db.Open(_T("db1.mdb")); CDaoRecordset rs(&db); rs.Open(dbOpenDynaset, _T("SELECT count([Mis1]) AS numMis1 FROM comptes WHERE Mis1=200 and Mis3=200;")); COleVariant varName; //...etc varName= rs.GetFieldValue("numMis1"); rs.Close(); db.Close(); } don't forget to #include . Good luck!
-
C1189: #error : MFC requires C++ compilation (use a .cpp suffix)Hi! I am trying to use CString in my project, after including the file afx.h I received the following error:"G:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afx.h(15) : fatal error C1189: #error : MFC requires C++ compilation (use a .cpp suffix)". I went to project->settings->C/C++ and I choosed "category"->precompiled headers->use precompiled headers and I added stdafx.h I don't understand! the error is still there! Please help!!:rose:
-
Problem with killing a processThanks a lot!! You are right!!
-
Problem with killing a processPlease help!! When I stop my application (appl1.exe), the process appl1.exe is not killed. Bellow is the loop that causes this problem. for(;;){ Sleep(100);//pour alléger le CPU DoEvents(); if (Playing==FALSE) { Playing=TRUE; break; } //end if }// end for where: void DoEvents(void) { MSG msg; while(PeekMessage(&msg,NULL,0,0,PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } } Thank you very much in advance. Zakaria azakaria_2000@voila.fr