dev-cpp-users Mailing List for Dev-C++ (Page 368)
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
|
|
From: Ricardo A. <ri...@te...> - 2003-06-12 08:11:22
|
> ). This incorporates everything you need to know:
>
> #include <iostream>
> #include <cstdlib>
> using namespace std;
>
> typedef struct test{
> public:
> int* a;
> test();
> };
>
> test::test(){
> a = new(int);
> *a = 5;
> cout << "In constructor: " << *a << endl;
> }
>
> int main(){
> test *x = new test();
> cout << "*(x->a): " << *(x->a) << endl;
> cout << "*((*x).a): " << *((*x).a) << endl;
> system("pause");
> }
>
Not bad, but you should free the memory previously allocated:
int main(){
test *x = new test();
cout << "*(x->a): " << *(x->a) << endl;
cout << "*((*x).a): " << *((*x).a) << endl;
system("pause");
delete x->a
delete x;
}
Regards
--
---------------------------------------------------
Ricardo Amores Hernández
ICQ: 19463735
MSN: zheo_ (at) hotmail (dot) es
---------------------------------------------------
|
|
From: Ricardo A. <ri...@te...> - 2003-06-12 08:10:44
|
Yeoh HS escribió: > ----- Original Message ----- > From: "Ricardo Amores" <ri...@te...> > To: <Dev...@li...> > Sent: Thursday, June 12, 2003 7:51 AM > Subject: [Dev-C++] inline assembler > > AFAIK, GNU C Compiler uses AT&T assembly syntax. > > Try this URL: > http://www-106.ibm.com/developerworks/linux/library/l-ia.html?dwzone=linux > > Regards, > Yeoh > at http://www.yeohhs.com Thanks!, It was very usefull :) -- --------------------------------------------------- Ricardo Amores Hernández ICQ: 19463735 MSN: zheo_ (at) hotmail (dot) es --------------------------------------------------- |
|
From: Ioannis V. <iv...@em...> - 2003-06-12 07:56:51
|
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of David McKen
Sent: Thursday, June 12, 2003 3:16 AM
To: dev...@li...
Subject: [Dev-C++] Stress with structs and pointers.
Ok, I need some clarification on a couple topics invloving pointers and
pointers.
1) when a struct is created. All that can be assumed is that it contains
trash right? What is a portable way to initalize everything to 0? mset?
struct whatever_type s={0, 0, 0 ...};
2) when a structure contains a pointer. Access to the address (not the
value) comes in the form {struct_variable_name}.{member_name}?
Yes.
3) how do you de-refrence the pointer in #2 to get the value of the
variable? {struct_variable_name}.*{member_name}?
*struct_variable_name.pointer_name=...
or
*(struct_variable_name.pointer_name)=...
to make it easier to understand. I use the second.
4) if you have a pointer to the structure you access the members via '->'.
If a member of the structure is a pointer the address is gotten via
{struct_varible_name}->{member_name}?
Yes
If so how does one get the value of the varible?
{struct_variable_name}->*{member_name}?
*struct_variable_name->pointer_name=...
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
<http://www.noicys.freeurl.com/>
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net <http://www.noicys.cjb.net/>
|
|
From: Glen V. <gve...@pa...> - 2003-06-12 07:17:06
|
1) Structs also support constructors (see below for example program)
2) Don't know what you mean. But if you mean that it can take any type
of members: yes. If you want to get to that member, just do it the same
way: struct.membername. It's the same way for pointers or other variables.
3) *(struct.membername). It's very easy to test this yourself.
4) plain logic: you got a pointer to struct, so use struct->member. The
variable is a pointer, so dereference the endresult: *(struct->member).
*((*struct).member) would be an alternative way (dereference your
pointer to struct, get its member, dereference that) :)
I wrote a little test to be sure (and in the process I learned stuff too
:) ). This incorporates everything you need to know:
#include <iostream>
#include <cstdlib>
using namespace std;
typedef struct test{
public:
int* a;
test();
};
test::test(){
a = new(int);
*a = 5;
cout << "In constructor: " << *a << endl;
}
int main(){
test *x = new test();
cout << "*(x->a): " << *(x->a) << endl;
cout << "*((*x).a): " << *((*x).a) << endl;
system("pause");
}
David McKen wrote:
> Ok, I need some clarification on a couple topics invloving pointers
> and pointers.
>
> 1) when a struct is created. All that can be assumed is that it
> contains trash right? What is a portable way to initalize everything
> to 0? mset?
>
> 2) when a structure contains a pointer. Access to the address (not the
> value) comes in the form {struct_variable_name}.{member_name}?
>
> 3) how do you de-refrence the pointer in #2 to get the value of the
> variable? {struct_variable_name}.*{member_name}?
>
> 4) if you have a pointer to the structure you access the members via
> '->'. If a member of the structure is a pointer the address is gotten
> via {struct_varible_name}->{member_name}? If so how does one get the
> value of the varible? {struct_variable_name}->*{member_name}?
>
> Thanks in Advance
> David McKen
>
> P.S. Was begining to run out of hair!
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Free online calendar
> <http://us.rd.yahoo.com/mail_us/tag/*http://calendar.yahoo.com> with
> sync to Outlook(TM).
|
|
From: Glen V. <gve...@pa...> - 2003-06-12 06:52:37
|
You should have a main-function in one of your .cpp files. Also see that all your files are in the same project. File->new -> project ->empty project Project->add to project-> all the files needed JB Maust wrote: > Hello, > > while trying to compile a modular project (five parts; two .h, > three .cpp files) in Dev-C++ 4.0 I get the following error from > Compiler and linker output: > > \DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference > to `WinMain@16' <mailto:%60WinMain@16%27> > > > Help? > > TIA > > J.B. > jb...@so... <mailto:jb...@so...> > |
|
From: Vlada D. <dj...@im...> - 2003-06-12 06:33:53
|
It happens to me when I don't define main() function. But, you did =
define it, right?
----- Original Message -----=20
From: JB Maust=20
To: dev...@li...=20
Sent: Thursday, June 12, 2003 3:56 AM
Subject: [Dev-C++] Error: ... undefined reference to `WinMain@16'
Hello,
while trying to compile a modular project (five parts; two .h, =
three .cpp files) in Dev-C++ 4.0 I get the following error from Compiler =
and linker output:
\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference =
to `WinMain@16'
Help?
TIA
J.B.
jb...@so...
|
|
From: <fer...@te...> - 2003-06-12 04:38:13
|
Thanks, this works fine!
My problem really was not with sprintf at last, i was using g_print()
from gtk to show this(is a graphical application, only to debug) and
with it I get an error.
Using your sample(changing puts by g_print) too gives an error but now i
do with puts and appear exactly I want.
Avik Ghose escreveu:
> This one works!!
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> int main()
> {
> char sql_lt[128] = {'\0'};
> char *prcampo = "hello";
> char *prprocurar = "world";
> sprintf(sql_lt,"select data,titulo,categoria,anotacao, \
> ROWID from anot where %s like \'%%%s%%\';",prcampo,prprocurar);
> puts(sql_lt);
> return 0;
> }/*main*/
>
>
> Fernando_Conceição <fer...@te...> wrote:
>
> Hi! In this:
> sprintf(sql_lt,"select data,titulo,categoria,anotacao,ROWID from anot
> where %s like '%s';",prcampo,prprocurar);
> I get something like this:
> select data,titulo,categoria,anotacao,ROWID from anot where titulo
> like
> 'mytitle';
> But when I try place a % there is an error, or the value appears
> wrong
> or I get a NULL string, by example, I need this output
> select data,titulo,categoria,anotacao,ROWID from anot where titulo
> like
> '%mytitle%';
> I try to place one %, two %(like tell in libc reference), \% and
> nothing
> gives what I want.
> Can you show me how to do this?
>
> Thanks.
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
> Thanx and Regards
> Avik Ghose
>
> Catch all the cricket action. Download Yahoo! Score tracker
> <http://in.sports.yahoo.com/cricket/tracker.html>
>
|
|
From: Luigi S. <gi...@li...> - 2003-06-12 04:31:37
|
On Wed, Jun 11, 2003 at 10:33:05AM +0300, Ioannis Vranos wrote: > [...] > > Well I say some b*llshit from time to time. :) > Could be the heat wave sweeping across southern europe? :-) -- >> gisan >> You have an unusual magnetic personality. Don't walk too close to metal objects which are not fastened down. |
|
From: JB M. <jb...@so...> - 2003-06-12 01:56:47
|
Hello,
while trying to compile a modular project (five parts; two .h, three =
.cpp files) in Dev-C++ 4.0 I get the following error from Compiler and =
linker output:
\DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to =
`WinMain@16'
Help?
TIA
J.B.
jb...@so...
|
|
From: Yeoh H. <ye...@ye...> - 2003-06-12 01:37:35
|
----- Original Message ----- From: "Somkutas Peter" <Som...@st...> To: "DevC++" <dev...@li...> Sent: Thursday, June 12, 2003 8:41 AM Subject: [Dev-C++] simple browser window > Hi all! > > It's possible make a simple browser window in devc++? (embeded internet > explorer) > > Yes, it is possible. The simplest way I could think of right now is to use the wxHTML class in wxWindows. Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ |
|
From: Yeoh H. <ye...@ye...> - 2003-06-12 01:34:42
|
----- Original Message ----- From: "Somkutas Peter" <Som...@st...> To: "DevC++" <dev...@li...> Sent: Thursday, June 12, 2003 8:40 AM Subject: [Dev-C++] Active-X controls > Hi! > > I'm new on list. I'm Peter from Hungary. Please help: > > How can i use active-x controls in my DevC++ project? > > There was a discussion on this in May 2003, the forum thread is: http://sourceforge.net/forum/message.php?msg_id=2026609 Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ |
|
From: Somkutas P. <Som...@st...> - 2003-06-12 00:41:11
|
Hi all! It's possible make a simple browser window in devc++? (embeded internet explorer) |
|
From: Somkutas P. <Som...@st...> - 2003-06-12 00:40:17
|
Hi! I'm new on list. I'm Peter from Hungary. Please help: How can i use active-x controls in my DevC++ project? |
|
From: Ronald <ron...@pt...> - 2003-06-12 00:28:15
|
I think the purpose of the question was to see if you were paying attention in class.... ...unless your class is on how to utilize the internet to do your work for you.....<grin> -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Liezel Joubert Sent: Wednesday, June 11, 2003 3:15 AM To: dev...@li... Subject: [Dev-C++] Urgent help needed! Hi there, can anyone help with this question? Write a program that computes final averages for a set of grades. The program reads the grades from a file called Scores.dat. The file scores.dat begins with a header line followed by a set of scores for each student. The format of the header line is n weight1 weight2 ... weightn where n is the number of scores for each student and weight is the weight of the score. The header line is followed by grades for each student. The format of a grade line is name score1 score2.... scoren where name is the last name of the student and score is the score. Allscores must be between 0 and 100. The program reads the file score.dat and writes a file called average.dat that has the average computed in it. ---------------------------------------------------------------------------- -- Do you Yahoo!? Free online calendar with sync to Outlook(TM). |
|
From: Yeoh H. <ye...@ye...> - 2003-06-12 00:25:25
|
----- Original Message ----- From: "Ricardo Amores" <ri...@te...> To: <Dev...@li...> Sent: Thursday, June 12, 2003 7:51 AM Subject: [Dev-C++] inline assembler > Does anyone knows a web where I can find info about using inline > assembly with dev-c++? > I=B4m interested in the sintax, not learning ASM > > Greetings > > -- > Saludos > > Ricardo Amores Hern=E1ndez > ricky (at) telecable (dot) es > > AFAIK, GNU C Compiler uses AT&T assembly syntax. Try this URL: http://www-106.ibm.com/developerworks/linux/library/l-ia.html?dwzone=3Dli= nux Regards, Yeoh at http://www.yeohhs.com |
|
From: David M. <ci...@ya...> - 2003-06-12 00:15:58
|
Ok, I need some clarification on a couple topics invloving pointers and pointers.
1) when a struct is created. All that can be assumed is that it contains trash right? What is a portable way to initalize everything to 0? mset?
2) when a structure contains a pointer. Access to the address (not the value) comes in the form {struct_variable_name}.{member_name}?
3) how do you de-refrence the pointer in #2 to get the value of the variable? {struct_variable_name}.*{member_name}?
4) if you have a pointer to the structure you access the members via '->'. If a member of the structure is a pointer the address is gotten via {struct_varible_name}->{member_name}? If so how does one get the value of the varible? {struct_variable_name}->*{member_name}?
Thanks in Advance
David McKen
P.S. Was begining to run out of hair!
---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM). |
|
From: Ricardo A. <ri...@te...> - 2003-06-11 23:51:49
|
Does anyone knows a web where I can find info about using inline assembly with dev-c++? I´m interested in the sintax, not learning ASM Greetings -- Saludos Ricardo Amores Hernández ricky (at) telecable (dot) es |
|
From: <a_g...@ya...> - 2003-06-11 23:03:30
|
This one works!!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char sql_lt[128] = {'\0'};
char *prcampo = "hello";
char *prprocurar = "world";
sprintf(sql_lt,"select data,titulo,categoria,anotacao, \
ROWID from anot where %s like \'%%%s%%\';",prcampo,prprocurar);
puts(sql_lt);
return 0;
}/*main*/
Fernando_Conceição <fer...@te...> wrote:
Hi! In this:
sprintf(sql_lt,"select data,titulo,categoria,anotacao,ROWID from anot
where %s like '%s';",prcampo,prprocurar);
I get something like this:
select data,titulo,categoria,anotacao,ROWID from anot where titulo like
'mytitle';
But when I try place a % there is an error, or the value appears wrong
or I get a NULL string, by example, I need this output
select data,titulo,categoria,anotacao,ROWID from anot where titulo like
'%mytitle%';
I try to place one %, two %(like tell in libc reference), \% and nothing
gives what I want.
Can you show me how to do this?
Thanks.
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
Thanx and Regards
Avik Ghose
Catch all the cricket action. Download Yahoo! Score tracker |
|
From: Luis C. <ad...@co...> - 2003-06-11 22:40:21
|
I really don't know why you would want to look for a special symbol at all. The [like] command will match without the % being there. Unfortunately, the [like] also may be using a type of pattern matching symbols. What type of database are you running may be the right question. Is there any docs on pattern matching with [like] for your database manager ?? ----- Original Message ----- From: "Fernando Conceição" <fer...@te...> To: <dev...@li...> Sent: Wednesday, June 11, 2003 4:04 PM Subject: [Dev-C++] Help with sprintf > Hi! In this: > sprintf(sql_lt,"select data,titulo,categoria,anotacao,ROWID from anot > where %s like '%s';",prcampo,prprocurar); > I get something like this: > select data,titulo,categoria,anotacao,ROWID from anot where titulo like > 'mytitle'; > But when I try place a % there is an error, or the value appears wrong > or I get a NULL string, by example, I need this output > select data,titulo,categoria,anotacao,ROWID from anot where titulo like > '%mytitle%'; > I try to place one %, two %(like tell in libc reference), \% and nothing > gives what I want. > Can you show me how to do this? > > Thanks. > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
|
From: <fer...@te...> - 2003-06-11 22:11:46
|
Hi! In this: sprintf(sql_lt,"select data,titulo,categoria,anotacao,ROWID from anot where %s like '%s';",prcampo,prprocurar); I get something like this: select data,titulo,categoria,anotacao,ROWID from anot where titulo like 'mytitle'; But when I try place a % there is an error, or the value appears wrong or I get a NULL string, by example, I need this output select data,titulo,categoria,anotacao,ROWID from anot where titulo like '%mytitle%'; I try to place one %, two %(like tell in libc reference), \% and nothing gives what I want. Can you show me how to do this? Thanks. |
|
From: Shayne K. <err...@ne...> - 2003-06-11 18:23:44
|
http://users.cyberelectric.net.au/~collins/BackIssues/1999-11.htm -- shayne http://www.shaynekasai.com On Wed, 11 Jun 2003, Andr=E9 Mac=E1rio Barros wrote: > Dear Users, > > Can anybody give some examples of when I MUST use "endl" insted of '\n= '? > When one is needed and when another? > Is endl used to clean the OUTPUT buffer? > > Note: The cin.ignore(200, =B4\n') worked fine. Thanks. > Regards > Andre > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Yeoh H. <ye...@ye...> - 2003-06-11 14:53:36
|
----- Original Message ----- From: "Muhammad Farhan" <mf...@ww...> To: <dev...@li...> Sent: Saturday, June 07, 2003 4:54 PM Subject: [Dev-C++] Problem with Dev-Cpp and WxWindows hello world > Hi, > I am using Dev-Cpp 4.9.8.0 with GCC 3.2. > I am trying to compile Hello World program of WxWindows (template included in > dev-cpp) but it is giving me a lot of errors. > > Please guide me how to overcome these errors. > Regards, > Farhan > Which wxWindows version are you using? I'm also using Dev-C++ 4.9.8.0 (GCC3.2) with wxWindows 2.4.0 and there are no compile problems. Did you download a DevPak? At my website, I've posted a URL for anyone who wants to download a wxWindows 2.4.0 DevPak that works with Dev-C++ 4.9.8.0 (GCC 3.2). Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ |
|
From: Yeoh H. <ye...@ye...> - 2003-06-11 14:53:24
|
----- Original Message ----- From: "Christian Schmidt" <sm...@xs...> To: <dev...@li...> Sent: Sunday, June 08, 2003 12:21 PM Subject: [Dev-C++] GPL, GCC, C Lib and closed source applications > Hi, > > So I just found out that I can use GCC/MingGW to do closed source > applications: << > http://www.fsf.org/licenses/gpl-faq.html#CanIUseGPLToolsForNF >> > > But can I use the c lib (stdio,string, time and others) for closed source > applications?? Or should I download and use the MS C lib? > > I would like to stay with DevCPP and use wxwindows + stl + clib and develop > someday closed source applications next to open source. > > I believe you can use MinGW to develop closed source applications. AFAIK, MinGW uses Microsoft's C runtime. The header files and .a library files that come with MinGW enables you to write Win32 applications that use Microsoft's C runtime. There is a project group at SourceForge that is developing an alternative C runtime. I think it is called SMART. Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ |
|
From: Ioannis V. <iv...@em...> - 2003-06-11 14:32:52
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andr? Macario Barros > Sent: Wednesday, June 11, 2003 4:08 PM > To: Dev-Cpp-Users > Subject: [Dev-C++] Examples using '\n' or endl >=20 >=20 > Dear Users, >=20 > Can anybody give some examples of when I MUST use "endl"=20 > insted of '\n'? > When one is needed and when another? > Is endl used to clean the OUTPUT buffer Well endl also flushes the stream. The same thing like after printf() = you do fflush(stdout). I have met some coders out there that they = fflush(stdout) in C programs after some printf() calls to be sure that the messages = appeared before the program continues. I have never done that (flush stdout after printfs). So it is up to your judgement if you want to add an '\n' & = flush cout using only one 'endl'. >=20 > Note: The cin.ignore(200, =B4\n') worked fine. Thanks. Yes it ignores the next 200 characters or until '\n' is found before the 200th character. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
|
From: <and...@su...> - 2003-06-11 13:08:05
|
Dear Users, Can anybody give some examples of when I MUST use "endl" insted of '\n'? When one is needed and when another? Is endl used to clean the OUTPUT buffer? Note: The cin.ignore(200, ´\n') worked fine. Thanks. Regards Andre |