If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Yes, that would be it. Since you don't stop after 'i' gets to 0, there won't be any errors in the code if you use an int. I've run into this problem multiple times: When writing a 'for' loop that goes down instead of up, using size_t is generally a bad idea
Hi,
Yes, except that it might give me a warning during compilation, which I'd rather avoid.
And of course the "GetMenuCount() returns "size_t" so there is no workaround for that.
If you use static cast, you may hide some issue. Dangerous.
If you use 'int' instead of 'size_t' you may get warnings.
What I do in a down-loop where i=0 is valid, is add a break condition: