I have two questions. One, when I created a program using DirectDraw, I couldn't hide the mouse. Any suggestions?
Secondly, is there a simple function that returns the X/Y location of the mouse? Preferable in POINT form? MBDYProductions - "Freedome in gaming shouldn't be an extra"
You could predefine all the functions from the headers in a file compiled before, and then include both the files.
e.g.
(MainFile.cpp)
void SomeFunc(int SomeParam1, float SomeParam2);
etc
#include "SomeFile.cpp"
(SomeFile.cpp)
void SomeFunc(int SomeParam1, float SomeParam2)
{...
I have tried and tried to compile a program using the timeGetTime() functions, but mmsystem compiles with 43 errors and 1 warning. I have defined WIN32_LEAN_AND_MEAN and included winmm.lib and windiws.h but alas, no luck.
Any help?
If your using a character (eg -) in the filename, some programs delete these 'unknown' characters. If this happens, the "cpp" might be used as the filename. Hence not compiling.
A solution? Try renaming it from the stupid (no offense) - and create something desciptive.
Use the WinExec() function. It takes only two parameters. The first one of the filename and directory (if not in the same folder) and the second is the window style. I use something like SM_SHOW or WM_SHOW. I can't remember which one...
Have you tried the Performance Counter functions? I was told that had a resolution of 3ms. Or course, it's hardware
(well, the performance counter is) so you might not have it.
So... it's working now?
If not, are you sure the editer is the same version? If you installed a patch or any other addon to one of them it might make version confliction. That happened to me...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.