Hello,
I would like to use the BlockInput function but when i try to include winable.h with dev-c++ it dont find it!
please, where can i find it ??
Sorry for my english i'm french ...
Thank you very much
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-07-07
winable.h does not exist in this distribution.
The headers provided with the MinGW compiler are not the official MS SDK headers, as these are not distributable under a GPL license. Consequently there may me omissions for some of the more obscure APIs.
Having the header is not your problem, if it were you could simply declare:
extern BOOL BlockInput( BOOL fBlockIt ) ;
in your own code. However if you try this you will find that the code fails at the linker stage.
The more serious problem is the omission of this function from the libuser32.a import library (equivilent to MS's user32.lib).
In theory I guess you could obtain the source for libuser32.a from www.mingw.org and add the stub, since its implementation actually exists in user32.dll, which is part of the OS.
According to http://sourceforge.net/project/shownotes.php?release_id=158847 it was added last year. But I am not sure is this project is the one incorporated into MinGW. If it is, you may have more luck when Dev-C++ is finally released with a newer version of MinGW - its been pending for a while. Alternatively you could try updating the distribution yourself from www.mingw.org.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I would like to use the BlockInput function but when i try to include winable.h with dev-c++ it dont find it!
please, where can i find it ??
Sorry for my english i'm french ...
Thank you very much
winable.h does not exist in this distribution.
The headers provided with the MinGW compiler are not the official MS SDK headers, as these are not distributable under a GPL license. Consequently there may me omissions for some of the more obscure APIs.
Having the header is not your problem, if it were you could simply declare:
extern BOOL BlockInput( BOOL fBlockIt ) ;
in your own code. However if you try this you will find that the code fails at the linker stage.
The more serious problem is the omission of this function from the libuser32.a import library (equivilent to MS's user32.lib).
In theory I guess you could obtain the source for libuser32.a from www.mingw.org and add the stub, since its implementation actually exists in user32.dll, which is part of the OS.
According to http://sourceforge.net/project/shownotes.php?release_id=158847 it was added last year. But I am not sure is this project is the one incorporated into MinGW. If it is, you may have more luck when Dev-C++ is finally released with a newer version of MinGW - its been pending for a while. Alternatively you could try updating the distribution yourself from www.mingw.org.
Clifford
Try updating your Win API files. (You can find the link from the MinGW site.)
A search on updated files here finds "BlockInput" in winable.h and in libuser32.a .
-- Jim.
Download and install the current Windows API, file w32api-2.5.tar.gz
This is the current Widows API library.
http://www.mingw.org/download.shtml