Search found 187 matches

by Vexator
Wed May 10, 2006 12:56 pm
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

aah this looks familiar somehow :P line is an array of char: const int LINE_SIZE = 4096; char line[LINE_SIZE]; this is the latest stable release: http://www.openscenegraph.org/downloads/snapshots/OSG_OP_OT-1.0.zip take a look at OpenSceneGraph/src/osgPlugins/obj/obj.cpp, especially at the Model::rea...
by Vexator
Wed May 10, 2006 12:15 pm
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

ok, first of all, i'll give the stl idea a try. osg's .obj importer uses sscanf to read in data. what would you suggest as an stl alternative now? (i have to admit that i barely ever used stl): sscanf(line+2,"%f %f %f %f", &x, &y, &z, &w); ah btw: I wouldn't recommend to temporarily change the local...
by Vexator
Wed May 10, 2006 10:00 am
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

so if i understand you all correctly than i have two options.. a) i look into the osg code and replace all calls to atof and printf in the file loading routines with the stl alternatives (which i will have to do for every single file format and for every new release) b) or i set my locale to english...
by Vexator
Wed May 10, 2006 7:15 am
Forum: Open Discussion
Topic: Free alternative to Microsoft FrontPage??
Replies: 19
Views: 4044

notepad.
html/css are really not hard to learn (come on, you're a c++ programmer) and this way you can create far more efficient code than any commercial wysiwyg editor can do.
by Vexator
Wed May 10, 2006 7:10 am
Forum: C++ Development
Topic: the wxAui panes cannot fill all the dock range
Replies: 2
Views: 633

you should ask this in the wxaui forums at kirix.com :wink:
by Vexator
Wed May 10, 2006 6:45 am
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

ok, danke :D
i'll search for some info on the c locale stuff and look at the osg code to see what i can do there. still i think that sth like wxLocale::Enable() and wxLocale::Disable() would be a good idea. this way i could simply disable the localisation, load my mesh data and re-enable it.
by Vexator
Tue May 09, 2006 8:53 pm
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

mh.. this is the routine to load meshes in osg: Node* osgDB::readNodeFile(const std::string& filename,const ReaderWriter::Options* options) { ReaderWriter::ReadResult rr = Registry::instance()->readNode(filename,options); if (rr.validNode()) return rr.takeNode(); if (rr.error()) notify(WARN) << rr.m...
by Vexator
Tue May 09, 2006 8:45 pm
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

ok but WHY is the data localized at all?! shouldn't actually only strings enclosed in the _T() macro be localized? is there no way i can prevent wx from editing the mesh data? :(
by Vexator
Tue May 09, 2006 7:58 pm
Forum: C++ Development
Topic: wxlocale corrupts my mesh files?!
Replies: 19
Views: 2557

wxlocale corrupts my mesh files?!

my project uses osg to draw into from wxglcanvas derived 3d viewports. it has all worked fine so far and i've now set up my app to use wxlocale as well. but whenever i try to load 3d meshes from ascii files (for example .obj or .osg), the files are either corrupted or not drawn at all. after some fr...
by Vexator
Fri May 05, 2006 7:04 am
Forum: C++ Development
Topic: difference of panels and frames
Replies: 11
Views: 2123

a frame is a top level window. it may contain menubars, a statusbar and can act as parent to dialogs. a panel is more like a canvas to draw other controls on. you can alos use it to group some controls, to hide all of them simply by hiding the panel etc. Thanks! It is posible to make the panel trans...
by Vexator
Wed May 03, 2006 7:23 am
Forum: Announcements and Discoveries
Topic: wxWidgets at Google Summer of Code
Replies: 6
Views: 1509

damn
finished school last year -.-
by Vexator
Mon Apr 24, 2006 7:45 am
Forum: C++ Development
Topic: can button/BitmapButton like the windows taskbar button?
Replies: 1
Views: 445

take a look at wxtogglebutton.
by Vexator
Sun Apr 23, 2006 9:09 pm
Forum: General Development
Topic: Ideas for wxWidgets 3
Replies: 14
Views: 2451

Code: Select all

addEventListener (EventType, functionNameToBeCalled); 
you can already do that via Connect().
by Vexator
Sat Apr 22, 2006 10:41 am
Forum: General Development
Topic: How to make a link in wxTextCtrl?
Replies: 1
Views: 582

search wxcode for wxhyperlink. it's exactly what you want :D
by Vexator
Sat Apr 22, 2006 10:14 am
Forum: C++ Development
Topic: Memory Leak in wxWidgets?
Replies: 32
Views: 5728

mh this seems to cause problems if you use multiple viewports, as setcurrent() is called just before the buffers are swapped, but this has to be done before anything is drawn. this way it works fine for me: void wxGLContext::SwapBuffers() { if (m_glContext) { ::SwapBuffers((HDC) m_hDC); //blits the ...