Search found 321 matches

by raananb
Sun Apr 01, 2018 6:20 pm
Forum: C++ Development
Topic: application exception in try/catch
Replies: 5
Views: 145

Re: application exception in try/catch

Ok, Thanks
by raananb
Sun Apr 01, 2018 12:29 pm
Forum: C++ Development
Topic: application exception in try/catch
Replies: 5
Views: 145

Re: application exception in try/catch

I am using wxSQLite, and wxWidgets was compiled with USE_EXCEPTIONS = 1 As for the exception, I inserted the sequence below, hoping that the 'throw' will fall within 'catch', but it raises a Windows exception: Unmanaged Exception at 0x770708F2 (KernelBase.dll) try { int return = db->ExecuteUpdate(&q...
by raananb
Sun Apr 01, 2018 7:33 am
Forum: C++ Development
Topic: application exception in try/catch
Replies: 5
Views: 145

application exception in try/catch

I am using sqlite in an application and need to make sure that a record was deleted when requested. The Delete order is launched inside a try/catch structure. sqlite does not generate an error if the record was not deleted. It is up to the application to verify the number of deleted records given in...
by raananb
Thu Mar 08, 2018 10:19 pm
Forum: C++ Development
Topic: wxListCtrl column label [SOLVED]
Replies: 3
Views: 96

Re: wxListCtrl column label [SOLVED]

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

wxListCtrl column label [SOLVED]

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 [SOLVED]
Replies: 2
Views: 122

Re: wxDateTime::Set() failures [SOLVED]

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 [SOLVED]
Replies: 2
Views: 122

wxDateTime::Set() failures [SOLVED]

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...
by raananb
Tue Feb 06, 2018 10:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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, ...
by raananb
Mon Feb 05, 2018 10:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Link errors with Trunk [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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 [SOLVED]
Replies: 21
Views: 576

Re: Link errors with Trunk [SOLVED]

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...

Go to advanced search