stupid VC++ 6 compiler
i have my program working just fine and dandy then all of the sudden i add one line of code
SCROLLBARINFO sbi;
oh thank you for the undeclared identifier error
i look at the documentation for it
it requires winuser.h, include windows.h
of course i have been including windows.h since the beginning
i physically look in winuser.h and sure enough there is the declaration for SCROLLBARINFO
what the hell is going on
Including windows.h doesn''t mean you included winuser.h
try adding this line in
#include
try adding this line in
#include
Joseph FernaldSoftware EngineerRed Storm Entertainment.------------------------The opinions expressed are that of the person postingand not that of Red Storm Entertainment.
could you possibly write out some of source code?
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
U have to type ampersand lt and ampersand gt (no space, plus ampersand sign), to get less than and greater than signs to work, Eva. So, what u probably meant was:
#include <winuser.h>
#include <winuser.h>
-------------------------------NeXe: NeHe DirectX-style. Follow the orange rabbit.
Sean: exactly. I forgot about the greater than less than deal on the board. Oopsie.
Joseph FernaldSoftware EngineerRed Storm Entertainment.------------------------The opinions expressed are that of the person postingand not that of Red Storm Entertainment.
Happens to even the best of us, eh Eva?
-------------------------------NeXe: NeHe DirectX-style. Follow the orange rabbit.
May 30, 2000 11:04 PM
Think that''s bad? I just added a single word variable to my class, recompiled
it, and my whole program crashed. For some reason, it didn''t like it. I guess
the compiler probably tried to re-align my class and messed up my other variables.
Now I always try to keep my classes dword align, otherwise I have no idea what
MSVC is going to do with it.
it, and my whole program crashed. For some reason, it didn''t like it. I guess
the compiler probably tried to re-align my class and messed up my other variables.
Now I always try to keep my classes dword align, otherwise I have no idea what
MSVC is going to do with it.
May 30, 2000 11:19 PM
You want a real MSVC++ horror story? The other day, it decided to not allow inheritence in my program. I had to create a completely new project to get it working correctly.
I hate the times when it fails to make the browse file properly, and I have to add a comment or move some code around just so it has something slightly different to compile, in order to work.
And the wonderful ''Internal Compiler Error'' is fun too.
And the wonderful ''Internal Compiler Error'' is fun too.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement