Search found 378 matches

by raananb
Thu Mar 08, 2018 10:19 pm
Forum: C++ Development
Topic: wxListCtrl column label
Replies: 3
Views: 232

Re: wxListCtrl column label

Thanks, the mask solved it.
by raananb
Thu Mar 08, 2018 4:58 pm
Forum: C++ Development
Topic: wxListCtrl column label
Replies: 3
Views: 232

wxListCtrl column label

Once my ListCtrl is constitued and displayed, I am trying to get the column labels using the code below, but this only gives an empty value in label. Am I missing something?

Code: Select all

wxString label;

wxListItem m_Item;

m_listCtrl->GetColumn(0, m_Item);

label = m_Item.GetText();
by raananb
Fri Feb 16, 2018 1:18 pm
Forum: C++ Development
Topic: wxDateTime::Set() failures
Replies: 2
Views: 323

Re: wxDateTime::Set() failures

Thanks for the information about the default constructor. The solution is then to create a valid instance of mydate and apply the Set() functions as needed: wxDateTime* mydate = new wxDateTime(wxDateTime::Now()); .... mydate->SetDay(day); mydate->SetMonth(wxDateTime::Month(wxDateTime::Jan + month - ...
by raananb
Fri Feb 16, 2018 11:08 am
Forum: C++ Development
Topic: wxDateTime::Set() failures
Replies: 2
Views: 323

wxDateTime::Set() failures

Under Windows 10 & Visual Studio 2017, using the Trunk, the code below compiles but fails in execution with 'Invalide wxDateTime' at all the Set() functions. long day, month, year; wxString date = "2018-01-01"; date.Mid(8,2).ToLong(&day); date.Mid(5,2).ToLong(&month); date.Left(4).ToLong(&year); wxD...
by raananb
Tue Feb 06, 2018 10:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

I dont quite see what you mean by 'appropriate SDK defaults'.

When VS2017 is installed, SDK 10.0.16299.0 is the current default. With this default SDK, unless the project wx_vc15.sln is retargeted to 10.0.16299.0 the build fails, as exposed in this post.
by raananb
Tue Feb 06, 2018 1:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

Effectively, there is no software bug but I suggested that the documentation should include "Make sure that the project is targeted to the SDK used by Visual Studio." Why waste people's time searching for a non-bug?
by raananb
Tue Feb 06, 2018 7:48 am
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

Some more information: I deleted wxWidgets and uninstalled Visual Studio Community 2017. I cloned a fresh wxWidgets. I (unwittingly) installed Visual Studio Enterprise 2017. With the same environment (v141 & SDK 10.0.16299.0) same problem, the system files (stddef.h, stdio.h, stdlib.h, fcntl.h, etc)...
by raananb
Mon Feb 05, 2018 10:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

The platform toolset is v141, the one provided with 2017, and the one which the applications are compiled with. Windows SDK is 10.0.16299.0, the latest available (but the problem is identical with 8.5) Again, nmake builds wxWidgets within the Visual Studio command prompt, which is tuned to the conte...
by raananb
Mon Feb 05, 2018 5:01 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

Updated to 15.5.6

Launched wx_vc15.sln of yesterday's clone.

(setup0.h already copied into setup.h)

Same problems:

Included files such as fcntl.h, stdio.h, stddef.h, string.h... not found
by raananb
Mon Feb 05, 2018 12:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

My VS information (French): -------- information provided by the package Microsoft Visual Studio Community 2017 Version 15.5.2 VisualStudio.15.Release/15.5.2+27130.2010 Microsoft .NET Framework Version 4.7.02556 Version installée : Community Visual Basic 2017 00369-60000-00001-AA587 Microsoft Visual...
by raananb
Sun Feb 04, 2018 9:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

I did, and I still have problems with building wxWidgets: I deleted the wxWidgets directory and cloned a new trunk. Out-of-the-box build with wx_vc15.sln does not work. Files within the SDK are not found and are still signaled as missing. Command-line build works as it should. Building widgets.cpp w...
by raananb
Sun Feb 04, 2018 5:40 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

No better with widgets_vc9.sln (upgraded to VS2017): Erreur C1083 Impossible d'ouvrir le fichier include : 'stddef.h' : No such file or directory (compilation du fichier source activityindicator.cpp) widgets D:\wxWidgets\include\wx\defs.h 707 Erreur C1083 Impossible d'ouvrir le fichier include : 'st...
by raananb
Sun Feb 04, 2018 4:58 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Re: Link errors with Trunk

wxWidgets and the application were built from a clean slate. 'D:\wxWidgets\samples\widgets>nmake makefile.vc' produces a log file with error messages similar to the one below for all the widgets: D:\wxWidgets\include\wx/defs.h(707): fatal error C1083: Impossible to open the include file : 'stddef.h'...
by raananb
Sun Feb 04, 2018 2:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk
Replies: 21
Views: 1554

Link errors with Trunk

My application compiles and links (under Windows 10) with no errors with wxWidgets-3.1.0. When wxWidgets-3.1.0 is replaced by Trunk, the following 4 errors come up with a number of objects: Error LNK2001 unresolved external symbol "protected: virtual class wxWindowList __thiscall wxStaticBox::GetCom...
by raananb
Mon Jan 08, 2018 10:41 pm
Forum: C++ Development
Topic: wxWebView on trunk
Replies: 8
Views: 702

Re: wxWebView on trunk

Yes, but I wrongly surmised that DialogBlocks does the job fully...