Hello all, I'm facing a strange issue with a struct array problem,
I have wrote a simple struct that contains a UINT and a callback function pointer like so:
now later, few lines of code down, when I process the struct above, it sees only the first UINT message, the rest of the struct all are zeros (0x0000)...
(the struct is static and is an array of 3 entries so far.)
hope I was clear, hope anyone can help me guys,
greets!
Have you tried stepping through the code with a debugger and observing the values in your structures as you go through? You should be able to isolate a point where it has a value you don't expect.
lambdas require the Common Runtime startup function. I have overwritten it to "clean" my executable a bit.. but to use lambdas I must have it.
so now using the "good" old wWinMain() all works fine