Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
wxScintilla deprecated warnings
stahta01:
--- Quote from: Biplab on June 02, 2007, 06:30:16 pm ---
I hope some of us would submit this patch to wxScintilla maintainer so that the other people need not update it.
Regards,
Biplab
--- End quote ---
The second code listing I posted is from wxScintilla CVS. We are not using the current release of wxScintilla in C::B.
Tim S
Biplab:
--- Quote from: stahta01 on June 02, 2007, 06:34:58 pm ---We are not using the current release of wxScintilla in C::B.
--- End quote ---
Yes, it's not been updated in C::B's repo. :)
MortenMacFly:
--- Quote from: Biplab on June 02, 2007, 06:30:16 pm ---IMHO, wxCHECK_VERSION is the best way to check wx version.
--- End quote ---
Please don't!
Use e.g. wxMinimumVersion<2,6>::eval from prep.h (part of C::B SDK) for this purpose. We have hardly tried to remove those nasty macros from the code so we shouldn't re-introduce them again.
With regards, Morten.
stahta01:
--- Quote from: MortenMacFly on June 02, 2007, 09:23:48 pm ---
--- Quote from: Biplab on June 02, 2007, 06:30:16 pm ---IMHO, wxCHECK_VERSION is the best way to check wx version.
--- End quote ---
Please don't!
Use e.g. wxMinimumVersion<2,6>::eval from prep.h (part of C::B SDK) for this purpose. We have hardly tried to remove those nasty macros from the code so we shouldn't re-introduce them again.
With regards, Morten.
--- End quote ---
Can you give an example use at compile time? Not at runtime?
Note: I think I have found out how to use it (it must be used at compile and runtime it appears to me), but if you can give directions it could help.
--- Code: ---// Example definition
namespace compatibility { typedef TernaryCondTypedef<wxMinimumVersion<2,5>::eval, wxTreeItemIdValue, long int>::eval tree_cookie_t; };
// Example use of definition
compatibility::tree_cookie_t cookie = 0;
--- End code ---
Tim S
rickg22:
--- Quote from: MortenMacFly on June 02, 2007, 09:23:48 pm ---
--- Quote from: Biplab on June 02, 2007, 06:30:16 pm ---IMHO, wxCHECK_VERSION is the best way to check wx version.
--- End quote ---
Please don't!
Use e.g. wxMinimumVersion<2,6>::eval from prep.h (part of C::B SDK) for this purpose. We have hardly tried to remove those nasty macros from the code so we shouldn't re-introduce them again.
With regards, Morten.
--- End quote ---
wxMiniwhat? O.o How does it work? Man, I didn't even know it existed.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version