#17462: solution to "deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX"
--------------------------------------------+--------------------
Reporter: pmgrace30 | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: wxMSW | Version: 3.1.0
Keywords: deprecated wxFont Dialogblocks | Blocked By:
Blocking: | Patch: 0
--------------------------------------------+--------------------
I have just started using wxWidgets 3.1.0 and when I compiled my code
using Visual Studio I was got a lot of warnings like this:
"warning C4996: 'wxFont::wxFont': deprecated: use
wxFONT{FAMILY,STYLE,WEIGHT}_XXX constants ie: wxFONTFAMILY_SWISS,
wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD".
The code that caused the warning was generated by DialogBlocks and it took
me a few hours to figure out what the warnings were referring to. I now
realise that my code was using old enum constant names. Since the code
was generated by DialogBlocks it was just a matter of asking DialogBlocks
to regenerate the code in the hope that the recent versions of
DialogBlocks produce the correct code. It worked.
I post this for those that might need it and hopefully find it.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/17462>