On Fri, 29 Nov 2002 01:54:29 +0100 (Romance Standard Time) Vadim Zeitlin <[EMAIL PROTECTED]> wrote:
> Just some quick news: I introduced a new abstraction in the message viewer > code called "view filters". Very nice ! But to make it work on MSVC6, I had to - replace 'class MTextStyle : public wxTextAttr{};' with 'typedef wxTextAttr MTextStyle;' to avoid this kind of error U:\src\M\src\modules\TextViewer.cpp(502) : error C2664: 'InsertText' : cannot convert parameter 2 from 'class wxTextAttr' to 'const class MTextStyle &' Reason: cannot convert from 'class wxTextAttr' to 'const class MTextStyle' No constructor could take the source type, or constructor overload resolution was ambiguous I guess there are other solutions, but this is the first I found... - include MTextStyle.h from ViewFilter.h, instead of the 'class MTextStyle;' statement. One other point is that I think your values for the number of lines to look from the end are a little too small: e.g. the filters have no effect on the trailer in the M-Dev list... I added 10 to both (signature and trailer). -- Xavier Nodet "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, 1759. ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers