Search found 12 matches

by Darjk
Thu Mar 19, 2009 1:16 pm
Forum: General Development
Topic: Virtual File System
Replies: 0
Views: 526

Virtual File System

Hello all, Just looking to implement a Virtual File System in my application. The requirements for it is being able to load multiple archive formats (ZIP, SGA, MPQ, FPK, etc) where I can then load files locally by feeding it something like "Asset/Foliage/Tree.exp" where it searches through...
by Darjk
Sat Jan 26, 2008 2:54 am
Forum: C++ Development
Topic: Beginner question about objects and 'new'
Replies: 4
Views: 898

The first one creates a pointer to an objects memory location (and allocates the memory with "new") The second one just creates an object and puts into memory within the scope that it was created. At the end of that scope (ie. function / class / global / etc) it destroys the object and cle...
by Darjk
Fri Jan 04, 2008 11:21 pm
Forum: Compiler / Linking / IDE Related
Topic: wxmsw28_core_vc_custom.dll
Replies: 2
Views: 1131

You need to compile wxWidgets 2.8 in DLL Release mode. Just browse to your wxWidgets directory, open up the project again, then select "DLL Release" - or "DLL Unicode Release", which ever you're coding for. Then compile it and if all goes well you should now have the DLL's you're...
by Darjk
Wed Jan 02, 2008 7:25 am
Forum: C++ Development
Topic: OpenGL DIB Section Offscreen Rendering
Replies: 5
Views: 2798

The "brute force" method of doing it is something like: int screenSize; // Get the size of the canvas/viewport glGetIntegerv(GL_VIEWPORT, screenSize); glReadBuffer(GL_BACK); // Do your rendering here //RenderToBuffer(); // (width*height*bytesPerPixel) - 32bit, 4 bytes unsigned char* pixels...
by Darjk
Fri Mar 30, 2007 10:03 am
Forum: C++ Development
Topic: WarpPointer & image dragging
Replies: 2
Views: 922

That works as long as a drag stays within screen coordinates (and is what I've been using for past 2 years), hoping to improve on it though. I know its easily doable in pure Win32, but that somewhat defeats the purpose of using wxWidgets. I did however try using the same Win32 functions combined wit...
by Darjk
Fri Mar 30, 2007 9:03 am
Forum: C++ Development
Topic: WarpPointer & image dragging
Replies: 2
Views: 922

WarpPointer & image dragging

Using WinXP with VisualStudio 7.1 and wx2.8.3 (also tried on 2.8.0). Basically what I have is a window with an image on it, I'd like to be able to 'drag' that image while locking the mouse in position. Now I can achieve good enough effect for this using wxWindow::WarpPointer() however when I call th...
by Darjk
Wed Jan 03, 2007 10:56 am
Forum: C++ Development
Topic: Panels do not show up with wxPaintDC or wxBufferedPaintDC
Replies: 4
Views: 1510

If you have multiple wxGLCanvas windows, be sure to call SetCurrent() before any of your drawing/paint routines. If you know what you're doing with OpenGL, I'd suggest ditching wxGLCanvas though and just going with a standard wxWindow and using its hWnd to setup OGL the old fashion way. Spent a year...
by Darjk
Sun Dec 31, 2006 12:12 am
Forum: C++ Development
Topic: ShowModal steals input focus
Replies: 19
Views: 3084

Having a similar problem myself. Dialog windows like wxColourDialog, confirmation boxes, wxMessageBox(), etc are all hidden. By that I mean when I call them they are loaded up and have focus, but they are hidden behind the main window. Only way to bring them forward is by tapping alt. If you don't d...
by Darjk
Thu May 04, 2006 3:39 am
Forum: C++ Development
Topic: wxListBox - text colour?
Replies: 2
Views: 1383

OK Thanks mate for confirming that.

Figured that was going to be the case but before I started re-writing a couple of my classes I wanted to be absolutely sure.
by Darjk
Mon May 01, 2006 6:50 am
Forum: C++ Development
Topic: wxListBox - text colour?
Replies: 2
Views: 1383

wxListBox - text colour?

Hello all, just after a quick answer. Been scouring the net looking for an answer but so far nothing apart from a few hints about wxControlWithItems - looking at the docs for it though didn't help (granted I didn't load up the wx source to get a better understanding). Basically I want to know is it ...
by Darjk
Thu Dec 15, 2005 8:06 am
Forum: Announcements and Discoveries
Topic: wxIFM Patches
Replies: 5
Views: 3144

Thanks very much for that fix for wxGTK. Just spent the last week learning linux and porting my app from Win32 to Linux + wxGTK. Had it compiling and linking with no problems however had me stumped as to why its giving me Segsv (or whatever the Linux equivilant of "access violations" are) ...
by Darjk
Sat Nov 26, 2005 5:22 am
Forum: Announcements and Discoveries
Topic: wxIFM 1.0.5 - docking library for wxWidgets
Replies: 93
Views: 40217

G'day SnakeChomp. Nice work on wxIFM, recently just made the switch to it from wxDockIt and I must say, its a lot more elegant coding wise. Haven't had any problems except for not being able to 'hide single tabs' which wrote a patch for and is being added to 1.0.5. Also the other problem is I have a...