If you use this define" #define XInputGetState XInputGetState_;" then code like this: expands to …
Rasmus —
Here's the definition of the function I have nailed the problem down to the #define. The program …
Rasmus —
I've just started following the series. I've had no real problems, and I've now run into a massive…
Yes, compiler replaces it with whatever machine instructions it needs to implement the behavior. I…
vexe —
Thanks for the reply. I'm using va_xxx in my StringFormat replacement of sprintf which I mostly us…
This is one of the things you really should not be replacing. Unless you are writing your own comp…
Simply speaking entropy is how to measure if how random is system. High entropy means that system …
vexe —
Gettings! I wanted to share with the community my sprintf replacement. It is not by all means a pe…
vexe —
Thanks for the reply! Could you please explain what you mean by the word 'entropy'? I hear you men…
vexe —
Greetings! I'm trying to replace cstdargs and I got a working implementation after researching onl…
Yeah, it's a completely shitshow now. I tried to use the downloadable help, but it's totally brok…
The reason we don't use a global random number generator is not because we are worried about live …
Edit: Spelling I really think my brain just lapsed that badly, that when I saw my code (ending in …
No problem. That happens to everybody who writes code. Just read the error messages more carefully…
Thank you very much! Silly how many times I looked over that, just to (as usual) look over a misty…
Your code doesn't use OutputDebugString function. It uses OutputDebugStr function. So error messag…
As long as global random table is constant (we don't change it) and we don't keep pointers to it (…
vexe —
That's a good point indeed. But even if that's the case, we could certainly store the actual rando…
Hello all, Thank you in advance for all help. I am new to the series, following along using CodeBl…
I believe using global variables messes with the memory model necessary to do live code reloading …
vexe —
Greetings! I'm not sure if someone asked Casey about this or whether or not he talked about it but…
I'm not sure anything quite like this has been talked about yet on HMH, but I'm interested in hear…
Kareem —
Thanks a lot for that. Despite the fact that I am a daily follower of handmade hero, I found your …
vexe —
Oh snap! Eye of the mmozeiko :D So it's basically reducing the accumulating errors due to addition…
Yes, that's correct. If you have only these two values, then you'll get 32767 in both cases. But i…
vexe —
I know about the ranges. But what I'm saying is, 20000.0f + 20000.0f in float is 40000.0f right? N…
Adding values in 16-bit type won't work because you'll overflow. Try adding two samples: 20000 and…
vexe —
Couple of things I didn't quite get: 0- Why is Casey calling this variable 'WavePeriod' when it's …
vexe —
Greetings! Catching up on the series, I found my wave/physics knowledge a bit rusty to say the lea…
Yeah, DirectSound is deprecated. You're "supposed" to use XAudio2 for which it has docs :) For Dir…