Share

portable plot

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Try to port PPlot to FoxToolkit

You are viewing a single message from this topic. View all messages.

  1. 2007-02-05 22:19:51 UTC
    Hello all,

    I'm trying to port PPlot to the FoxToolkit (http://www.fox-toolkit.org).
    So I've started to write a wrapper class FXPPlot, based on what has already been done for the wxWidget wrapper class wxPPlot.

    When running the MakePainterTester example, everything just goes fine, and I obtain the correct picture (i.e. 2 texts surounded by 2 lines, 1 text being horizontal, and the other being vertical).

    So far, so good. The problem comes when I try to run any of the exmplplot (MakeExamplePlot1 for example). I end up with an error in the method PPlot::ConfigureSelf(), actually at line 13 of this method :
    const StringData *theStringXData = dynamic_cast<const StringData *>(theGlue);
    The program crash on the following error :
    exception: __non_rtti_object @ 0x0012eef4
    which comes from the usage of dynamic_cast operator.
    I've tried to change the dynamic_cast by static_cast, in this case it does not crash but nothing is plotted.

    Any idea what's going on, and how it could be solved (I can obviously provide the FXPPlot class if anybody want to check)?
    Btw, I'm running on VC++7.0 on winXP(SP2).

    Thanks,
    jd
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.