I'll add your patch to my next build. Thanks for pointing this.
That's how I did it, too btw...
Nope, full-stop that's not fully how I did it. Since wx2.9.1 you can/should use this signature for he callback in
newfromtemplatedlg.cpp safely:
int wxCALLBACK SortTemplates(wxIntPtr item1, wxIntPtr item2, wxIntPtr /*sortData*/)...since wxIntPtr is what's expected and what's working. There is no need to use an own version.
Oh dear... probably I should really start to clean things out and commit...
BTW: I believe
cbIntPtr was only relevant for wx2.9.0. Staring with wx2.9.1 and above we should use
wxIntPtr IMHO.