Search found 189 matches

by geon
Wed Sep 07, 2005 9:47 am
Forum: C++ Development
Topic: SQL as slim and easy possible
Replies: 12
Views: 3936

I have worked with MySQL and SQLite under PHP. I found SQLite to be at least as good as MySQL for my own needs. One great thing about SQLite is the file-based database. Especially when debugging, it is useful to be able to easily back-up or reset a database quickly. But more importantly, you have no...
by geon
Sun Sep 04, 2005 1:39 am
Forum: Open Discussion
Topic: wxWidgets Article!
Replies: 23
Views: 8031

priyank_bolia wrote:
There are several places that refer to "wxWindows" instead of "wxWidgets."
widgets is a linux word, and windows is more comfortable to MFC programmers.

Comfortable? "wxWidgets" is the name of the library. You can not just change it as you feel like.
by geon
Thu Sep 01, 2005 10:08 am
Forum: C++ Development
Topic: Problems with wxCanvas or ... ??
Replies: 3
Views: 1503

How do you set up your projection matrix?
by geon
Sun Aug 28, 2005 11:22 pm
Forum: General Development
Topic: Opengl - glCanvas
Replies: 1
Views: 1273

My suggestion would be to not use picking at all, since it is pretty limited. Use a ray-triangle intersection test instead.
by geon
Mon Aug 22, 2005 9:26 am
Forum: Component Writing
Topic: anti aliasing
Replies: 1
Views: 1737

Haven't tried in wx, but if it is not supported directly, you could render to a bigger surface an downsample it just before viewing it.
by geon
Sat Aug 20, 2005 12:04 pm
Forum: C++ Development
Topic: Button
Replies: 9
Views: 2755

Put something like this in your frame constructor: // Create a toolbar. CreateToolBar(wxTB_FLAT); GetToolBar()->SetToolBitmapSize(wxSize(16, 16)); GetToolBar()->AddTool(TOOLBAR_TRANSLATE, "Translate", wxImage("icons/translate.gif"), wxNullBitmap, wxITEM_NORMAL, "Translate&qu...
by geon
Thu Aug 18, 2005 11:28 pm
Forum: C++ Development
Topic: wxServer/Client issues
Replies: 7
Views: 3139

Why not just use a normal socket and connect to localhost?
by geon
Sat Aug 13, 2005 6:17 pm
Forum: C++ Development
Topic: Raw HTTP is bad for you? And whats with wxDebugReport?!
Replies: 4
Views: 1661

Your app will wait for the socket to connect. By some unknown reason it fails, so after 10 seconds, it times out and continues executing. Since you use a blocking connection method, you notice this as a "hang". remove this: client.WaitOnConnect(10) and move this to a wxSOCKET_LOST event ha...
by geon
Wed Aug 10, 2005 10:35 pm
Forum: Open Discussion
Topic: Why Use wxWidgets?
Replies: 13
Views: 5464

companies in India wanted MFC programmers This is how it looks everywhere. I think it is partially because of lacking wx promotion as stated above, but most importantly a managemant issue. The people who decide what technology to use don't look at convienience and coding aestethics. They want a pro...
by geon
Wed Aug 10, 2005 10:14 pm
Forum: Open Discussion
Topic: wxWidgets Future?
Replies: 38
Views: 12347

wx really needs some better documentation and/or simplification of the compilation process. As it is now, you would have to be a compiler guru to make work on mingw32 without lots-and-lots of trial-and-error. At least with wxGLCanvas turned on. It is also strange to not have binaries avaiable on the...
by geon
Fri Aug 05, 2005 3:32 pm
Forum: C++ Development
Topic: Executing OpenGL commands on wxGLCanvas
Replies: 1
Views: 1014

There is a reason why the wxGLCanvas class is designed the way it is. What is it you like to do different?
by geon
Mon Aug 01, 2005 1:59 pm
Forum: C++ Development
Topic: wxTheApp->Yield
Replies: 9
Views: 3218

My first impression is that this should not work at all, since the while-loop prevents any events to be handeled.

I am asuming that shis event is processed in the main thread.
by geon
Fri Jul 22, 2005 10:32 am
Forum: C++ Development
Topic: Fast wxFont rendering on a wxGLCanvas
Replies: 2
Views: 1684

White your own print function. I reccoment you put your font in a pre-rendered texture and render each character as a quad.
by geon
Wed Jul 20, 2005 4:23 pm
Forum: C++ Development
Topic: Sending objects through sockets
Replies: 3
Views: 1671

The process of doing this is called serialization. It means you have to convert your object into a stream of data, that can be read back later. C++ does not have built-in support for this, so you need to implement it yourself. It will also be very handy when you need to save objects to disk, since t...
by geon
Mon Jul 18, 2005 4:27 pm
Forum: C++ Development
Topic: differentiate double click from single click.
Replies: 3
Views: 1722

Just ignore any click if the mouse hasn't moved since the last one.