Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
while debugging I have got the path of the exe file in exePath variable,but i'm facing the problem to display it on the window.

What I have tried:

void Align::OnOpen(wxCommandEvent& event)
{
	wxStandardPaths &path = wxStandardPaths::Get();
	path.UseAppInfo(wxStandardPaths::AppInfo_None);
	wxString exePath = path.GetExecutablePath();
	exePath->Show(true);
}
Posted
Updated 8-Dec-17 2:01am
v2
Comments
Leo Chapiro 8-Dec-17 7:07am    
Have you tried to use the wxWindow::SetLabel function?

1 solution

your exePath is a string object, which you must set in your window to some object like a label or a text field.
 
Share this answer
 
Comments
SureshMunna 8-Dec-17 8:12am    
tq karstenK

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900