[quote name='reaperrar' timestamp='1320538716' post='4880912']
It's been working fine with other projects and now all of the sudden it seems as though it isn't.
...
Why would this be happening?
char* m_pcKeyState;
void Update()
{
GetKeyboardState((PBYTE)m_pcKeyState);
}
Unless m_pcKeyState points to some previously allocated memory, there is no guarantee that anything will work properly. Since
GetKeyboardState expects an array of 256 elements, why not have "char mKeyStates[256]"?
Also, consider dropping the
systems hungarian notation; it doesn't provide any benefits, and hurts readability (any guess as to what m_pcacszfitTemp might be used for?).
[/quote]
Fastcall, wouldn't how he has it throw a segfault anyway? I guess I assumed that he was already allocating space for it