Search found 99 matches

by Tony0945
Sun Jul 31, 2016 3:38 am
Forum: Compiler / Linking / IDE Related
Topic: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
Replies: 5
Views: 1436

Problem interfacing with external C code - wxwidgets 3.0.2 unicode build

#include <wx/wx.h> // #include "globals.h" extern "C" { char * Null_C_String; int set_tuner(char *channel, int adapter, int frontend, int demux, char *confname); }; int TuneChannel(wxString * channel, int adapter, int frontend,int demux, wxString config_filename) { if (config_filename.IsEmpty()) re...
by Tony0945
Wed Apr 20, 2016 11:36 pm
Forum: wxDev-C++
Topic: wxDev-Cpp 7.4.2 - blank main window (?)
Replies: 3
Views: 2549

Re: wxDev-Cpp 7.4.2 - blank main window (?)

I'm not familiar with Win 10, but it's still installing on XP and Wine 1.6.2 on Linux. If you're interested, I'll try it on Wine 1.8.2 that I just installed two days ago. However, doublemax is correct as always. There is no percentage in starting to learn abandonware. I've tried Code:blocks but I gu...
by Tony0945
Tue Mar 15, 2016 3:03 pm
Forum: C++ Development
Topic: wxFile Read doesn't block [solved]
Replies: 5
Views: 975

Re: wxFile Read doesn't block

Thanks to all. What I meant by "safe port number" was a port number not used by another program. I implemented the program with sockets, the daemon listening for connections on localhost (and blocking! Whew!), opening the connection, reading a single character, then closing the connection. There are...
by Tony0945
Tue Mar 08, 2016 5:11 pm
Forum: C++ Development
Topic: wxFile Read doesn't block [solved]
Replies: 5
Views: 975

wxFile Read doesn't block [solved]

On windows, I'm trying to simulate a Linux named pipe. But instead of blocking on the read from an empty file, the application is saturating one core of the CPU furiously reading NULL from the empty file (drive light lights up brightly too). I determined this with gdb. My research has not revealed h...
by Tony0945
Sat Jan 30, 2016 5:20 pm
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2736

Re: gtk scroll assertion dialog box on app open

FOUND THE BUG! In /include/wx/scrollwin.h near line 425, the present code is: #ifdef __WXOSX__ bool retval = T::Create(parent, winid, pos, size, style, name); if ( retval && (style & wxALWAYS_SHOW_SB) ) ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS); return retval; #else if ( style & wxALWAYS_SH...
by Tony0945
Tue Jan 26, 2016 1:22 am
Forum: wxDev-C++
Topic: Not all files are saved after close/re-open project
Replies: 6
Views: 3096

Re: Not all files are saved after close/re-open project

I found that the unit references i.e. [Unit 21] were being made when files were added to the project, but the UnitCount under [Project] was not.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.
by Tony0945
Tue Jan 26, 2016 12:02 am
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2736

Re: gtk scroll assertion dialog box on app open

wxCHECK_RET is defined here: http://docs.wxwidgets.org/trunk/group__group__funcmacro__debug.html#ga0cf2ca7d7ff0107197e51e6b434fd0bd It says that the check is made and returns if the condition is false, so rather than just comment it out, you should replace it with something like: if (!scrolled) retu...
by Tony0945
Mon Jan 25, 2016 11:38 pm
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2736

Re: gtk scroll assertion dialog box on app open

This is the code that triggers the ASSERT: void wxScrollHelper::DoShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert) { GtkScrolledWindow * const scrolled = GTK_SCROLLED_WINDOW(m_win->m_widget); wxCHECK_RET( scrolled, "window must be created" ); gtk_scrolled_window_set_policy(scro...
by Tony0945
Mon Jan 25, 2016 4:29 pm
Forum: wxDev-C++
Topic: Not all files are saved after close/re-open project
Replies: 6
Views: 3096

Re: Not all files are saved after close/re-open project

Same problem with 7.4.2.569
by Tony0945
Wed Jan 20, 2016 5:42 pm
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 785

Re: Overriding wxGrid scroll actions

That one works! Thanks a million, doublemax!
by Tony0945
Wed Jan 20, 2016 4:19 pm
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 785

Re: Overriding wxGrid scroll actions

Changed wxScrollEvent to wxScrollWinEvent and got the same message. Maybe there isn't any way to do this. Edit: The Bind() call won't compile, but I did manage to add EVT_SCROLLWIN(ProgramGuideDialog::OnGridScroll) to the event table. Unfortunately, the event handler isn't called. I extended the 3x5...
by Tony0945
Wed Jan 20, 2016 3:14 am
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 785

Overriding wxGrid scroll actions [Solved]

I have a wxGrid that is a 3 x 5 window into a much larger table, most of which probably would not be accessed in any given program incarnation. I want to override the scrollbar events so as to generate the cells that are coming into view. In the dialog constructor, I have tried this: ProgramGrid->Se...
by Tony0945
Thu Dec 24, 2015 2:12 am
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2813

Re: wxStandardPaths and Console Application

The -mwindows flag was indeed the problem. Thank you very much.
I guess virtually no one uses wxDev-C++ in 2015 here on the forums. You are better off asking on their forums.
??? This is the wxDev-C++ forum! It's where I've always gone.

I suppose it's time to move on to wxSmith
by Tony0945
Wed Dec 23, 2015 5:39 pm
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2813

Re: wxStandardPaths and Console Application

After a few more hours of googling, I found that the linker message goes away if I include #include <wx/init.h> and in main() add wxInitializer ini; However, now when I run, there is no console window and if I run the program by "Start Button->Run->cmd" and navigate to the Output directory and execu...
by Tony0945
Tue Dec 22, 2015 11:04 pm
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2813

wxStandardPaths and Console Application [SOLVED]

I'm writing a utility program that converts an XML file to a database. I wish to use the wxwidgets wxXML classes and more. The program does not have a GUI, so I created it as a console application. Because it is to be cross-platform, I used wxStandardPaths to generate the full path names. At run-tim...