How to Import External Libraries

Help
2008-05-29
2013-04-16
  • Greer Trumble
    Greer Trumble
    2008-05-29

    I would like to experiment with using WS with wxWidgets and Fox Tool Kit.

    I can see from the program structure that this is possible, but I have never seen instruction on how to import external libraries of widgets into WS.

    Can you provide import instrcutions for this?

     
    • Greer Trumble
      Greer Trumble
      2008-05-29

      http://www.widestudio.org/EE/builder-doc/4-15.html...ws source\ws-v3.97-12

      http://www.widestudio.org/EE/builder-doc/7-4.html

      These two doc pages appear to realate to this issue, and i think I understand the inclusion of the DLL file in the Project Settings, but I've never been strong on understanding linking.  Can you guys provide a fulll example of an external library that is properly included and linked?

      A complete example would be really great.

      Thanks

       
    • Greer Trumble
      Greer Trumble
      2008-05-29

    • Greer Trumble
      Greer Trumble
      2008-05-30

      I just discovered that I asked a similar question in 2003 -- here is what you wrote then...

      The following is the
      general outline to import other toolkit into WideStudio:
      this is the way I did for importing OpenGL.

      1. get the resource of a window/form on which
      you want to display something of another toolkit.

      WSDdev* dev = object->getdev();

      2. get information from the resource.

      #ifndef MSW // this is the switch used in WideStudio
      //for x11,
      Window win = (Window)dev->getWindowResource();
      Display* disp = (Display*)dev->getDeviceResource();
      #else
      //for win32,
      HWND win = (HWND)dev->getWindowResource();
      HDC disp = (HDC)dev->getContextResource();
      #endif

      3. make a relation between the information and the toolkit.

      This assumes that the toolkit can use resources given by other toolkit.

      thanks,
      tamaki@

      I will go back tot his information and try to work on it, but I would appreciate any additional comment you may have at this time.

      thanks

      Greer T.