// main frame
bool wxBBIApp::OnInit( )
{
+ printf("EED wxBBIApp::OnInit 1\n");
//Borrame
//FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED wxBBIApp::OnInit\n"); fclose(ff);
setlocale(LC_NUMERIC, "C");
#endif
+ printf("EED wxBBIApp::OnInit 2\n");
if (cmd.quiet) bbtk::MessageManager::SetMessageLevel("max",0);
if (cmd.debug) bbtk::MessageManager::SetMessageLevel("all",9);
//printf ("EED bbi wxBBIApp::OnInit .....................\n");
//cmd.input_file.push_back("/home/davila/Borrame/testwt.bbs");
+ printf("EED wxBBIApp::OnInit 2.1\n");
bbtk::WxGUIConsole *I = new bbtk::WxGUIConsole(0,_T("bbi"),wxSize(800,600));
+ printf("EED wxBBIApp::OnInit 2.2\n");
SetTopWindow(I);
+ printf("EED wxBBIApp::OnInit 2.3\n");
if (cmd.console) I->Show(true);
+printf("EED wxBBIApp::OnInit 3\n");
I->SetInputs(cmd.param_map);
std::vector<std::string>::const_iterator i;
bool error = false;
+printf("EED wxBBIApp::OnInit 4\n");
+
for (i=cmd.input_file.begin(); i!=cmd.input_file.end(); ++i)
{
error = ! I->InterpretFile(*i);
I->GetInterpreter()->GetExecuter()->GetFactory()->PrintHelpDescriptor("workspace",package,false);
}
+printf("EED wxBBIApp::OnInit 5\n");
+
/*
std::cout << "soe="<<show_on_error <<std::endl;
std::cout << "con="<<console<<std::endl;
*/
if (!(show_on_error || cmd.console || bbtk::Wx::IsSomeWindowAlive() ))
{
+printf("EED wxBBIApp::OnInit 6\n");
I->Close();
// std::cout << "I->Close"<<std::endl;
}
}
// std::cout << "EO OnInit"<<std::endl;
+printf("EED wxBBIApp::OnInit 7\n");
return true;
// you need to use the linker option "/subsystem:console" and the following code:
int main(int argc, char* argv[])
{
-
+printf("EED main cccc\n ");
//Borrame
//FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED main C\n"); fclose(ff);
// EED 2018-07-16
char buffer[1500];
wcstombs(buffer , ::GetCommandLine() , 1500 );
+printf("EED main cc%scc\n ",buffer);
return WinMain(::GetModuleHandle(NULL), NULL, buffer , SW_SHOWNORMAL);
// return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), SW_SHOWNORMAL);
}
int main(int argc, char* argv[])
{
+printf("EED bbi main BBBB\n");
//Borrame
//FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED main A\n"); fclose(ff);
int main(int argc, char* argv[])
{
+printf("EED bbi main AA\n");
//EED
// if (argc>2)
// {