Go to the FreeLists Home Page Home Signup Help Login
 



Browse shell-coding: This Month's ArchiveMain Archive PageRelated posts • Previous by Date • Next by Date

[shell-coding] Compiling LS modules with DEV-C++

  • From: "Brian Wolven" <Brian.Wolven@xxxxxxxxxxx>
  • To: shell-coding@xxxxxxxxxxxxx
  • Date: Tue, 11 Nov 2003 18:16:42 -0500
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

Other related posts:

  • [shell-coding] Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++
  • [shell-coding] Re: Compiling LS modules with DEV-C++




  • [ Home | Signup | Help | Login | Archives | Lists ]

    All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
    Everything else ©2008 Avenir Technologies, LLC.