
Search found 41 matches
- Tue Apr 01, 2008 6:38 pm
- Forum: C++ Development
- Topic: wxXmlDocument.Save() parameter truncation
- Replies: 11
- Views: 1995
- Tue Apr 01, 2008 12:31 pm
- Forum: C++ Development
- Topic: conversion of wxString to int
- Replies: 4
- Views: 634
- Tue Apr 01, 2008 6:43 am
- Forum: C++ Development
- Topic: hw to convert a wxString to int
- Replies: 1
- Views: 483
See the wxString::ToXXX() methods.
http://docs.wxwidgets.org/stable/wx_wxs ... ringtolong
http://docs.wxwidgets.org/stable/wx_wxs ... ringtolong
Code: Select all
long lValue;
if (myString.ToLong(&lValue)) {
// conversion OK
} else {
// conversion failed
}
- Tue Apr 01, 2008 5:53 am
- Forum: C++ Development
- Topic: UTF-16 wxXmlDocument?
- Replies: 2
- Views: 753
You have to make sure that the xml file is actually saved in UTF-16.
See http://unicode.org/faq/utf_bom.html#6
See http://unicode.org/faq/utf_bom.html#6
- Tue Apr 01, 2008 1:13 am
- Forum: C++ Development
- Topic: How do you read in values from a file
- Replies: 3
- Views: 843
Depends. If the file isn't too big maybe wxTextFile could be of use.
http://docs.wxwidgets.org/stable/wx_wxt ... wxtextfile
http://docs.wxwidgets.org/stable/wx_wxt ... wxtextfile
- Mon Mar 31, 2008 2:09 pm
- Forum: C++ Development
- Topic: Get library error.
- Replies: 4
- Views: 1427
What I mean is that you may have __WXDEBUG__ defined and/or are using wx debug headers even though you are linking against the wx release libraries (which don't have wxOnAssert() and the other missing debug symbols). There are include directories for release and debug builds (e.g. mswu vs. mswud) an...
- Mon Mar 31, 2008 1:04 pm
- Forum: C++ Development
- Topic: Get library error.
- Replies: 4
- Views: 1427
- Mon Mar 31, 2008 12:42 pm
- Forum: C++ Development
- Topic: How to add at runtime?
- Replies: 7
- Views: 1081
If this isn't a CVS bug, the result may be a little odd. "Time is now 11:34" :lol: wxString timeStart("01:00:00"); wxString timeToAdd("00:30:00"); wxDateTime timeBeg; if (timeBeg.ParseISOTime(timeStart)) { wxDateTime timeAdd; if (timeAdd.ParseISOTime(timeToAdd)) { timeBeg.Add(wxTimeSpan(timeAdd.GetH...
- Mon Mar 31, 2008 11:03 am
- Forum: C++ Development
- Topic: make cast to wxControl to wxTextCtrl
- Replies: 2
- Views: 706
Probably with wxDynamicCast(). classname * wxDynamicCast(ptr, classname) This macro returns the pointer ptr cast to the type classname * if the pointer is of this type (the check is done during the run-time) or NULL otherwise. Usage of this macro is preferred over obsoleted wxObject::IsKindOf() func...
- Mon Mar 31, 2008 8:04 am
- Forum: C++ Development
- Topic: how do i load an image into a wxStaticBitmap?
- Replies: 2
- Views: 3398
- Sun Mar 30, 2008 5:36 am
- Forum: C++ Development
- Topic: wxListCtrl - visual selection problem
- Replies: 0
- Views: 530
wxListCtrl - visual selection problem
I have 2 wxListCtrls, both in report mode and virtual. Somehow the selection looks as if the control would be showing HRULES & VRULES, but I didn't set those flags nor are the rules visible.

Does anyone know what could be causing this?

Does anyone know what could be causing this?