I think there is a bug in BCGAppwizard. In a application created by BCGAppwizard. In CWinApp::InitInstatnce, there ia a line code LoadCustomState(). But I think it is unnecessary because it has been called in LoadState(...).
This is not a bug. If you don't need to implement LoadCustomState, just remove it. In many cases developers are using it to load the application-specific settings.