how can i send it to another file ( i mean another function in another file ( class declaration file ( e.g. fun.cpp) )?!)
will a Global variable make it in this situation? if i'm planning to use a Global variable, where should i declare it that both dialog and fun.cpp (other files)
can access it ! ? or is there anyway that it directly sends the value to another function to be processed?
---------------------------------
and why cant i execute a dialog in a file rather than Myframe.cpp for example , i mean
i made a dialog to get the data from user!
when i tried to call this dialog in my simpletron.cpp file( this belongs to class simpletron, that is in pure C++, want to replace all of couts and cins with their Wxwidgets counter parts) ! it generated error! but when i used it
in my _2main.cpp like this "
Code: Select all
void _2Frame::OnButton2Click(wxCommandEvent& event)//invokes Execution pane
{
Execution dialog(this);
dialog.ShowModal();
}
this works fine. i included the dialog header file in both simpletron.cpp and _2main.cpp, but it doesnt work in simpletron.cpp ! what should i do ?
it gives me the error :error: no matching function for call to `Execution::Execution(SimpleTron* const)'|
thanks in advance