Hello everyone, Please, I need help. I have a program that produces an output file. I have an association of the program set up in Inno Setup and the association works. When you double-click the file icon, the program starts, but the program icons do not work - it will list the error. I know it's because I have icons in the program and the output file does not find a way to them. Into OnNewFile(wx..), OnOpenFile(wx.., OnSaveFile(wx..), I tried to give the following code:
Code: Select all
wxStandardPaths::Get().GetResourcesDir() + "/icons";
The icons in the program are in the MyFrame constructor, using the following statement:
Code: Select all
wxImage::AddHandler(new wxPNGHandler);
wxImage newDB(wxT("icons/document-new-5.png"), wxBITMAP_TYPE_PNG);
...
I have the png icons in the folder: D: \ Program Files (x86) \ MyProgram \ icons.
The problem is that when I install the program I do not know where the user installs it and also where it stores the output file. Does anyone have any idea?