Hi again !!
I have now just used ExitWindowsEx(), but the program just returns without causing the PC to power down - however, I can't get it to stop at a breakpoint beyong ExitWindowsEx(). I should say that this was the problem that I had before I made my original post asking for help !! I'm calling the function as follows:-
AT LONG LAST, I've cracked it !! Despite the descriptions of the possible values for uiFlags, EWX_SHUTDOWN appears to do the trick !! For reference, the values are EWX_POWEROFF = 8, EWX_FORCE = 4, EWX_REBOOT = 2, EWX_SHUTDOWN = 1, EWX_LOGOFF = 0. These are clearly bit-orientated and one would therefore assume that they could/should be used in combination. (I really don't understand why the use of EWX_SHUTDOWN doesn't result in the message "The system may now be powered off" and why don't I need to use EWX_FORCE (or maybe I do ?) Anyway, thanks for staying with me through this "journey" !!
And do a bit of gymnastics to resize it into the static, remove the menu and the caption through using the following:
CMenu* pMenu = cOsk->GetMenu();
if(pMenu) // We don't want the users to 'Play' with any of the functions
Would you please let me know some concepts ,algorithms or codes regarding to the translation from a regional language(i.e.,Bengali) to English.Its may be a part of transliteration also.Particularly, it is needy to identify proper nouns from a given sentence or statement.How would I implement this?I approached to search a database (say,some.mdb)having names of persons in ISCII format .But it may become time consuming!!
Let it be identified, then is it possible to translate without searching database?
Is all of this within your OnMouseMove function? If so, then the problem is one of scope.
arrayPoint is local to OnMouseMove. When OnMouseMove exits, the array is destroyed, since its a local variable of OnMouseMove. So every time the mouse moves and your OnMouseMove is called, it builds, then destroys, this array.
Try moving the array out of the function and make it a member variable of your window or dialog.
I understand but it tried to create member variable but the VC++ doesnt allow me to add CArray<mystruct,mystruct> type of variable. I need more detail solution. I am new to VC++ but have C b/ground. THanks.
Instead of making the CArray a member of the class, just move the declaration to just above your OnMouseMove function. This moves it outside the function and outside the class. Effectively, it becomes a global variable *shudder* but it should still put a temporary band-aid on the problem.
As for C++ in general, if you're a seasoned C programmer, see if you can find a book called "Moving From C To C++". I got this book about 10 years ago, and it's the only C++ book I've ever needed.
i compile a COM then use it (by Windows).
when i try to re-compile it, VC said "can not open file ..."
it means VC can not delete it for generating a new one.
i try to delete the COM manually from Explorer but failed.
after use Regsvr32 to unregister the COM, i still can not delete the COM.
i have to restart my PC for any code modifications.
Isn't it a shell exension? (what I can guess from the code). In that case the explorer.exe holds your dll. You need to kill the explorer process somehow - first method is to simply kill it in taskman, but there's some other method - after you do ctrl-alt-del, but I can't remember it now - check the codeproject's page about shell extensions.
I use a CToolBar control in a dialog to load a bitmap as a group buttons.
And if I use the dialog as main dialog (pop up dialog), the toolbar can work normally,
but question is: if a use the dialog as a child window (WS_CHILD), created by a parent dialog.
then the toolbar can't be used.
I find the way to update dialog UI, but it can't work.
So I think some messages to the dialog filtered by its parent window. But I can't find them, and get a solution:confused:.
If you can solve the problem:laugh:, or give me some tips:zzz:! Thannks Very Much!
Last Visit: 31-Dec-99 19:00 Last Update: 3-Mar-21 15:36