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
|
2
|
3
|
4
(2) |
5
(3) |
6
(2) |
7
|
8
(1) |
9
(1) |
10
|
11
|
12
(3) |
13
|
14
|
15
|
16
(2) |
17
|
18
|
19
|
20
|
21
|
22
|
23
(1) |
24
(6) |
25
|
26
|
27
|
28
|
29
|
30
|
31
|
|
|
|
From: a.geo <aqu...@gm...> - 2008-12-24 14:42:55
|
#include<iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } Really your program is running right... so you need stop it after the cout, you can make it with some keyboard function... :D #include<iostream> #include "conio.h" using namespace std; int main() { cout << "Hello World\n"; getch(); // This function wait until you press a key return 0; } This is all... mmmmmmmmmmmm, I feel so nostalgic... T_____T -- -------------------------------------------------------- VISIT MY BLOG : http://ageo.blogspot.com/ picture blog : http://ageo.deviantart.com/journal/ |
From: Chris M. <lor...@gm...> - 2008-12-24 07:37:23
|
On Tue, Dec 23, 2008 at 5:29 PM, frederico schardong <fre...@gm...> wrote: > Hello, > > How I can write a program to use my joystick, it use port midi. It have one > vertical and horizontal axis, and 3 buttons. > I thinking something how show in printf() the value of the axis and the > state of the buttons. The SDL Library is your best bet for reliable joystick input, assuming you wish to avoid lots of DirectX shenanigans. http://www.libsdl.org/ You should be able to install it using Dev C++'s library installer. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ Parents, Take Responsibility For Your Kids! http://www.whattheyplay.com/ |
From: Chris M. <lor...@gm...> - 2008-12-24 07:34:29
|
On Tue, Dec 23, 2008 at 8:10 PM, c william <not...@ya...> wrote: > Hello all, > > I am very, very new to programming and needless to say I am having trouble > with the simplest "Hello World" program. It compiles OK, but when it runs > on Dev-CPP the ouptut window only stays open for a fraction of a second. Is > there a setting that I am missing? The (stupid) Windows terminal is closing before you can see the output. You need to pause it. > Below is the code: > > #include<iostream> #include<cstdlib> > using namespace std; > > int main() > { > cout << "Hello World\n"; system("PAUSE"); > return 0; > } > > I certainly hate bothering anyone with such a trivial request, but it is > probably something so simple that an experienced programmer would spot in a > flash. Thanks in advance! It's not obvious, and to give you the more correct solution (should you choose to use it): char c; std::cout << "Press the any key to continue... " << std::endl; std::cin.get(c); return 0; This method is more "correct" because system("PAUSE"); only works on Windows, whereas the whole cin.get routine works on Windows, Linux, Mac, and everything else AFAIK. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ Parents, Take Responsibility For Your Kids! http://www.whattheyplay.com/ |
From: Mr. B. C. P. <phu...@gm...> - 2008-12-24 05:41:10
|
Hi bill, Your program syntex is ok. First open a folder in Dev-Cpp and name is "MyPrograms". Save the file "Hello World" in this folder. When you compile your program, the Run window comes and goes in a fraction of second if the compiling is free of error. Then go to DOS command prompt (Run > cmd). In command prompt, type cd c:\. Hit enter. On C>, type dev_cpp\MyPrograms\helloworld.exe. You will see that this prints out your program. Happy ? B. C. Phukan |
From: c w. <not...@ya...> - 2008-12-24 04:10:43
|
Hello all, I am very, very new to programming and needless to say I am having trouble with the simplest "Hello World" program. It compiles OK, but when it runs on Dev-CPP the ouptut window only stays open for a fraction of a second. Is there a setting that I am missing? Below is the code: #include<iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } I certainly hate bothering anyone with such a trivial request, but it is probably something so simple that an experienced programmer would spot in a flash. Thanks in advance! --Bill |
From: frederico s. <fre...@gm...> - 2008-12-24 01:29:16
|
Hello, How I can write a program to use my joystick, it use port midi. It have one vertical and horizontal axis, and 3 buttons. I thinking something how show in printf() the value of the axis and the state of the buttons. Thankyou |
From: João M. R. S. T. <ta...@fe...> - 2008-12-23 14:59:43
|
---------------------------------------------------------------------------- --------------------------------------------------- (Apologies for cross-posting) Symposium on Visualization and Human-Computer 3rd International Conference on Integrity, Reliability & Failure (IRF2009) Faculty of Engineering, University of Porto, Porto PORTUGAL, 20-24 July 2009 http://paginas.fe.up.pt/clme/IRF2009/index.htm (We would appreciate if you could distribute this information by your colleagues and co-workers.) ---------------------------------------------------------------------------- --------------------------------------------------- Dear Colleague, Within the 3rd International Conference on Integrity, Reliability & Failure (IRF2009), to be held in FEUP, Porto, Portugal, in July 20-24, 2009, we are organizing the Symposium Visualization and Human-Computer. Examples of some topics that will be considered are: Scientific Data Visualization, Spatial Data in Visualization, Data Processing and Analysis, Information Visualization, Visualization Techniques, Large Data Visualization, Image Processing and Analysis, Hardware for Visualization, Human-Computer Interaction, Visual Analytics, Visual Data Mining and Knowledge Discovery, Human Perception, Interface Design, Evaluation and User Studies, Software Development, Grid and High Performance Computing, Applications in Engineering, Biomechanics, Bioinformatics, Bioimaging, Physical, Earth, Space, Environmental and Information Sciences. Due to your research activities in those fields, we would like to invite you to submit your work and participate in the Symposium Visualization and Human-Computer. For instructions and submission, please access to the conference website at: http://paginas.fe.up.pt/clme/IRF2009/index.htm Please note that, when submitting your work you should select the Symposium #7 Visualization and Human-Computer. Important dates: - February 28, 2009: Deadline for abstract submission; - March 21, 2009: Notification of abstract acceptance; - May 10, 2009: Receipt of Full Papers; - July 20-24, 2009: Conference Events. Kind regards, João Manuel R. S. Tavares (University of Porto, Portugal, ta...@fe...) Renato Natal Jorge (University of Porto, Portugal, rn...@fe...) (Symposium organizers) |
From: Aitor M. <ait...@gm...> - 2008-12-16 22:43:55
|
Hi frederico, There are lot of API's for image processing (including, load, creation, save, ...). For example, cxImage is a tiny and easy to use API. http://www.codeproject.com/KB/graphics/cximage.aspx bye On Tue, Dec 16, 2008 at 10:13 PM, frederico schardong <fre...@gm...>wrote: > Hello, > > What is the easiest way to upload an image to program and test whether it > has a certain resolution and that each pixel is either black or white or in > shades of gray (8 bits (254 shades of gray and black and white))? > > Tanks > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > -- Aitor Moreno aitormoreno [@] gmail.com |
From: frederico s. <fre...@gm...> - 2008-12-16 21:16:49
|
Hello, What is the easiest way to upload an image to program and test whether it has a certain resolution and that each pixel is either black or white or in shades of gray (8 bits (254 shades of gray and black and white))? Tanks |
From: Rafael M. <raf...@ya...> - 2008-12-12 15:11:15
|
Add system("pause"); to your program's end. Best Regards, Rafael March. --- On Fri, 12/12/08, vivek <vi...@ya...> wrote: From: vivek <vi...@ya...> Subject: [Dev-C++] Cmd window gets disapper To: dev...@li... Date: Friday, December 12, 2008, 2:09 PM Hi, I am using DevC++ for my windows vista, i wrote program but when click on " Execute -> Run" the windows comes and disapper. How to solve this problem. I tried to search in existing thread but could not find anyone. Please let me know if you know any existingthread on this. Regards vivek ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: vivek <vi...@ya...> - 2008-12-12 14:09:35
|
Hi, I am using DevC++ for my windows vista, i wrote program but when click on " Execute -> Run" the windows comes and disapper. How to solve this problem. I tried to search in existing thread but could not find anyone. Please let me know if you know any existingthread on this. Regards vivek |
From: angel d. <sci...@ho...> - 2008-12-12 06:15:56
|
Every time I try to send an email using smtp.mail.yahoo.com smtp server, I get an authentication error. How can I provide the authentication using telnet? _________________________________________________________________ Suspicious message? There’s an alert for that. http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008 |
From: João M. R. S. T. <ta...@fe...> - 2008-12-09 23:03:53
|
---------------------------------------------------------------------------- --------------------- (Apologies for cross-posting) EURASIP Journal on Advances in Signal Processing Special issue on Image Processing and Analysis in Biomechanics http://www.hindawi.com/journals/asp/si/ipab.html Announce and Call for papers We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- --------------------- Dear Colleague, A critical component for true realistic biomechanical analysis and simulations is to obtain accurately, from images, the geometric data and the behavior of the desired structures. For that, the use of automatic, efficient, and robust techniques of image processing and analysis is mandatory. The main objective of this Special Issue, of the EURASIP Journal on Advances in Signal Processing, on Image Processing and Analysis in Biomechanics is to bring together recent advances in the related fields (not limited to): - Signal processing in biomechanical applications; - Data interpolation, registration, acquisition and compression in biomechanics; - Segmentation of objects in images for biomechanical applications; - 3D reconstruction of objects from images for biomechanical applications; - 2D/3D tracking and object analysis in images for biomechanical applications; - 3D vision in biomechanics; - Biomechanical applications involving image processing and analysis algorithms; - Virtual reality in biomechanics; - Software development for image processing and analysis in biomechanics. Submission Instructions & Important Dates: Authors should follow the journal manuscript format (http://www.hindawi.com/journals/asp/) and submit their manuscript through the journal Manuscript Tracking System (http://mts.hindawi.com/), according to the following timetable: - Manuscript Due: May 1, 2009; - First Round of Reviews: August 1, 2009; - Publication Date: November 1, 2009. Lead Guest Editor João Manuel R. S. Tavares, University of Porto, Portugal (ta...@fe...) Guest Editor R. M. Natal Jorge, University of Porto, Portugal (rn...@fe...) |
From: João M. R. S. T. <ta...@fe...> - 2008-12-08 20:47:56
|
---------------------------------------------------------------------------- ----------------------- (Apologies for cross-posting) Symposium on Computational methods in image analysis 10th US National Congress on Computational Mechanics (USNCCM X) Columbus, Ohio, USA, July 16-19, 2009 http://usnccm-10.eng.ohio-state.edu/ We would appreciate if you could distribute this information by your colleagues and co-workers. ---------------------------------------------------------------------------- ----------------------- Dear Colleague, Within the 10th US National Congress on Computational Mechanics (USNCCM X), to be held in Ohio, USA, in July 16-19, 2009, we are organizing the Symposium Computational methods in image analysis. Examples of some topics that will be considered in the symposium Computational methods in image analysis are: Image Analysis, Objects Modeling, Image Segmentation, Matching, Shape Reconstruction, Motion and Deformation Analysis, Objects Description and Registration, Medical imaging, Software Development for Image Analysis and Grid and High Performance Computing in Image Analysis. Due to your research activities in those fields, we would like to invite you to submit your work and participate in the Symposium Computational methods in image analysis. For instructions and submission, please access to the conference website at: http://usnccm-10.eng.ohio-state.edu/abstractsub.html Please note that, when submitting your work you should select the Symposium 2.18.4 Computational methods in image analysis. Important dates: - January 31, 2009: Deadline for abstract submission; - March 1, 2009: Deadline and notification of abstract acceptance; - July 16-19, 2009: Congress Events. Kind regards, João Manuel R. S. Tavares (University of Porto, Portugal, ta...@fe...) Renato Natal Jorge (University of Porto, Portugal, rn...@fe...) Yongjie Zhang (Carnegie Mellon University, USA, jes...@an...) Dinggang Shen (UNC-CH School of Medicine, USA, dg...@me...) (Symposium organizers) |
From: Derek C. <de...@ci...> - 2008-12-06 11:05:54
|
On Sat, Dec 6, 2008 at 6:35 AM, Chris Miller <lor...@gm...> wrote: > On Fri, Dec 5, 2008 at 8:30 AM, Derek Clarke <de...@ci...> wrote: >> In C++ the only difference between a struct and a class is that in a >> class the default access is private whereas in a struct it is public. >> in all other aspects they are the same. > > structs are unable to have inheritance if I remember correctly. > On Sat, Dec 6, 2008 at 6:35 AM, Chris Miller <lor...@gm...> wrote: > On Fri, Dec 5, 2008 at 8:30 AM, Derek Clarke <de...@ci...> wrote: >> In C++ the only difference between a struct and a class is that in a >> class the default access is private whereas in a struct it is public. >> in all other aspects they are the same. > > structs are unable to have inheritance if I remember correctly. Not true - as I said the *only* difference is the default access. See below, these were tested on VS2008 Express. The classes use accessors because the default access is private, unlike the structs. Foo.h #ifndef FOO_H #define FOO_H struct Foo { int value; Foo() : value(0) {}; Foo(const int new_value) : value(new_value) {}; friend ostream& operator<< (ostream& my_stream, const Foo& my_foo); }; inline ostream& operator<< (ostream& my_stream, const Foo& my_foo) { my_stream << my_foo.value; return my_stream; }; class Foo_class { int value; public: Foo_class() : value(0) {}; Foo_class (const int new_value) : value(new_value) {}; const int Value() const { return value;}; friend ostream& operator<< (ostream& my_stream, const Foo_class& my_foo); }; inline ostream& operator<< (ostream& my_stream, const Foo_class& my_foo) { my_stream << my_foo.Value(); return my_stream; }; #endif /* FOO_H */ Bar.h #ifndef BAR_H #define BAR_H #include "Foo.h" struct Bar : public Foo { int value2; Bar() : value2(0) {}; Bar(const int new_value) : Foo(0), value2(new_value) {}; Bar(const int new_value1, const int new_value2) : Foo(new_value1), value2(new_value2) {}; friend ostream& operator<< (ostream& my_stream, const Bar& my_bar); }; inline ostream& operator<< (ostream& my_stream, const Bar& my_bar) { my_stream << my_bar.value << " " << my_bar.value2; return my_stream; }; class Bar_class : public Foo_class { int value2; public: Bar_class() : value2(0) {}; Bar_class(const int new_value) : Foo_class(0), value2(new_value) {}; Bar_class(const int new_value1, int new_value2) : Foo_class(new_value1), value2(new_value2) {}; const int Value2() const { return value2; }; friend ostream& operator<< (ostream& my_stream, const Bar_class& my_bar); }; inline ostream& operator<< (ostream& my_stream, const Bar_class& my_bar) { my_stream << my_bar.Value() << " " << my_bar.Value2(); return my_stream; }; #endif /* BAR_H */ Foobar.cpp // Foobar.cpp : main project file. #include "stdafx.h" #include "Bar.h" using namespace System; int main(array<System::String ^> ^args) { Foo foo1(37); Foo_class foo2(43); Bar bar1(100, 142); Bar_class bar2(454, 922); cout << "foo1= " << foo1 << endl; cout << "foo2= " << foo2 << endl; cout << "bar1= " << bar1 << endl; cout << "bar2= " << bar2 << endl; return 0; } |
From: Chris M. <lor...@gm...> - 2008-12-06 06:35:23
|
On Fri, Dec 5, 2008 at 8:30 AM, Derek Clarke <de...@ci...> wrote: > In C++ the only difference between a struct and a class is that in a > class the default access is private whereas in a struct it is public. > in all other aspects they are the same. structs are unable to have inheritance if I remember correctly. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |
From: a.geo <aqu...@gm...> - 2008-12-05 17:07:39
|
This right, the difference is on the logic,... A struct is a organized data collection... a class is a definition of a live-object, with attributes and activities (methods). 2008/12/5 Derek Clarke <de...@ci...> > In C++ the only difference between a struct and a class is that in a > class the default access is private whereas in a struct it is public. > in all other aspects they are the same. > -- -------------------------------------------------------- VISIT MY BLOG : http://ageo.blogspot.com/ picture blog : http://ageo.deviantart.com/journal/ |
From: Derek C. <de...@ci...> - 2008-12-05 16:30:37
|
In C++ the only difference between a struct and a class is that in a class the default access is private whereas in a struct it is public. in all other aspects they are the same. On Fri, Dec 5, 2008 at 12:43 PM, Andre Macario Barros <and...@su...> wrote: > Dear users, > > When we need to develop a OO app, one way is to create > classes, with attributes and methods. After this we instanciate > the class in our program, as it is, or with some specialization. > > Thinking only about ANSI-C, we can create structs with the > usual fields (attributes), but we can associate functions inside > the struct too. After this operation, putting this struct definition > in a .h file, we can make a variable declaration defining it as > a struct type (the one created in the .h file). > > In this scenario, disconsidering the protected/public/private > features, please talk to me abou what a OO app can > do that a struct like .c program can´t. > > Regards > Andre > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
From: Andre M. B. <and...@su...> - 2008-12-05 13:05:42
|
Dear users, When we need to develop a OO app, one way is to create classes, with attributes and methods. After this we instanciate the class in our program, as it is, or with some specialization. Thinking only about ANSI-C, we can create structs with the usual fields (attributes), but we can associate functions inside the struct too. After this operation, putting this struct definition in a .h file, we can make a variable declaration defining it as a struct type (the one created in the .h file). In this scenario, disconsidering the protected/public/private features, please talk to me abou what a OO app can do that a struct like .c program can´t. Regards Andre |
From: matheus r. <mfr...@gm...> - 2008-12-04 19:18:24
|
Hi there is a pthread for windows: http://sourceware.org/pthreads-win32/ About the socket, there is a socket library for windows too. Check this tutorial: http://beej.us/guide/bgnet/ hope it helps 2008/12/4 Kanito 73 <kan...@ho...> > Hello list > > I have a library developed in C++ with GNU C++ (Linux) and want to port it > to Windows. In the earlier versions tried using Visual C++ and was a bit > difficult to maintain since some OS and hardware dependent functions were > quite different or unavailable. > > In particular I had to modify my threads and sockets code for windows and > create some kind of simple MUTEX_LOCK for multithreading, so aparently for > the programmer it was enough to call the library functions in the same way > under Linux and Windows, but was hard to maintain both versions so the > windows version was deprecated and continued working on the *NIX version > only. > > Recently I found dev-c++ and that it is based on the GNU C++ compiler and > it atracted my attention again, most of my code works 100% without changes > except the threads and sockets code that has no available functions in the > included libraries. > > My question is if it is possible in some way to integrate *NIX socket > support (socket, inet_addr, gethostbyname, etc) with dev-c++ and it would be > nice to have some kind of pthreads support maybe by adding an extra module > or library. > > Any coment or help on this? > > > Thanks, > Miguel > > > ------------------------------ > Explore the seven wonders of the world Learn more!<http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE> > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > |
From: Kanito 73 <kan...@ho...> - 2008-12-04 18:54:22
|
Hello list I have a library developed in C++ with GNU C++ (Linux) and want to port it to Windows. In the earlier versions tried using Visual C++ and was a bit difficult to maintain since some OS and hardware dependent functions were quite different or unavailable. In particular I had to modify my threads and sockets code for windows and create some kind of simple MUTEX_LOCK for multithreading, so aparently for the programmer it was enough to call the library functions in the same way under Linux and Windows, but was hard to maintain both versions so the windows version was deprecated and continued working on the *NIX version only. Recently I found dev-c++ and that it is based on the GNU C++ compiler and it atracted my attention again, most of my code works 100% without changes except the threads and sockets code that has no available functions in the included libraries. My question is if it is possible in some way to integrate *NIX socket support (socket, inet_addr, gethostbyname, etc) with dev-c++ and it would be nice to have some kind of pthreads support maybe by adding an extra module or library. Any coment or help on this? Thanks, Miguel _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE |