 |
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers, Chris Maunder
The Code Project Co-founder Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 4.15/5 |
|
|
|
 |
|
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers, Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
| Sign In·View Thread·PermaLink | 3.84/5 |
|
|
|
 |
|
 |
How would I go about hooking Explorer so that any calls to BitBlt get hooked and my application can use the parameters explorer was trying to pass to do something else with them?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Is there a way to determine if a Drivespec, say "F:" refers to a Volume F: on 'this' computer, or whether it is a 'Mapped' drive elsewhere on the Network.
Regards,
Bram van Kampen
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
 |
|
 |
I'm able to find the handle to taskbar using FindWindow("Shell_TrayWnd", NULL);
But I want to find the handle to the window containing the text "Run...". I want to change it. It should change to different values at different time. So I can't patch Explorer.exe
I wanna change its text dynamically using SetWindowText, change its styles etc. Or create some effects like bounce (by movine the window using some mathematical equation)
I tried EnumChildWindows but that doesn't help me.
Plz tell me a way to get handle the child window that displays "Run..."
I want to change the text, move the position and just play around with it! 
(Just a hobby project)
- S.V.Kaushik
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
The Run window is not a child of Shell_TrayWnd. This is why EnumChildWindows doesn't work for you.
The Run Dialog is an independent dialog whose parent is the desktop. In your case you can get notification that a dialog is appearing by writing a global shell hook using SetWindowsHookEx. Check if the dialog is the Run dialog and then change its title.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
He is reffering to the Run button in the start menu that makes the dialog appear, not the dialog itself.
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
His suggestion still remains, however. You first have to get access to the dialog before you can worry about any captions or controls on it.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
If you mean you have to get the start menu 'dialog'/popup before getting the "Run" button on it then I agree.
Have you tried the Krypton Toolkit? http://www.componentfactory.com/free-windows-forms-controls.php
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
lately when I use STL map as a parameter in a function I have a problem? such as:
void func(const map<struct>& mapUsed) { map<struct>::iterator iterMap = mapUsed.begin() while(iterMap != mapUsed.end()) { } }
The vs2008 report an error and when I use const_iterator to instead random iterator It's ok
And I wanna know If STL use "const" overloading such as operator == ... If not ? How dose STL do?
Thanks a lot! 
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
map<struct> should be more like map<int, int> or something. you're indexing one type of thing to another type of thing. you're not just making a vector of structs. even then, if you are making a map of int->structs, then the data type has to be used. the map must know how large of an allotment of memory it has to block off for each part of the map. hope that made sense...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
This my program
int _tmain(int argc, _TCHAR* argv[]) { int a=0; double b=10; double result = pow(b,a); double r=0; for(int aa=0;aa<30000;aa++) { for(int i=0; i<30000;i++) { for(int j=0; j<30000;j++) { r = pow(b,a); if(r != result) { int error =0; } } } } return 0; } I put a breakpoint on the int error = 0. It got hit when aa=0,i=19383,j= 26848. Could this be a hardware problem or something else? Running VS2008 with latest service packs.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Member 2088 wrote: I put a breakpoint on the int error = 0. It got hit when aa=0,i=19383,j= 26848.
What were the values of r and result at the time of failure?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Member 2088 wrote: When it hit the error line r = -1.#IND000000000000 a and b are correct.
So what were the values? Also I asked what the value of result was.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Is this really the intent of the program, to never change "a" or "b"? because in this case, you'll always get a result of 1. So you'll be going in a double-nested loop for a long time to just get a result of 1...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Member 2088 wrote: double b=10; double result = pow(b,a); double r=0;
What happens if you did:
double b = 10.0; double r = 0.0;
"One man's wage rise is another man's price increase." - Harold Wilson
"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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi, I have a excel file with two columns. Namely Binary Name, Binary Size. I need to read each binary name,size from the excel file and compare that with the Binary name and size in the corresponding installation folder.
Can I have a code snippet for reading the Binary Name, Binary Size from the .xlsx file
Thanks in advance.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
Are you wanting to use Excel Automation, or if you are using MFC, there's CDatabase and CRecordset which can read through an Excel file via ODBC.
"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
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |