Search found 24 matches

by ebyrob
Wed Nov 21, 2018 3:24 am
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 432

Re: Missing wxchar.h include in crashrpt.cpp?

The latest master from git isn't building right now, something with can't find zlib. Not sure could try again tomorrow. The problem seems likely due to this line in wxprec.h : #ifdef WX_PRECOMP without that including wxprec.h does pretty much nothing, so wxchar.h would not be included at all which w...
by ebyrob
Tue Nov 20, 2018 7:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 432

Re: Missing wxchar.h include in crashrpt.cpp?

> Which command line did you use?
NT batch, executing MSW makefile.vc using NMAKE.

> Does it also happen if you use the project files to build?
I don't think so.

> Can you try again with the latest version from GIT?
I will tonight. (maybe late)
by ebyrob
Tue Nov 20, 2018 7:02 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 432

Re: Missing wxchar.h include in crashrpt.cpp?

@PB - sorry it was the 7 in 7zip.

So wxWidgets 3.1.1, NOT 3.1.1.7(zip)
by ebyrob
Mon Nov 19, 2018 10:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Missing wxchar.h include in crashrpt.cpp?
Replies: 8
Views: 432

Missing wxchar.h include in crashrpt.cpp?

I may be doing something entirely wrong, but... I tried to build latest 3.1.1.7 from source on Windows 7 using Visual Studio 2017. At first it seemed to mostly work but I got a strange error on command line: crashrpt.cpp ..\..\src\msw\crashrpt.cpp(170): error C3861: 'wxSscanf': identifier not found ...
by ebyrob
Wed Nov 07, 2018 7:48 pm
Forum: C++ Development
Topic: default constructors in wxWidgets
Replies: 7
Views: 324

Re: default constructors in wxWidgets

There are situations where two-step construction is useful (default ctor + calling wxWindow::Create() at a later time). It was just in this case (wxFrame) I couldn't find a possible use for something created with the default constructor. (Totally crippled / broken) I guess I better dive the source ...
by ebyrob
Wed Nov 07, 2018 7:31 pm
Forum: C++ Development
Topic: default constructors in wxWidgets
Replies: 7
Views: 324

Re: default constructors in wxWidgets

Well, I was re-writing from scratch. Trying to see if I could remember enough to do it on my own. I'm at 47 lines of code now, with the full GUI structure implemented and ready to put in some features. (minimal.cpp is 205 lines. Comments I know, but still I wanted to do my own thing etc..) Normally ...
by ebyrob
Wed Nov 07, 2018 6:04 pm
Forum: C++ Development
Topic: default constructors in wxWidgets
Replies: 7
Views: 324

default constructors in wxWidgets

I'm writing a new application and, to refresh my memory, I started by creating Hello World from scratch again. I spent about an hour trying to figure out why after creating a custom wxFrame and calling ->Show() it just wouldn't appear on the screen. It turns out this is completely invalid: MyFrame::...
by ebyrob
Wed Sep 26, 2018 4:20 pm
Forum: C++ Development
Topic: Want to turn progress dialog modal at the end.
Replies: 5
Views: 631

Re: Want to turn progress dialog modal at the end.

My experience with threading has been that it introduces even more non-deterministic behaviors to programs and that it can easily become hazardous. For this project I'm working in C++ and I'm not at all happy with C++ exceptions, nor very comfortable with the RAII cleanup model. I've just spent abou...
by ebyrob
Tue Sep 25, 2018 3:46 pm
Forum: C++ Development
Topic: Want to turn progress dialog modal at the end.
Replies: 5
Views: 631

Re: Want to turn progress dialog modal at the end.

> The dialog won't disappear on its own. I think... I think you're right and I'm not thinking about this correctly. Why can't I just drop the thread when I'm done? For some reason I can't get my head around that after having done so much work with the thread already, I somehow want to hang on to con...
by ebyrob
Tue Sep 25, 2018 3:42 pm
Forum: C++ Development
Topic: Want to turn progress dialog modal at the end.
Replies: 5
Views: 631

Re: Want to turn progress dialog modal at the end.

> Why is the dialog not modal from the beginning? Well, I couldn't figure out how to keep the thread of execution for myself while calling the blocking method ->ShowModal() I think I got it, and sorry to bother everyone with a now rhetorical question. I wouldn't have thought to try this but I replac...
by ebyrob
Tue Sep 25, 2018 3:18 pm
Forum: C++ Development
Topic: Want to turn progress dialog modal at the end.
Replies: 5
Views: 631

Want to turn progress dialog modal at the end.

Hello, I've implemented a progress dialog derived from wxDialog which makes a pretty good progress bar so far with short bursts of activity interspersed with a lot of: wxSafeYield(this) At the end I finish processing with a tight loop that looks like this as I wait for the user to hit "Close" : whil...
by ebyrob
Thu Aug 02, 2018 4:56 pm
Forum: C++ Development
Topic: wxGridCellAttr::Clone() access violation
Replies: 1
Views: 424

Re: wxGridCellAttr::Clone() access violation

Right, so GetAttr() is returning NULL...

And low and behold, GetAttrProvider() is also returning NULL.

So, ignore this I guess.
by ebyrob
Thu Aug 02, 2018 4:41 pm
Forum: C++ Development
Topic: wxGridCellAttr::Clone() access violation
Replies: 1
Views: 424

wxGridCellAttr::Clone() access violation

Running in the debugger with Visual Studio 2010, wxWidgets version 3.1.0. I get an access violation cloning wxGridCellAttr. wxGrid* pGrid = new wxGrid(this, ID_GRID_MYCUSTOMID, wxDefaultPosition, wxSize(200,250)); pGrid->CreateGrid(1,12); // I always do this early to avoid problems with missing init...
by ebyrob
Tue Mar 13, 2018 2:34 pm
Forum: C++ Development
Topic: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN
Replies: 8
Views: 2282

Re: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN

Awesome guys!!! Definite weight off my mind. I remember reading a lot of samples back when I first did all of this, I think the tutorial I followed wasn't really main-line. I may have skimmed the included DLL tutorial, but it looks definitely worth a re-read if the information in it is that good! Th...
by ebyrob
Mon Mar 12, 2018 8:55 pm
Forum: C++ Development
Topic: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN
Replies: 8
Views: 2282

Re: Calling wxApp's OnInit when using wxIMPLEMENT_APP_NO_MAIN

Wow I didn't really think about this at the time but... I've got a wx app running entirely on a side-thread. Everything I do happens on that single side-thread and, luckily for me, seems to mostly work. I guess this may seem less strange if you realize my entire application is a "DLL plugin" for any...