Answer the question
In order to leave comments, you need to log in
Visual Studio debugger glitch in 64 bits?
void func(RECT rect)
{
// здесь уже другие координаты
}
RECT r2;
r2.bottom = 0;
r2.right = 0;
r2.left = 0;
r2.top = 0;
func(r2);
Answer the question
In order to leave comments, you need to log in
there is either a debugger or a compiler buggy. Try like this:
void func(RECT& rect)
{
RECT r = rect; // и дальше работаем с r
a = r.right;
}
show assembly code. It seems that this function is not called at all in the optimized code, since there is only initialization of a temporary variable in the function body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question