wxT("Please select the folder containing the bbtkPackage file you want to use. Usually it is where you built your project."),
crea::std2wx(this->project->GetBuildPath())
);
+ std::cout << crea::wx2std(file) << std::endl;
+ std::cout.flush();
- if(file.IsEmpty() || !this->project->Connect(result, crea::wx2std(file)))
+ if(crea::wx2std(file) == "" || !this->project->Connect(result, crea::wx2std(file)))
{
- wxMessageBox(crea::std2wx(result->c_str()), wxT("Plug Packages - Error!"));
+ if (crea::wx2std(file) == "")
+ result = new std::string("Folder not specified.");
+ wxMessageBox(crea::std2wx(result->c_str()), wxT("Plug BBTK Packages - Error!"), wxICON_ERROR);
return;
}
#ifdef _WIN32