dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
(4) |
2
(10) |
3
(11) |
4
(8) |
5
(3) |
6
(1) |
7
(7) |
8
(5) |
9
(10) |
10
(4) |
11
(5) |
12
(3) |
13
(4) |
14
(7) |
15
(8) |
16
(11) |
17
(5) |
18
(3) |
19
(4) |
20
(8) |
21
(25) |
22
(9) |
23
(6) |
24
(8) |
25
(13) |
26
(11) |
27
(12) |
28
(3) |
29
(7) |
30
(3) |
|
|
|
From: Matthews <dem...@uw...> - 2004-06-12 17:40:02
|
I'm trying to implement a GUI management system in a project I'm working on. The setup is like this: base_gui_object: - all gui elements are derived from this class, which includes a virtual draw() function to override window: - derived from base_gui_object, overrides the draw() function. gui_controller: - contains linked list (subscriber_list) of all gui elements in use subscriber_list: - contains linked list of all elements (subscriber_info) subscriber_info: - contains a pointer to a single gui element (base_gui_object) Now, here's the important code: ///////////////////////////////////////////////////// class base_gui_object { public: virtual void draw() = 0; }; class subscriber_info { public: int priority; base_gui_object *gui_item; public: subscriber_info() {} subscriber_info(base_gui_object *item,int priority); subscriber_info *next; int get_priority() { return priority; } void *get_gui_subscriber() { return gui_item; } }; class subscriber_list { private: int num_subscribers; subscriber_info *entries; int index; public: subscriber_list() { index = 0; num_subscribers = 0; } ~subscriber_list(); void add(base_gui_object *item,int priority); void remove(base_gui_object *item); int get_num_subscribers() { return num_subscribers; } subscriber_info *traverse(); subscriber_info *first() { return entries; } subscriber_info *next(); subscriber_info *prev(); }; class gui_control { private: subscriber_list subscribers; public: gui_control() {} void update(); void subscribe(base_gui_object *item,int priority); void unsubscribe(base_gui_object *item); //void translate_message(); }; class window : public base_gui_object { private: char *title; int x,y,w,h; vid_info *vid; game_info *game; char *t; public: window(char *name,char *text,int x,int y,int w,int h,vid_info *vid,game_info *game); void draw(); void draw_text(); }; ////////////////////////////////////////////////////////////////////////////////////////////// // class Subscriber_Info - linked list items subscriber_info::subscriber_info(base_gui_object *item,int priority) { gui_item = item; next = NULL; } subscriber_info *subscriber_list::traverse() { subscriber_info *p = entries; while(p->next) p = p->next; return p; } ////////////////////////////////////////////////////////////////////////////////////////////// // class Subscriber_List - linked list void subscriber_list::add(base_gui_object *item,int priority) { if(!entries) { entries = new subscriber_info(item,priority); entries->next = NULL; } else { subscriber_info *p = traverse(); p->next = new subscriber_info(item,priority); } num_subscribers++; } ////////////////////////////////////////////////////////////////////////////////////////////// // class Gui_Control void gui_control::subscribe(base_gui_object *item,int priority) { subscribers.add(item,priority); } void gui_control::unsubscribe(base_gui_object *item) { subscribers.remove(item); } void gui_control::update() { subscriber_info *p = subscribers.first(); while((p=subscribers.next())) p->gui_item->draw(); } ////////////////////////////////////////////////////////////////////////////////////////////// // class Window window::window(char *name,char *text,int x2,int y2,int w2,int h2,vid_info *video,game_info *g) { title = name; x = x2; y = y2; w = w2; h = h2; vid = video; game = g; t = text; //draw(); //do some gui attaching stuff } ///////////////////////////////////////////////////////////////////////////////////////// In main(), this is the testing code. char *text = { "This is a test\n" "of multiple line stuff" }; window *win = new window("Char Editor",text,5,3,20,5,vid,game); gui_control *gui = new gui_control(); gui->subscribe(win,PRIORITY_LOW); ///////////////////////////////////////////////////////////////////////////////////////// Now, the problem code is the single line "while((p=subscribers.next())) p->gui_item->draw();" in gui_controller::update(). Whenever I try to call the draw() function directly, I get an access violation error. This is my first time trying limited object-oriented programming like this, so I'd appreciate learning how I'm supposed to access virtual member functions like this. Thanks. |
From: Brian D. <Bri...@ms...> - 2004-06-12 06:47:52
|
I am trying to add a menu to my window program and I'm getting an error = message stating that there's a parse error in the resource file (labeled = private) that's created by the compiler. The file only has the = following lines: // THIS FILE WILL BE OVERWRITTEN BY DEV-C++! // DO NOT EDIT! #include "C:/WINDOWS/Desktop/MyWindow/MyWindow.rc" The error is supposed to be on line five but there are only 4 lines. = Any suggestions? Brian |
From: Siva C. <siv...@ya...> - 2004-06-12 04:18:40
|
Hello all, I am not sure if this is the right place but I could get so many such answers out from here... What I want to do is to make a program which does screen capture. My program would show up as a small window with a button on it. When the user presses this button the program should capture the current screen and store the image somewhere as specified by the user in some config file. I would like to use wxWidgets for any required minimal GUI programming. TIA, Siva Chandra __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ |