Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have a <a href="http://technical-recipes.com/?p=721" rel="nofollow">blog posting</a> that shows you how.</p> <p>It was done in VS2003 but the same instructions on there have been seen to work equally as well in VS2010.</p> <p>After installing, unzipping and building the <a href="http://www.fltk.org/software.php?VERSION=1.3.0&amp;FILE=fltk/1.1.10/fltk-1.1.10-source.zip" rel="nofollow">fltk download</a>, you should make sure that the following things are taken care of in your project properties:</p> <ol> <li>Add the required additional include directories.</li> <li>In the Project Properties -> Linker -> Input -> Additional Dependencies, ensure the {fltkd, wsock32, comctl32}.lib libraries have been included.</li> <li>In the Project Properties -> Linker -> General -> Additional Library Directories, ensure the correct path for the fltk library files is given.</li> <li>In the Project Properties -> C/C++ -> Code Generation -> Runtime Library field, make sure the “Multi-threaded Debug DLL (/MDd)” field is chosen.</li> </ol> <p>You should then be in a position to try a simple example such as the following "Hello World" sample:</p> <pre><code>#include &lt;FL/Fl.H&gt; #include &lt;FL/Fl_Window.H&gt; #include &lt;FL/Fl_Box.H&gt; int main(int argc, char **argv) { Fl_Window *window = new Fl_Window(300,180); Fl_Box *box = new Fl_Box(20,40,260,100,"Hello, World!"); box-&gt;box(FL_UP_BOX); box-&gt;labelsize(36); box-&gt;labelfont(FL_BOLD+FL_ITALIC); box-&gt;labeltype(FL_SHADOW_LABEL); window-&gt;end(); window-&gt;show(argc, argv); return Fl::run(); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload