|
Counting this one, I've posted 8 times to this thread, which was 7 times too many. I showed you the answer in my first post. You continue to use your code, which I do not have a problem with, but you still refuse to make the necessary changes or even compare the two to see why they behave differently. I'm confused as to why a person would do this.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks for your help. I tried to code it just like you had in the 1st answer, but my compiler would not compile it.
|
|
|
|
|
kbury wrote: I tried to code it just like you had in the 1st answer...
Using copy & paste?
kbury wrote: ...but my compiler would not compile it.
It was standard C code. What error(s) did you receive?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
plz can anyone tell me how to convert a regular exp to trasition table or dfa. i need the code in c or c++.
plz mail to me lavanya2290@gmail.com
|
|
|
|
|
First, no one is going to email you anything. This is a learning community, so any answers you get will be posted here.
Second, stop using SMS speak. If you want people here to respect your question, show some respect for them by spelling out words like plz.
|
|
|
|
|
That's not something that can just be dolled out in a few code snippets. Have you tried here?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello Friends
I m using OPENFILENAME structure.I want to keep tumbnail view whenever i open tht dialog.Do u hv any Idea?And i m using only win32 sdk.
Do u guys hv any Idea regarding IShellbrowser interface.Is tht helpful?
Pleasse suggest me some solution.
Thanks & Regards
Yogesh
|
|
|
|
|
|
This link was also dealing with MFC dear.Thx Anyway.
|
|
|
|
|
Well, you have lpfnHook , after all.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
But how we can use lpfnhook for view settings?Do u hv any other information regarding tht otherwise i hv to google it.
Thx
|
|
|
|
|
I got the lpfnhook but how do we can set view on its initdialog.
|
|
|
|
|
yogeshs wrote: I m using OPENFILENAME structure.I want to keep tumbnail view whenever i open tht dialog.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
this one is in MFC and I m using only win32 sdk
|
|
|
|
|
There is little to no reliance on MFC in the article I provided. The author just used it as a convenience rather than a necessity. If you read through it, you will surely find the important parts, namely the parent/child hierarchy and which one to send the message to.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
yogeshs wrote: But I am not able to get the view type as while setting I am already having Command Id for each view .
Can you please suggest me some way how to get the view Id ?
I suspect the answer will be in the form of sending a LVM_GETVIEW message.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello all,
I have made an MFC application with invisible window and invisible in Applications tab of taskmanager designed to run in different sessions depending upon the number of users who are logged into the system. Thus, according to user events the instances used to capture logoff/Shutdown/Logon events for that particular session.Also, I have made one instance of this executable to run in 'SYSTEM' account to capture scheduled shutdown in cases when no user was logged on the machine. However in this case 'WM_QUERYENDSESSION' is never recieved by this running instance of my application which runs in 'SYSTEM' account.Can some one tell me how to abort scheduled shutdown in Windows from an application running in system account , in a case when no user is logged on in the machine.
Regards,
Kushagra
I hate coding but I luv to develop
modified on Wednesday, October 21, 2009 9:22 AM
|
|
|
|
|
I'm not sure that WM_QUERYSESSION is sent to apps running in system account. You could try SetConsoleCtrlHandler() and catch the CTRL_SHUTDOWN_EVENT . I don't think this allows you to stop the shutdown.
|
|
|
|
|
I got your point, but how do we use SetConsoleCtrlHandler in an MFC application..I can always do shutdown -a inside it if I recieve a CTRL_SHUTDOWN MEssage. Please Detail me how to include it in an MFC application ?
Kushagra
|
|
|
|
|
The MSDN article has a link at the bottom to an example. It's not MFC, but you should be able to use it in an MFC app.
|
|
|
|
|
Thanks Hans,
But yes we can only intercept the message here and not abort shutdown here
Kushagra
|
|
|
|
|
It will sound funny, where actually are you catching WM_QUERYENDSESSION Message?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hey Alok,
I am trapping the message in WndProc(Windows Procedure Method) of the application. Then using the message handler for WM_QUERYENDSESSION I am returning false to abort logoff/shutdown and doing my functionality in between.
Regards,
Kushagra
|
|
|
|
|
Kushagra Tiwari wrote: However in this case 'WM_QUERYSESSION' is never recieved by this running instance...
Where is this message being sent from? Is that process sending it to your window directly, or to all top-level windows via HWND_BROADCAST ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hello David,
Generally when windows receives shutdown event it broadcasts WM_QUERYENDSESSION to all top level windows applications , here the issue is as my MFC application is running silently from 'System' account somehow the broadcasted message from Windows is not able to identify this as a Top level windows application.Hence, this application never recives the message whcih is why I am stuck here. All i need to do is to stop scheduled shutdown from a process running in 'System' account. I am open to suggestions , if this can be done in any other way too.
Regards,
Kushagra
|
|
|
|