Type: Posts; User: VladimirF
Search took 0.16 seconds.
How do you create that dialog? Is it modal or modeless?
You can release all allocated memory in the dialog's destructor, or, if you keep a dialog object around (and still need to release...
Mis-aligned pointers on x86
As I understand it, you only need to use these suffixes if the value may get misinterpreted.
Here, the long long value is assigned to long long variable; works for me without the suffix.
Don't know how your code looks now, but this appears to be wrong:
if (ship >= 50)
ship = num *.40;
The next question is: how do you check the value after that assignment?
As Victor noted, "Some code snippet would also help"
HOW do you assign that value to that variable?
P.S. Here is a short demo - can you see the difference?
long long ll_1 = 5000000000;
If you explain why do you need to hack Odesk.exe and what are you trying to achieve, someone may have a better suggestion on how to do that.
The posted call stack shows no evidence of recursion...
What is a "lot of fixed size array"? How many?
This, of course, is true. But we don't know what OP requirements are.
Also, my suggestion will ONLY work (as laserlight noted) if the value 0 works for missing keys. Luckily, that's what lucky...
std::map<int, DWORD> unitColors;
DWORD color = unitColors;
Is it OK if I will answer?
There is only one loop, and there is no unrolling.
bool b = IsPrime(49999991);
00911047 mov ecx,2
0091104C lea esp,[esp]
Let me take a shot at it myself.
I have eliminated the map and looping, here is the shortest sample I got:
bool IsPrime(std::size_t num)
for (std::size_t i = 2; i < num; i++)
Now somebody has to explain why 64-bit version takes that much longer.
April 29th, 2015, 08:36 AM
Quick question: what is in the IE's address bar at that point? Your file name? (I assume it is, as F5 refreshes it OK)
April 28th, 2015, 03:27 PM
1. As laserlight suggested, your total variable is default-constructed, and it's bookNo filed is empty as it was never initialized.
2. You are forcing your users to enter the same ISBN (very long...
April 27th, 2015, 03:05 PM
April 27th, 2015, 02:10 PM
Unless you explicitly call UpdateWindow()...
April 24th, 2015, 03:24 PM
I think that has been established:
"am getting confused at the switch statements etc."
March 23rd, 2015, 09:21 AM
Where did you learn this "creative" technique?
March 17th, 2015, 11:54 AM
This, unfortunately, will fail if you manage to post two or more messages before your window proc will get to process them.
March 13th, 2015, 12:39 PM
You are welcome. Glad my crystal ball still works :)
March 13th, 2015, 09:28 AM
I respectfully disagree. In fact, I made a short demo yesterday to prove it:
Simple MFC SDI app, modal About dialog creates modeless secondary dialog. If you set the main app window as the parent of...
March 13th, 2015, 09:15 AM
It most certainly is not the same strange :) The stated 24hrs periodicity implies correlation with date.
Agree with everything. As was suggested above, most decent logging libraries include...
March 13th, 2015, 09:04 AM
You got it. Just some minor corrections:
- EnableWindow() is not a posted message, it is processed immediately;
- all messages will be processed by the main window's WindowProc; I use "eat message"...
March 12th, 2015, 04:33 PM
You are welcome, but I'm not too proud of that :)
If your processing involves some kind of a loop, I would move that message pump into that loop; that would make your app responsive.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.