Re: Compiling LS modules with DEV-C++
"Brian Wolven" <[email protected]> Mon, 17 Nov 2003 17:37:01 -0500
| Newsgroups | gmane.comp.windows.shell-shocked.devel |
|---|---|
| Message-ID | <[email protected]> |
ilmcuts wrote: > At 15:57 12.11.2003 -0500, Kevin Schaffer wrote: >> Brian Wolven wrote: >> >>> 198 C:\LiteStep\modules\archive\winplace\winplace.cpp >>> invalid conversion from `void (*)(HWND__*, char*)' to `void >>> >> >> Is that the entire error message? It looks like it's been cut off. > > It's a bug in Dev-C++. There is a workaround however (besides using the > command line): > Go to tools->compiler options->add the following command when calling > compiler > > -fmessage-length=0 > > Then resize the column in the output window. I hope that trick still > works. :p It did. =) I had to "unfix" the code to regenerate that error, but when I looked it now shows the whole thing: 200 C:\LiteStep\modules\archive\winplace\winplace.cpp invalid conversion from `void (*)(HWND__*, char*)' to `void (*)(HWND__*, const CHAR*)' What I'd like to do eventually is combine some of the functions in winplace and winctrl, then toss in a couple of new options. I've gotten winplace to compile successfully now, but I'm stilll having some issues with winctrl. It sets up some sounds to be executed when certain actions occur: if (bUnshadeSoundSet) sndPlaySound(WinUnshadeSound, SND_SYNC); which generates errors like this: [Linker error] undefined reference to `[email protected]' I don't know if this is referencing obsolete windows calls or if I'm just not linking to the right libraries; I just commented out the sound functions for the moment, as they can be dealt with later. I edited all the bang function arguments so that they conform to the prototype, but some string functions are unhappy when that is done, e.g., in this bang: void BangWinMove(HWND hCaller, LPCSTR pszArgs) this line generates errors: else if (strstr(strlwr(pszArgs),"centered")) unless it is changed to this: else if (strstr(strlwr((char *)pszArgs),"centered")) Is there a set of string functions/typedefs that should be used now for safety, consistency, and to conform to the current LS core code? Some of thi s source code is kind of old... Ahhh - one last thing - anyone know how to minimize the size of the DLL's created by dev-c++? Even with full optimization and no debugging they are running 113 kBytes. Thanks! __________________________________________________ Subscription options and archive: http://www.freelists.org/list/shell-coding