Compiling LS modules with DEV-C++
"Brian Wolven" <[email protected]> Tue, 11 Nov 2003 18:16:42 -0500
| Newsgroups | gmane.comp.windows.shell-shocked.devel |
|---|---|
| Message-ID | <[email protected]> |
I decided to mess around with dev-c++ (not having any MSVC tools or the
like) and try compiling an LS module. I can get everything to compile OK
with the exception of the AddBangCommand statements, which give errors like
this:
198 C:\LiteStep\modules\archive\winplace\winplace.cpp
invalid conversion from `void (*)(HWND__*, char*)' to `void
Do I need to set some compiler options in order to make the mingw g++
compiler accept these statements, or is there some other trick to get this
to work with dev-c++? If I comment out the addbangcommand() statements all
goes well - I have a copy of lsapi.h and added lsapi.lib to the path for the
linker, so that all seems to be fine.
This seems to be the standard way to do things:
void WinPlaceBang(HWND caller, char* arg)
{
WinPlace(arg, false);
}
and in initModuleEx:
AddBangCommand("!winplace", WinPlaceBang);
Please help the novice...
__________________________________________________
Subscription options and archive:
http://www.freelists.org/list/shell-coding