13,043,092 members (53,533 online)
Forgot your password?
Sign in with
Chapters and Sections
Article Help Forum
Submit an article or tip
Post your Blog
Ask a Question
View Unanswered Questions
View All Questions...
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
Silverlight / WPF
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The Insider News
The Weird & The Wonderful
General Indian Topics
General Chinese Topics
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Advertise with us
About our Advertising
Comments by PJ Arends (Top 38 by date)
Thanks for your answer. I guess I will just end up writing a c++ script that will go through all the .htm files and update the version information in each one individually.
Do not use void* if you can at all avoid it. You loose all type safety if you use it.
The cast you are trying to do is better done with reinterpret_cast.
Ok, I can understand your point now that you have explained it. I probably would not have reacted the way I did if you would have made your point clearer to begin with.
I just hate to see newcomers to this site get down voted and their questions not answered for silly reasons like "terminology", especially as their first language may not be English.
The OP asked a simple question that we all as beginners would have asked and you give him an English lesson on the difference between the words "conversion" and "formatting". You can clearly see from his use of the Format function and the char array that he was on the correct path to solving his problem.
You are obviously a very knowledgeable guy but sometimes you can be pretty dense too.
Thanks. I do not reply for the points, but just to give the OP a hint in what I believe is the right direction.
Thanks Matt T Heffron for updating my answer. I posted from my phone and was unable to fix it myself.
Or he could just ask "gimme codez" questions. Seems to work for lots of people here.
No. You did not answer the question.
You are correct. The documentation says to call DefWindowProc(), not Default(). I stand corrected.
Seriously? I did not post this question in order to get into a debate with you. All I want is an answer to the question: "Is it possible to tell from a base class function if the said function has been overridden in a derived class? And if so, how?"
Simple. If you know the answer then I will really appreciate it. If you can say with certainty that it is not possible, then I will appreciate that answer also. Just do not try to tell me about OOP and how to do this or that or the next thing.
I am not new to this game. I am just trying to do something I have never done before, because it is unconventional, and was wondering if anyone had actually done it before and could help me.
This is not an answer to my question. I know my real goal, you do not. And I know of a work around. But the work around could be considered a little messy so I was looking for a more elegant, neater way of accomplishing my goal.
If you have an answer, great, I would love to hear it. If all you are going to do is tell me I do not know what I am doing, or I do not know what my goal is, then just do not reply. You do not know what my goal is, you do not know what I am doing.
I just want to know if this is possible, and if so how? That is it. Nothing more, nothing less.
I had tried that already, but you made me relook at it. My mistake was calling the CView::OnSetFocus() after calling SetFocus on my control.
Sometimes I can be such a dough head.
Looks like I am going to have to rewrite my control to make this work. All my public functions have to be handled via the SendMessage() API, not through the class instance function calls as I do now. Oh well, looks like I have coding to do.
Thanks. I will look into it tonight when I get back home.
Reason for my vote of 1 \n Total garbage that should be removed from the site.
IMO using sounds is not an effective way, especially if you are validating in EN_UPDATE as the control maybe in an invalidate state while the user is typing and constant beeping would be really annoying.
A for a visual indicator things I have done include changing the background colour or border colour. Also disabling the OK button until everything is valid is a possibility as long as that does not hold up your users productivity. Sometimes it is better to allow invalid data so the work can be saved in order to get back to it later.
Use std::vector< myclass>;
Yes, that is where the
flag comes in. It is used to prevent just this problem.
I should also add, that the only the top left cell in the demo grid has this functionality, the rest of the cells are simple text edit controls.
The validating is done in
This function handles the EN_UPDATE message. This message is generated by the edit control just before it displays the text. What I did is validate the text in the control, and if it is not valid I restore the last previously valid text. This way it does not matter what is typed into the edit control, it will just appear to the user that all invalid text is rejected.
The tricky part for you now is that the CInPlaceNumEdit class works in concert with the CGridCellNumeric class. When the user finishes editing it ends up calling CGridCellNumeric::SetText() with the user entered text, which in turn calls CGridCellNumeric::Format() to format the final text in a locale specific format.
That should now be as clear as mud. Just look at CInPlaceNumEdit::OnUpdate and CGridCellNumeric::Format()
IE9 totally failed multiple times to get it, but I did manage to get it using Firefox. Thanks for the information about the file size, exactly what I needed.
These are messages sent by the windows OS to your applications window.
Not enough information.
What brand of mobile device? Did you check with the manufacturer?
Did you check your network settings as the error message suggested?
Does the device connect normally when not using your code? are other programs successful at using it?
If you did the above then post the relevant code so we can see what you are doing.
There are many ways to skin this cat, using events and WaitForMultipleObjects etc. Either way it is always a good idea to use thread synchorization to avoid deadlocks, even if it is DIY.
Then look at TextOut, DrawText, ExtTextOut, TabbedTextOut etc.
mov ah, 09h
depends on what you want to do and what you want to output your data to.
Yes it is lacking. Using "check screensaver running" I was able to find that I just need to use the SystemParametersInfo function and specify the SPI_GETSCREENSAVERRUNNING parameter.
Thanks for the tip.
Now it is time to go to bed and recharge the brain.
See my article
unicode / non-unicode conflict. use the the neutral _tcsspn version or the unicode wcsspn version. Or better yet, use the function suggested by SoMad.
The Control Panel has a setting (Power Options - System Settings) where one can choose what the Sleep button does. I can change it to 'Do nothing' and the Sleep button becomes disabled.
It does not require a reboot to do it this way, so it must be either a registry setting or a power management function (see http://msdn.microsoft.com/en-us/library/windows/desktop/aa373163(v=vs.85).aspx) that is used. Not sure which one.
I followed your link and was able to disable the Windows key, but I was unable to disable the sleep key via key mapping. The only problem is the windows key functionality is now totally disabled, not quite what I was looking for.
Thanks for the info, I may end up doing it this way. Although I was hoping to be able to disable these keys only when my app is running. Your solution involves editing the registry and rebooting the machine. Not quite what I had in mind.
The problem (as stated earlier) is that the Sleep and Win+L keys have their default actions taken before my hook procedure is called. So my hook procedure can not filter them out and catch them, thus blocking their default actions.
Seen that, tried that, could not get it to work for some reason.
Thanks a bunch, works perfectly :)
What is the code for the GetFileList function?
Tried it, and it works! Thanks
<pre>HRESULT hr = FileDialog2Ptr.CoCreateInstance(CLSID_FileOpenDialog);</pre>
The link you gave talks about IFileDialog, IFileSaveDialog, and IFileOpenDialog. These were new in Vista. The MSDN link I gave above is for IFileDialog2 that is new in Win7. I got the older ones to work just fine, but I want the functionality of IFileDialog2 where I can limit the scope with SetNavigationRoot().
Thanks, works now. Kind of a weird solution though.
Web02 | 2.8.170713.1 | Last Updated 1 Jan 1900
All Rights Reserved.
Terms of Service