You did not state your compiling error, so I am not sure how you have modified the constructor of the derived class. Let me guess the compiling error is something like this:
error: expected class-name before '{' token|
or
In constructor 'NewFrame::NewFrame(BaseChildFrame*, wxWindowID, const wxPoint&, const wxSize&)':
error: no matching function for call to 'BaseChildFrame::BaseChildFrame()'
If the first situation exists, then you should include the header file of the class BaseChildFrame in NewFrame.h;
If the second does, you should correct NewFrame.cpp as below:
NewFrame::NewFrame(wxWindow*, wxWindowID, const wxPoint&, const wxSize&)
: BaseChildFrame(parent)
Moreover, the call to "Create()" in this constructor, which is generated by wxSmith, should be removed (e.g. add //), otherwise application does not quit on closing this frame.
Then you can call this NewFrame like this:
NewFrame* Frame = new NewFrame(0);
Frame->Show();
or in an existing window:
NewFrame* Frame = new NewFrame(this);
Frame->Show();
My test case is OK through these modifications, on Windows 7 with CodeBlocks svn 10035.
The cause of the second situation is that the base class does not have a default constructor, and that it does not get initialised explicitly.