Quote:Original post by TheTroll &dV is just an int that is the address of dV.
I don't mean to be pedantic, but that's not the case on most 64-bit platforms. I'm sure you know this and that you're just being general here, but I just want to prevent any noobies from getting too comfortable with things that can and will change in the (near) future. Otherwise they rely on them...and you know the rest.
i tried this code snippet all in my code, even after the call to WinMain and it fails, the rest of the code is working as expected, i will try to compile it on a second machine and check if i can reproduce it.
First off, it's pretty much useless to type out code when you're asking for help. Always copy and paste.
Secondly, a minimal, but complete, code sample that demonstrates your problem has three characteristics. 1) It should contain everything necessary to reproduce your problem. 2) You can't remove anything from the code sample and still have it demonstrate your problem. 3) It should actually demonstrate your problem.
A code sample that fails to compile will fail all three points unless you're asking about a compiler error.
If you can't think of a way to generate such a code sample from scratch, one approach is to make a copy of your project and start deleting things until the code no longer shows the problem.