Search found 178 matches
- Fri Oct 16, 2009 12:52 pm
- Forum: C++ Development
- Topic: deprecated conversion from string constant to ‘wxChar*’
- Replies: 6
- Views: 2886
deprecated conversion from string constant to ‘wxChar*’
Hello, compiling my code with g++-4.3.3 on Ubuntu linux prints the following compiler warning: deprecated conversion from string constant to ‘wxChar*’ The code g++ warns about: static wxChar *Cmd[] = {wxT("some text"),NULL}; What i am doing wrong. Or, in other words, how to do it correctly...
- Thu Sep 24, 2009 1:05 pm
- Forum: wxDev-C++
- Topic: plotctrl example
- Replies: 2
- Views: 1614
try to link against the wxPlotCtrl library: i am using the following linker flags and plotctrl works for me -I/usr/include/gtk-2.0/gdk -I/usr/include/gtk-2.0/gtk -L/usr/local/lib -pthread -lwx_gtk2_aui-2.8 -lwx_gtk2_xrc-2.8 -lwx_gtk2_qa-2.8 -lwx_gtk2_html-2.8 -lwx_gtk2_adv-2.8 -lwx_gtk2_core-2.8 -lw...
- Tue Sep 22, 2009 5:52 pm
- Forum: wxDev-C++
- Topic: wxPlotCtrl
- Replies: 2
- Views: 1318
- Thu Sep 17, 2009 10:32 pm
- Forum: wxDev-C++
- Topic: help WxTreeCtrl
- Replies: 1
- Views: 1335
http://docs.wxwidgets.org/stable/wx_sam ... letreectrl
you find the sample in the wxWidgets sources in samples/treectrl
Best regards
Orbitcowboy
you find the sample in the wxWidgets sources in samples/treectrl
Best regards
Orbitcowboy
- Thu Sep 17, 2009 2:15 pm
- Forum: wxCode
- Topic: invalid conversion from 'const char*' to 'wxChar'
- Replies: 8
- Views: 6341
You're right, I have to rebuild it in ansi mode, but I don't know how I should do that. Sorry, if I'm asking stupid Questions... No problem (in linux :-) ... others i don't know): Download the wxWidgets sources from: http://www.wxwidgets.org/downloads/ then, type the following commands in the linux...
- Thu Sep 17, 2009 1:45 pm
- Forum: wxCode
- Topic: invalid conversion from 'const char*' to 'wxChar'
- Replies: 8
- Views: 6341
Thank you for the fast reply, but is there another way to solve this problem, cause it's to much to change in the program code (there are a lot of files to changed!). Yes, there is another way. Compile your application in ansi and NOT in uncicode mode using the wx-config --unicode=no. This requires...
- Thu Sep 17, 2009 12:59 pm
- Forum: wxCode
- Topic: invalid conversion from 'const char*' to 'wxChar'
- Replies: 8
- Views: 6341
- Wed Sep 16, 2009 3:18 pm
- Forum: C++ Development
- Topic: wxString to float conversion
- Replies: 6
- Views: 2872
- Wed Sep 16, 2009 9:37 am
- Forum: C++ Development
- Topic: Control available similar to wxFormBuilder?
- Replies: 6
- Views: 2300
Take also a look at this:
http://www.xs4all.nl/~jorgb/wb/wxwidget ... index.html
http://www.xs4all.nl/~jorgb/wb/MyProjec ... elBar.html
http://www.xs4all.nl/~jorgb/wb/wxwidget ... index.html
http://www.xs4all.nl/~jorgb/wb/MyProjec ... elBar.html
- Tue Sep 15, 2009 2:13 pm
- Forum: C++ Development
- Topic: wxGrid: SetCellValue(&int, &int, &wxString)
- Replies: 2
- Views: 1387
have you tried to following:
Best regards
Orbitcowboy
Code: Select all
wxGrid *pGrid = new Grid(...)
int row,col;
/// ...
pGrid-> SetCellValue(row,col,wxString::Format(wxT("%f"),myFloatValue));
Orbitcowboy
- Mon Sep 14, 2009 7:13 am
- Forum: C++ Development
- Topic: math with more than 64bit precision?
- Replies: 14
- Views: 5930
Well, I could find this: http://www.delphi3000.com/articles/article_3772.asp?SK= , it does 128-bit arithmetic using 32-bit registers but it's written in Pascal. I think it's pretty easy to convert the functions to C plus inline assembly. Cheers, Andre That link is very helpful. I can understand the...
- Sun Sep 13, 2009 8:37 pm
- Forum: C++ Development
- Topic: math with more than 64bit precision?
- Replies: 14
- Views: 5930
Hi friends
here
http://en.wikipedia.org/wiki/Arbitrary- ... arithmetic
you find other bignum libraries beyond gmp
Best regards
Orbitcowboy
here
http://en.wikipedia.org/wiki/Arbitrary- ... arithmetic
you find other bignum libraries beyond gmp
Best regards
Orbitcowboy
- Fri Aug 21, 2009 4:13 pm
- Forum: C++ Development
- Topic: try catch when allocation memory
- Replies: 4
- Views: 1665
try catch when allocation memory
Hello friends, when using the new operator, normally one whould write the following code #include <iostream> #include <new> using namespace std; int main () { int* myarray; try { myarray= new int[10000]; if(myarray == NULL) cerr << "bad alloc\n" << endl; } catch (bad_alloc& ba) { cerr ...
- Thu Jul 16, 2009 12:40 pm
- Forum: C++ Development
- Topic: wxGTK::add an icon to wxMenu Item
- Replies: 2
- Views: 1542
- Thu Jul 16, 2009 7:40 am
- Forum: C++ Development
- Topic: wxGTK::add an icon to wxMenu Item
- Replies: 2
- Views: 1542
wxGTK::add an icon to wxMenu Item
Hi friends,
does anybody know a way to add an icon to wxMenu? Is this possible with wxGTK?
I intend to do something like this--> see screenshot
Best regards and thanks in advance
Orbitcowboy
does anybody know a way to add an icon to wxMenu? Is this possible with wxGTK?
I intend to do something like this--> see screenshot
Best regards and thanks in advance
Orbitcowboy