Search found 72 matches

by Ksawery
Tue Aug 20, 2019 6:20 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 611

Re: Migrating to Linux (Mint)

It is possible that the string contained a random special character, due to foreign characters being pushed and pulled from GitHub. So that might have been the real issue - which I accidentally fixed by correcting typos.

Thank you for your help.

Ksawery
by Ksawery
Tue Aug 20, 2019 1:57 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 611

Re: Migrating to Linux (Mint)

I replaced some instances of wxT with _T, and it seems to work ok now. I still have other unexpected bugs in the application, but at least it compiles successfully now.

Many thanks,
Ksawery
by Ksawery
Tue Aug 20, 2019 12:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 611

Re: Migrating to Linux (Mint)

Thank you for taking the time to look into my problem, that solved that issue! Unfortunately i'm still seeing errors related to the wxT macro: ||=== Build: Debug in PomiarWiazki_wxWidgets_Linux (compiler: GNU GCC Compiler) ===| /home/ksawery/repos/PomiarWiazki_wxWidgets_Linux/PomiarWiazki_wxWidgets_...
by Ksawery
Tue Aug 20, 2019 11:00 am
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 611

Re: Migrating to Linux (Mint)

Thank you for your reply. Here is the event table: wxBEGIN_EVENT_TABLE(cDiagnostics, wxFrame) EVT_BUTTON(10003, OnButtonClickedReset) EVT_TIMER(10005, OnDiagnosticsResetTimer) EVT_CLOSE(OnClose) wxEND_EVENT_TABLE() And here are the event handlers: void cDiagnostics::OnButtonClickedReset(wxCommandEve...
by Ksawery
Tue Aug 20, 2019 10:21 am
Forum: Compiler / Linking / IDE Related
Topic: Migrating to Linux (Mint)
Replies: 8
Views: 611

Migrating to Linux (Mint)

Hello, I have successfully built and debugged my wxWidgets GUI under Windows 10, Visual Studio 2019. I'm now attempting to migrate my project to Linux Mint. Unfortunately I'm seeing complication errors. Here are the steps that I have taken so far: Installed the latest version of wxWidgets (3.1.2) us...
by Ksawery
Thu Aug 08, 2019 9:06 am
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 393

Re: Set Icon

Ok, I got it to work, the problem was caused by the two non-sense symbols at the beginning of the resource file: ��

Regards,
Ksawery
by Ksawery
Thu Aug 08, 2019 8:41 am
Forum: Compiler / Linking / IDE Related
Topic: error rc2135, problem with VC resource file
Replies: 4
Views: 2371

Re: error rc2135, problem with VC resource file

I have encountered the same problem, how did you re-write the .rc file?
by Ksawery
Wed Aug 07, 2019 12:30 pm
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 227

Re: Exception thrown when closing window

I added the following lines of code to disable all timers when closing the window, and the issue seems to have disappeared: //Stop any running timers if (mbWriteTimer->IsRunning()) mbWriteTimer->Stop(); if (mbWriteErrorTimer->IsRunning()) mbWriteErrorTimer->Stop(); I don't know whether that is the c...
by Ksawery
Wed Aug 07, 2019 10:57 am
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 227

Re: Exception thrown when closing window

Here is the call stack: > PomiarWiazki_wxWidgets.exe!wxEvtHandler::SafelyProcessEvent(wxEvent & event) Line 1617 C++ PomiarWiazki_wxWidgets.exe!wxTimerImpl::SendEvent() Line 52 C++ PomiarWiazki_wxWidgets.exe!wxTimer::Notify() Line 107 C++ PomiarWiazki_wxWidgets.exe!wxTimerImpl::Notify() Line 47 C++ ...
by Ksawery
Wed Aug 07, 2019 10:28 am
Forum: C++ Development
Topic: Exception thrown when closing window
Replies: 4
Views: 227

Exception thrown when closing window

I am getting a read access violation error when attempting to close my main window, right after pressing a button (see screenshot attached). Is this expected behaviour, and can it be overcome? Or should I simply place a control statement in my OnClose callback, to stop the window from being closed i...
by Ksawery
Wed Aug 07, 2019 9:01 am
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 393

Re: Set Icon

Thanks, that solved the include error, however I now get the following errors: Severity Code Description File Line Error RC2135 file not found: ICON C:\Users\kwret\Documents\Visual Studio 2019\Projects\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets.rc 6 Error RC2135 file not fo...
by Ksawery
Tue Aug 06, 2019 1:10 pm
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 393

Re: Set Icon

Thank you, I changed the code according to your suggestion, but I still get the following include error: Severity Code Description File Line Error RC1015 cannot open include file 'wx/msw/wx.rc'. C:\Users\kwret\Documents\Visual Studio 2019\Projects\PomiarWiazki_wxWidgets\PomiarWiazki_wxWidgets\Pomiar...
by Ksawery
Mon Aug 05, 2019 1:21 pm
Forum: C++ Development
Topic: Set Icon
Replies: 6
Views: 393

Set Icon

Hello, I'd like to setup an icon for my wxWidgets application, so that it appears both on the .exe file, as well as in the taskbar and top-left corner of each application window. What would be the best way to achieve this? I've searched for a solution for a while now, and I came across posts referri...
by Ksawery
Mon Jul 29, 2019 3:47 pm
Forum: C++ Development
Topic: wxButton - disable not working
Replies: 2
Views: 162

Re: wxButton - disable not working

Hi, thanks for taking a look at my code. You are right, I totally forgot about that. I now moved the GUI code outside the thread and I think it's working correctly now.

Many thanks,
Ksawery
by Ksawery
Mon Jul 29, 2019 2:38 pm
Forum: C++ Development
Topic: wxButton - disable not working
Replies: 2
Views: 162

wxButton - disable not working

Hello, I currently have two buttons in my main window, which become temporarily disabled (for 2 seconds) when pressed. However sometimes (but not always) when I press the buttons, they first "flash" (which I assume is the "button pressed" animation), and don't become disabled . Is this a bug? I'm no...