Search found 111 matches

by maxbld
Fri Apr 14, 2017 11:25 pm
Forum: Compiler / Linking / IDE Related
Topic: Error C2993 when exporting a template
Replies: 2
Views: 608

Re: Error C2993 when exporting a template

ONEEYEMAN wrote:Hi,
First Google hit is here.

Thank you.
Uh, yes, first thing I've done was.googleing it, but I couldn't figure out a key that would have given the result you kindly provided.

Thanks, BR,
Max.
by maxbld
Fri Apr 14, 2017 3:45 pm
Forum: Compiler / Linking / IDE Related
Topic: Error C2993 when exporting a template
Replies: 2
Views: 608

Error C2993 when exporting a template

Hi all, Does anybody know why #define VediDBDLLEXPORT __declspec(dllexport) ... template <class VediDBDLLEXPORT T> void SortIt(dba::Database::StoreType type, int col){ ... Should give Error C2993 'T': illegal type for non-type template parameter 'T'? I used to compile on VS2010 and worked, now on VS...
by maxbld
Wed Apr 12, 2017 3:56 pm
Forum: C++ Development
Topic: wxGrid::GetRows() Doesn't exist anymore??
Replies: 1
Views: 430

wxGrid::GetRows() Doesn't exist anymore??

Did they kill wxGrid::GetRows() somewhere in between wxWidgets-3.0.2 and wxWidgets-3.1.0? Should we use GetNumberRows() instead?
by maxbld
Wed Apr 12, 2017 3:40 pm
Forum: C++ Development
Topic: wxGrid::SetCellValue parameters changed??
Replies: 1
Views: 301

wxGrid::SetCellValue parameters changed??

Hi all,

Can you please confirm that void SetCellValue( const wxString& s, int row, int col ); got changed to void SetCellValue( int row, int col, const wxString& s ); somewhere in between wxWidgets-3.0.2 and wxWidgets-3.1.0??

That is *SO* annoying!

Thanks, BR,
Max.
by maxbld
Wed Apr 27, 2016 4:37 pm
Forum: C++ Development
Topic: How to Improve wxGrid performance
Replies: 3
Views: 2656

Re: How to Improve wxGrid performance

It has been some time ago, but I think we discussed something similar once before. Did you see this thread ... https://forums.wxwidgets.org/viewtopic.php?f=1&t=39113 I think to get good performance the answer was to avoid wxGridCellAttr and also to use wxGridUpdateLocker. That was just part of the ...
by maxbld
Tue Mar 22, 2016 11:22 am
Forum: C++ Development
Topic: How to Improve wxGrid performance
Replies: 3
Views: 2656

How to Improve wxGrid performance

Dear all, I've profiled my app, which is using wxGrid directly, without deriving wxGridTableBase nor wxGridCellAttrProvider. I'm querying a database and trying to show a table with 50+ columns and 2000+ rows, and it's very slow. The profiler shows that of 67854 samples, the 56,99% (38670) is spent i...
by maxbld
Tue Mar 22, 2016 10:34 am
Forum: C++ Development
Topic: wxGrid::AutoSizeColumn kills my performances
Replies: 3
Views: 370

Re: wxGrid::AutoSizeColumn kills my performances

So I was debugging the thing and found that it was spending oh so much time in a loop to auto size all the columns, becouse I've seen that wxGrid::AutoSizeColumn calls wxGridCellAttrProvider::GetAttr for every and any cell of the column. Is this a known issue? How else should it do it? It has to it...
by maxbld
Mon Mar 21, 2016 2:37 pm
Forum: C++ Development
Topic: wxGrid::AutoSizeColumn kills my performances
Replies: 3
Views: 370

wxGrid::AutoSizeColumn kills my performances

Dear all, I've a very big wxGrid, around 50 columns and more than 2000 rows, don't ask me why that many columns, clients are crazy, right? And I also have a functionality to show/hide columns, but still there are tenth of shown columns and, in general, all could be shown together. So I was debugging...
by maxbld
Mon Mar 14, 2016 7:09 pm
Forum: Compiler / Linking / IDE Related
Topic: wx_vc10 DLL Release has debug info??
Replies: 3
Views: 473

Re: wx_vc10 DLL Release has debug info??

Dear all, I just had to recall what does it mean Runtime Library... I googled it and understood what had I forgot, it's just whether do you link against msvcrt.dll "Multi-threaded DLL (/MD)" or msvcrt.lib "Multi-threaded (/MT)". Of course if wxWidgets are linked to msvcrt.dll, your app has to link ...
by maxbld
Mon Mar 14, 2016 4:21 pm
Forum: Compiler / Linking / IDE Related
Topic: wx_vc10 DLL Release has debug info??
Replies: 3
Views: 473

Re: wx_vc10 DLL Release has debug info??

Dear all, I just had to recall what does it mean Runtime Library... I googled it and understood what had I forgot, it's just whether do you link against msvcrt.dll "Multi-threaded DLL (/MD)" or msvcrt.lib "Multi-threaded (/MT)". Of course if wxWidgets are linked to msvcrt.dll, your app has to link t...
by maxbld
Mon Mar 14, 2016 3:36 pm
Forum: Compiler / Linking / IDE Related
Topic: wx_vc10 DLL Release has debug info??
Replies: 3
Views: 473

Re: wx_vc10 DLL Release has debug info??

Dear all, I recompiled wxWidgets 302 without the debug info, but looks like that wasn't the issue. I did go in my application and set Runtime Library to "Multi-threaded DLL (/MD)" instead than Multi-threaded (/MT) and it started to work. But why that? I mean I'm compiling an .exe, not a DLL, why do ...
by maxbld
Mon Mar 14, 2016 2:54 pm
Forum: Compiler / Linking / IDE Related
Topic: wx_vc10 DLL Release has debug info??
Replies: 3
Views: 473

wx_vc10 DLL Release has debug info??

Dear all, I just noticed that the copy of wxWidgets3.0.2 I downloaded has "generate debug info" set to Yes in configuration DLL Release. Is that normal or do I have to suppose it's been me who unadvertedly set it? Actually I'm using the DLLs obtained out of it in a project of mine that compiles, lin...
by maxbld
Thu Mar 10, 2016 5:10 pm
Forum: C++ Development
Topic: wxgrid avoid text overlap next cell
Replies: 2
Views: 481

Re: wxgrid avoid text overlap next cell

Ahhh!! So I should have searched for overflow instead than overlap... Uhm, wouldn't wxGrid::SetDefaultCellOverlap(bool) be a better name?? You know "overflow" sounds like some number that was too big... :wink:

Anyway, Cool & fast, as always.

Thanks a lot doublemax!
by maxbld
Thu Mar 10, 2016 4:42 pm
Forum: C++ Development
Topic: wxgrid avoid text overlap next cell
Replies: 2
Views: 481

wxgrid avoid text overlap next cell

Dear all, I'm using a wxGrid. At runtime, when inserting texts in a cell, if it's larger than the column, it will overlap the next cell on the right (if it's empty). I find this behavior annoying, I'd prefer the text was simply truncated / scrolled on the left. I've been searching in the documentati...
by maxbld
Fri Feb 12, 2016 4:41 pm
Forum: Compiler / Linking / IDE Related
Topic: Wx lib GUI App: build it static or dynamic?
Replies: 4
Views: 1256

Re: Wx lib GUI App: build it static or dynamic?

you can't pass a wxWindow * pointer from the host to the DLL and use it as a parent for a window in the DLL.
And that is exactly what I wanted to do... No way, then! Thanks!!

BR,
Max.