Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C++, GUI Library and FLTK.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Fri Mar 31, 2017 10:49 pm    Post subject: C++, GUI Library and FLTK. Reply with quote

In Chapter 12 of Stroustrup's book "Programming Principles and Practice Using C++", there is a code example like this:
Code:

#include "Simple_window.h“
#include "Graph.h"

int main()
{
using namespace Graph_lib; //our graphics facilities are in Graph_lib

Point t1(100,100); //to become top left corner of window

Simple_window win(t1,600,400"Canvas"); //make a simple window

Polygon poly;

poly.add(Point(300,200)); //add point
poly.add(Point(350,100)); //another point
Poly.add(Point(400,200)); //third point

poly.set_color(Color::red);  //adjust properties of poly

win.attach(poly);      //connect poly to the window

win.wait_for_button(); //give control to the display engine
}


However, after I installed FLTK in VS 2015, I couldn't find the related headers to include.

So, what header files do I need to include to get the same result as using Stroustrup's code?

Thanks.

_________________
**************

A simple example is better then ten links. Very Happy
Back to top
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Sat Apr 01, 2017 12:37 pm    Post subject: Reply with quote

Chances are you need to include FLTK's include directory in your msvc 2015 solution project property as "additional include directories".
I have not worked with FLTK itself but I have had to include many libraries.
your compiling error message might help in giving you a more accurate answer
Back to top
View user's profile Send private message
deleted19776
I post too much
Reputation: 11

Joined: 29 Apr 2007
Posts: 3838

PostPosted: Mon Apr 03, 2017 10:13 pm    Post subject: Reply with quote

Try googling those header files as well as not using C++ for learning graphics like this.
Back to top
View user's profile Send private message
Dr.Disrespect
Grandmaster Cheater
Reputation: 3

Joined: 17 Feb 2016
Posts: 526

PostPosted: Tue Apr 04, 2017 3:34 pm    Post subject: Reply with quote

Thanks for the advice, ulysse31.
_________________
**************

A simple example is better then ten links. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites