Search found 21 matches

by waterj
Mon Jan 16, 2006 6:43 am
Forum: C++ Development
Topic: derived class from wxWidgets can not compile in Linux
Replies: 5
Views: 1644

I think multiple inheritence would cause compiling errors. Maybe you should try checking and removong things like "#pragma interface"
by waterj
Mon Jan 16, 2006 6:38 am
Forum: Compiler / Linking / IDE Related
Topic: undefined reference to vtable
Replies: 7
Views: 3370

mastupristi wrote:
Jorg wrote:It helps by showing some (stripped down) code. Remember, even pragma's can cause this. Are you using the #pragma implementation part by any chance?
I don't think (if wxDev-Cpp hasn't add it).

thanks
I think your'd better check for something like "#pragma interface" in your code.
by waterj
Thu Jan 12, 2006 8:10 am
Forum: C++ Development
Topic: How to make Opengl work with gdi?
Replies: 3
Views: 1465

??
by waterj
Mon Jan 09, 2006 11:15 am
Forum: C++ Development
Topic: How to make Opengl work with gdi?
Replies: 3
Views: 1465

Just a quick thought: Does it work when displaying the bitmap after SwapBuffers()? Yes, bitmap showed after SwapBuffers. But my old MFC program are mixed OpenGL with GDI, so bitmap displaying might happen before SwapBuffers. I added a PFD_SUPPORT_GDI flag to wxGLCanvas and made wxMSW version work. ...
by waterj
Sun Jan 08, 2006 9:12 am
Forum: C++ Development
Topic: How to make wxClolour use an index of wxPalette?
Replies: 4
Views: 1545

Ok, I think it's the only way to make wx palette work.
Thanks fo help.
by waterj
Sun Jan 08, 2006 9:08 am
Forum: C++ Development
Topic: How to make Opengl work with gdi?
Replies: 3
Views: 1465

How to make Opengl work with gdi?

I added some codes in wx sample "opegl/penguis". I just want to show a little bitmap in the left top corner of GLCanvs, but it didn't work. Is it possible to make opengl work with common gdi? void TestGLCanvas::OnPaint( wxPaintEvent& WXUNUSED(event) ) { // must always be here wxPaintDC...
by waterj
Sat Jan 07, 2006 3:43 am
Forum: C++ Development
Topic: How to make wxClolour use an index of wxPalette?
Replies: 4
Views: 1545

unsigned char red, green, blue; bitmap.GetPalette()->GetRGB(paletteIndex, &red, &green, &blue); wxColour colour(red, green, blue); Thanks for post. Maybe I didn't make myself clear. I create a palette like these: wxClientDC dc(this); BYTE r[]={255,0,0} BYTE g[]={0,255,0} BYTE b[]={0,0,2...
by waterj
Fri Jan 06, 2006 9:35 am
Forum: C++ Development
Topic: How to make wxClolour use an index of wxPalette?
Replies: 4
Views: 1545

How to make wxClolour use an index of wxPalette?

Hi guys. I find no way to make a wxColour from the color index of a palette. Anyone have any idea?
Thanks.
by waterj
Thu Jan 05, 2006 2:17 am
Forum: Platform Related Issues
Topic: G_TYPE_CHECK_INSTANCE, GLib-GObject-CRITICAL, gsignal.c
Replies: 13
Views: 10170

In the not-so-close future, and 2.7 is a development series, not (API) stable. This workaround will appear in 2.6.3 too, once its released, which has been planned to be done soon (but the discussion seems to have faded away right now, I'll ping in a couple days probably) Thanks for help! I am a lii...
by waterj
Wed Jan 04, 2006 7:37 am
Forum: Platform Related Issues
Topic: G_TYPE_CHECK_INSTANCE, GLib-GObject-CRITICAL, gsignal.c
Replies: 13
Views: 10170

M.J.Wetherell just recently fixed this bug in CVS two days ago. CVS log message for changed files: "The Sun customised version of Pango shipping with Solaris 10 crashes if the language is left NULL (bug 1374114)" http://sourceforge.net/tracker/index.php?func=detail&aid=1374114&gro...
by waterj
Mon Jan 02, 2006 8:39 am
Forum: Platform Related Issues
Topic: G_TYPE_CHECK_INSTANCE, GLib-GObject-CRITICAL, gsignal.c
Replies: 13
Views: 10170

I sm running into the same problem

I wonder if that isn't the whole backtrace then for some odd reason. With set args --g-fatal-warnings I'm quite sure there should be more. It's hard to help for me without seeing the backtrace or something else informative, as I haven't seen that gtk+ warning myself anywhere in that context, and th...
by waterj
Wed Nov 30, 2005 10:02 am
Forum: C++ Development
Topic: how to creatre elliptic reigion?
Replies: 1
Views: 1128

how to creatre elliptic reigion?

hi, guys. Is there any way to create an elliptic region but wxRegion(wxBitmap&, wxColour&)? wxRegion from bitmap are very slow.
by waterj
Wed Nov 30, 2005 9:57 am
Forum: C++ Development
Topic: Changing frame shape
Replies: 3
Views: 1450

Re: Changing frame shape

How could I change the shape of the window frame. Window frame by default would be rectangular, how could I make it circular or oval. SetShape() can be used to give polygon shape, but not useful in creating circular shape. Can somebody help me out? The easiest way to achieve this would be using a b...
by waterj
Fri Nov 18, 2005 6:00 am
Forum: C++ Development
Topic: wxWidgets doesn't work with MFC well
Replies: 6
Views: 1842

lowjoel wrote:how about you reorder the MFC includes to come later than the wx includes? I dunno if its possible coz i dont use MFC
It won't work. Because wx.h includes windows.h, and MFC doesn't allow windows.h being included before mfc header files.
by waterj
Fri Nov 18, 2005 2:20 am
Forum: C++ Development
Topic: wxWidgets doesn't work with MFC well
Replies: 6
Views: 1842

Thanks for replys. The undef not only undefined the API macro, but also made some MFC classes' member functions can not be used. Like this:

#define TestF TestFA

class A{
void TestF(){};
};

#undef TestF

void main()
{
A a;
a.TestF(); //compiling error: 'TestF' : is not a member of 'A'
}