-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mmeapi.h missing? #4
Comments
Hmm, strange. This is with the regular/latest Windows SDK installed as part of Visual Studio? I wonder if Microsoft is finally rearranging their Win32 headers after 30 years... If you get rid of the WIN32_LEAN_AND_MEAN define on line 522 and then remove both of the line 529 and 530 includes, does that get it to compile? Regarding the window not showing up, is this with code changes between those runs? Or can you literally run the same program more than once and sometimes get the window to appear but other times it won't? And what did you mean by "it does not run"? Is there some error in the IDE? Or do you mean the window simply never appears, even for a quick flicker? |
I have now tried to comment these lines out and now i can see some warning in the console. Regarding the window: i now have changed in the settings the compiler to c++14 and now everything works fine with the line removal. |
thats the code i was making, just a regular raycaster
|
Interesting, with the latest Visual Studio 2022 with the project set to use the latest version of C++, I still can't reproduce this problem. (I don't have VS Code installed. I wonder if they use a separate toolchain...) It looks like you've got a good start on that raycaster. If you add UseDoubleBuffering and Present, the little flicker that happens every once in a while will go away. Try this: void run()
{
UseDoubleBuffering(true);
while (true)
{
Wait(5);
movePlayer();
Clear(LightGray);
drawMap2D();
drawPlayer();
drawRays3D();
Present();
}
} |
In the headerfile on line 529, there is the line "#include <mmeapi.h>", but vs code tells me "mmeapi.h: No such file or directory".
sometimes the compiler runs and shows me the window, sometimes the window closes instantly after running and sometimes it does not run. I use the c++ build tools from 2022 to compile it.
The text was updated successfully, but these errors were encountered: