dev-cpp-users Mailing List for Dev-C++ (Page 520)
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: <we...@ha...> - 2002-09-27 15:26:48
|
Hi Guys,
I wrote this little program:
#include <stdio.h>
#include <windows.h>
#include <libiberty.h>
int main(){
char buf[1024]="New message, click here to open";
MessageBox(NULL, buf, "Titulo", MB_OK);
return(0);
}
It compile and run. But i want that the here be a real link.
When the guy click in "here" i open for example http://www.google.com.br
with the browser.
How to do it ??
And how to write the "here" with red color ??
Thkz a lot.
Best Regards.
[ ]'s
|
|
From: David M. <ci...@ya...> - 2002-09-27 14:03:15
|
I had a similar problem. When it tells you to install the control click yes then when it is done close all you internet explorer windows and try again. If that does not work write me back. I am in the process of downloading all of the cab files (20 in all each about 25Mb except the last one) and I have the links stored in flashget. I can export them to a HTML file for you so all you have to do is right-click on the link and select save-as. P.S. If you are wondering why I don't send it to you one time I am currently at school and this info is on my system at home. --- Ihsan Ali Al Darhi <ia...@jo...> wrote: > http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm > > I tried to download it from that site but I am facing a > strange problem with > it. When I visited the above page, it said that I don't > have SDK Update > control installed on my PC and asked me to install it. I > did that and it > then produced a list of .cab files to install. Suddenly > it displays the same > error message that I don't have that control installed!!! > I installed it > again but the same thing happened. Why? I have Windows > 2000 installed on my > PC. > > Mohammed > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com |
|
From: Ihsan A. Al D. <ia...@jo...> - 2002-09-27 13:51:19
|
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm I tried to download it from that site but I am facing a strange problem with it. When I visited the above page, it said that I don't have SDK Update control installed on my PC and asked me to install it. I did that and it then produced a list of .cab files to install. Suddenly it displays the same error message that I don't have that control installed!!! I installed it again but the same thing happened. Why? I have Windows 2000 installed on my PC. Mohammed |
|
From: Jade <ja...@cd...> - 2002-09-27 12:24:22
|
Hi there!
I'm new to Dev and I've found a problem compiling dialog
resources with windres ver 2.9.4. Can anyone tell me what's
wrong with this code
500 DIALOG
STYLE WS_CAPTION
CAPTION "Hi there!"
BEGIN
END
.-.
/v\ Jade
/( )\ ------------
^^ ^^
Linux Power!!
______________________________________________________
Servicio de correo de la Universidad de Matanzas, Cuba
|
|
From: Vlada D. <dj...@im...> - 2002-09-27 12:06:02
|
H!
I want to add a toolbar to my window,so I included <windows.h> and
<commctrl.h>, but I keep getting following messages:
173 C:\Visual\Test1\main.cpp
`INITCOMMONCONTROLSEX' undeclared (first use this function)
173 C:\Visual\Test1\main.cpp
parse error before `;'
174 C:\Visual\Test1\main.cpp
`icex' undeclared (first use this function)
176 C:\Visual\Test1\main.cpp
implicit declaration of function `int InitCommonControlsEx(...)'
=20
here=92s the code:
case WM_CREATE:
{
=20
TBBUTTON tbButtons[]=3D
=20
{(STD_FILENEW,ID_FILE_NEW,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,0),
=20
(STD_FILEOPEN,ID_FILE_OPEN,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,0),
=20
(STD_FILESAVE,ID_FILE_SAVE,TBSTATE_ENABLED,TBSTYLE_BUTTON,0L,0),
(0,0,TBSTATE_ENABLED,TBSTYLE_SEP,0L,0)};
INITCOMMONCONTROLSEX icex;
icex.dwSize=3Dsizeof(INITCOMMONCONTROLSEX);
icex.dwICC=3DICC_BAR_CLASSES;
InitCommonControlsEx(&icex);
HWND hToolbar=3DCreateToolbarEx(hwnd,
WS_CHILD|WS_VISIBLE|WS_BORDER|TBSTYLE_TOOLTIPS,
ID_TOOLBAR,15,HINST_COMMCTRL,IDB_STD_SMALL_COLOR,
tbButtons,4,0,0,100,30,sizeof(TBBUTTON));
if(hToolbar=3D=3DNULL)
MessageBox(hwnd,"Could not create
toolbar","Error",MB_OK|MB_ICONSTOP);
}
break;
=20
Do I need to include some addittional headers?
=20
|
|
From: Carlos d. M. <cg...@wo...> - 2002-09-27 11:55:29
|
the matter is that some things are defined in both headers, like
color{BLACK, RED, etc}, so when the compiler finds them it either conside=
r
redefinition or doesn't know what to use. I don't know how you can solve
this including both files.
I propose delete the inclusion of conio and see what happens, or make a
tedious work: edit conio and everything that's defined in both, change it=
s
name, and then save it in another file (eg, from conio.h and conio.c to
myconio.h and myconio.c), and then substitute conio with myconio in the
includes.
Jorge Alzate escribi=F3:
> Vin=EDcius Andre Pinto escribi=F3::
>
> > Hi my name is Vinny.
> > I'm Beginner in Dev C++.
> > Who can help me??
> > I tried to use graphics funtions in a Dev C++ 5 using the
> > "winbgim.h" but i had a lot of problems
> > My Dev C++ show message like this:
> > 23 C:\Dev-Cpp\BGI\bgidemo0.cpp In file included from
> > C:\Dev-Cpp\BGI\bgidemo0.cpp
> > 59 C:\DEV-CPP\include\winbgim.h conflicting types for `enum
> > colors BLACK'
> > 25 C:\DEV-CPP\include\conio.h previous declaration
> > as `enum COLORS BLACK'
> > 59 C:\DEV-CPP\include\winbgim.h conflicting types for
> > `enum colors BLUE'
> > 26 C:\DEV-CPP\include\conio.h previous declaration
> > as `enum COLORS BLUE'
> > I was compiling a demo code from BGI functions
> > I need to use graphics functions in a console application, if
> > someone Know how can do this in a Dev C++, please send me
> > answer.
> >
> > I would like to know where can find a good documentation
> > about Dev C++.
> > Thanks
> > Vinny
> >
> Hmmm... I guess it is a wrong definition in either conio.h or winbgim.h=
,
> try open both and edit'em.
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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: Zodiaq <zo...@ac...> - 2002-09-27 08:56:25
|
Hello metalseb and all Dev-C++ users, Thursday, September 26, 2002, 12:12:13 PM, metalseb wrote as follows: >>Hi. Is there one place to go (on the internet) in order to get the full documentation on API´s which >>can be used by us DEV-CPP C++ programmers? m> You can search for the famous "win32.hlp" anywhere on the web. IMO this file is tooooo old and covers not enough aspects of win32... m> Or just order the MS SDK CDROM for 17 USD. A must buy I think. Platform SDK is a must for anyone that uses Win32 API and... you don't have pay for it - if you connect to net not by dial-up than just download these files (and you intall them whenever you want!): http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm these are documentation and examples for every aspect of windows programming and they are form August 2002 :-) Yeah, I know - 340MB... but it is worth the time... m> -- m> Seb -- regards, Zodiaq |
|
From: Rico H. <rhi...@we...> - 2002-09-27 06:12:28
|
I use the wxWindow devpak 2.2.9 for DEV-C++ The latest version of wxWindows ist 2.3.3 and there are a lot of new procedure I need. Can anybody build a new devpak for DEV-C++? Thanks! ______________________________________________________________________________ Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104 |
|
From: Jorge A. <jor...@ep...> - 2002-09-26 23:21:24
|
Vin=EDcius Andre Pinto escribi=F3:: > Hi my name is Vinny. > I'm Beginner in Dev C++. > Who can help me?? > I tried to use graphics funtions in a Dev C++ 5 using the=20 > "winbgim.h" but i had a lot of problems > My Dev C++ show message like this: > 23 C:\Dev-Cpp\BGI\bgidemo0.cpp In file included from=20 > C:\Dev-Cpp\BGI\bgidemo0.cpp > 59 C:\DEV-CPP\include\winbgim.h conflicting types for `enum=20 > colors BLACK' > 25 C:\DEV-CPP\include\conio.h previous declaration=20 > as `enum COLORS BLACK' > 59 C:\DEV-CPP\include\winbgim.h conflicting types for=20 > `enum colors BLUE' > 26 C:\DEV-CPP\include\conio.h previous declaration=20 > as `enum COLORS BLUE' > I was compiling a demo code from BGI functions=20 > I need to use graphics functions in a console application, if=20 > someone Know how can do this in a Dev C++, please send me=20 > answer.=20 > > I would like to know where can find a good documentation=20 > about Dev C++. > Thanks > Vinny > Hmmm... I guess it is a wrong definition in either conio.h or winbgim.h,=20 try open both and edit'em. |
|
From: <VP...@am...> - 2002-09-26 22:09:45
|
Hi my name is Vinny.
I'm Beginner in Dev C++.
Who can help me??
I tried to use graphics funtions in a Dev C++ 5 using the
"winbgim.h" but i had a lot of problems
My Dev C++ show message like this:
23 C:\Dev-Cpp\BGI\bgidemo0.cpp In file included from
C:\Dev-Cpp\BGI\bgidemo0.cpp
59 C:\DEV-CPP\include\winbgim.h conflicting types for `enum colors
BLACK'
25 C:\DEV-CPP\include\conio.h previous declaration as
`enum COLORS BLACK'
59 C:\DEV-CPP\include\winbgim.h conflicting types for `enum
colors BLUE'
26 C:\DEV-CPP\include\conio.h previous declaration as
`enum COLORS BLUE'
I was compiling a demo code from BGI functions
I need to use graphics functions in a console application, if
someone Know how can do this in a Dev C++, please send me answer.
I would like to know where can find a good documentation about Dev
C++.
Thanks
Vinny
|
|
From: Uten N. <Ute...@su...> - 2002-09-26 21:00:27
|
Download Bruce Eckel's books Thinking In C++ Vol1 and 2 from www.bruceeckel.com. They are as good as programing books can get..:o) mvh Staale At 19:53 25.09.02 -0400, Anthony V. Teelucksingh wrote: >I like the Mitchell Waite series, C++ Primer Plus, by Stephen Prata. > > >At 11:23 AM 9/25/2002, you wrote: > >>Hi, >> >>I recently developed an interest in programming and instinctively, I >>chose C++ as my medium. I am currently relying on a book I downloaded >>from the internet ( SAMS Teach Yourself C++ in 21 days). I plan on buying >>a book for C++. I just need some advise on what book to buy, considering >>the fact that I am new at C++ .what other material (books) can I get from >>the net that would compliment my inexperience. >> >>Kind Regards, >> >>Mpho Dondolo >>Support Analyst >>CSC Computer Sciences (South Africa) (Pty) Ltd >>Tel: +27 21 5030997 >>Fax: +27 21 5095619 >>Email:MDo...@ol... >>Email: MDo...@cs... > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >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: <we...@ha...> - 2002-09-26 20:38:36
|
Hi Guys,
I wrote a little program that must stay always listen in port 2282 and wait
for message. :)
I done it based in my knowledge of socket for linux and some documentation
for windows by ms.
My code is:
#include<stdio.h>
#include <winsock2.h>
#define MINHA_PORTA 2282
#define BACKLOG 5
int main(int argc, char *argv[]){
struct sockaddr_in local;
struct sockaddr_in remoto;
int MeuSocket, NovoSocket,tamanho, i, nbytes;
char buff[1024]="\0";
WORD wVersion;
WSADATA wStart;
fd_set master;
fd_set read_fds;
wVersion = MAKEWORD(2, 0);
if(WSAStartup(wVersion,&wStart) != 0) {
return;
}
MeuSocket = socket(AF_INET,SOCK_STREAM,0);
if ( MeuSocket < 0 ){
perror("Socket ");
exit(1);
}
for (i=0;i<8;i++) {
local.sin_zero[i]=0;
}
local.sin_family = AF_INET;
local.sin_port = htons(MINHA_PORTA);
local.sin_addr.s_addr = INADDR_ANY;
bind(MeuSocket,(struct sockaddr *)&local, sizeof(struct sockaddr));
listen(MeuSocket,BACKLOG);
tamanho = sizeof(struct sockaddr_in);
while(1){
if((NovoSocket = accept(MeuSocket,(struct sockaddr *)&remoto, &tamanho)) ==
1){
perror("Accept ");
exit(1);
}
FD_ZERO(&master);
FD_SET(NovoSocket,&master);
read_fds = master;
if(select(NovoSocket+1, &read_fds, NULL, NULL, NULL) == -1){
perror("select");
exit(1);
}
if (FD_ISSET(NovoSocket, &read_fds)){
nbytes = 0;
if ((nbytes = (recv(NovoSocket,buff,sizeof(buff),0))) == -1){
perror("read");
exit(1);
}
fprintf(stdout,"%s",buff);
}
}
close(NovoSocket);
return(0);
}
It compile and works, the porblem is that is only receive a packet by
connection.
For example, I can open 5 connections and send data, but only the first DATA
of each packet will be received.
If it was a program for linux, i know that i will be able to solve this
problem with a fork() + for().
But fork() isn't avaible to Windows. :/
I tryed only with for(), but in this case, i received all data from a
connection, but i can receive only one connection.
Someone know how to do it in windows ??
If u can help, i will be very heap. :)
Be free to modify the code.
Best Regards.
[ ]'s
|
|
From: Alessandro B. <ale...@ti...> - 2002-09-26 19:11:25
|
Hi all, I'm new in C++, and I have to compile with DEV-CPP 4.9.5.0 some source. I found some reference to class CMutex and CSingleLock, mybe with an associated header afxmt.h (I tell this because GCC does'not find this include, after comment it off, the compilator signal error in: CMutex * mutexbase = new CMutex(FALSE,NULL,NULL) ; //Mutex based sync Object CSingleLock * mutex = new CSingleLock(mutexbase,FALSE) ; //Mutex Handle to lock access How can I resolve this? Thank for any suggestion Alessandro |
|
From: Abhijit S. <mu...@gm...> - 2002-09-26 16:42:07
|
----- Original Message -----
From: Santiago
To: Dev...@li...
Sent: Wednesday, September 25, 2002 11:41 PM
Subject: [Dev-C++] classes help
Does anyone know how to link an implementation file (ie: Myclass.C) with a
client code (ie: usingClasses.C) so they can use my own Myclass.h header
file?
This is weird, I tried doing it in a G++ compiler on a solaris unix terminal
at school and it worked. However, the same exact code didn't work in
Dev-cpp. I know there are other options like console application or empty
project and I don't know how to use those.
Please let me know the correct way to link an implementation and a client
code so they can use my own defined class.
Thank you very much.
Santiago
--------------------------------
Greets, Santiago.
This is the general layout I use:
Interface file, only declarations: class.h
Implementation file, only definitions: class.cpp
Client file(s) that use the class: test.cpp
<class.h>
// Prevent re-entry
#ifndef __CLASS_H
#define __CLASS_H
#include <what_foo_needs.h>
class foo
{
public:
foo();
foo(int);
foo(int, int);
~foo();
protected:
int apples;
int oranges;
};
#endif // __CLASS_H
</class.h>
Note that the interface file has *no* implmentation whatsoever. It's
allegedly a good practise to keep them separate.
class.cpp will have the definitions, including the constructors and
destructors. It will include class.h.
The client files will #include class.h, and are then finally linked with
class.cpp (by adding class.cpp to the project/makefile/command-line.
You say that the code worked on Solaris, was it on GCC? If so, it should
work here also. Maybe the problem is syntactic (mismatched braces, missing
semicolon, etc.).
PS: Note that this is what I do. If you have any better ideas, let us know.
___________________________________________________________
Abhijit Shylanath
E-mail: mu...@gm... || ibr...@bi...
Web-site: http://mudeth.tripod.com/
|
|
From: Ioannis V. <no...@ho...> - 2002-09-26 14:57:58
|
> -----Original Message----- > From: Matthews [mailto:dem...@uw...] > Sent: Thursday, September 26, 2002 1:02 AM > To: no...@ho... > Subject: Re: [Dev-C++] clrscr() and c99 compatibility > > > So what exactly do I have to do with this "std=c99" switch? > Do I put it on > the compiler command line? Yes you will have to add -std=c99 as an additional command line parameter, if you want to use C99 for your .c files. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: <jar...@ig...> - 2002-09-26 14:13:50
|
Hi all, I am in need to build a package (for my students) with the recent version of Dev-C++ but including the gcc-3.2 compiler. (hopefully this will be the standard very soon) Furthermore I would like to pack some Libraries and Include- files with it. How are the self-installing Dev-C++ packages created? Does one need proprietary software for that or is there a free package? Thanks a lot, Helmut Jarausch Lehrstuhl fuer Numerische Mathematik Institute of Technology, RWTH Aachen D 52056 Aachen, Germany |
|
From: Matthews <dem...@uw...> - 2002-09-26 12:13:15
|
So what exactly do I have to do with this "std=c99" switch? Do I put it on
the compiler command line?
At 03:21 PM 25/09/2002 +0300, you wrote:
>> -----Original Message-----
>> From: dev...@li...
>> [mailto:dev...@li...] On Behalf
>> Of dev...@li...
>> Sent: Tuesday, September 24, 2002 10:00 PM
>> To: dev...@li...
>> Subject: Dev-cpp-users digest, Vol 1 #986 - 4 msgs
>>
>> Message: 3
>> Date: Tue, 24 Sep 2002 16:36:15 +0200
>> To: Dev...@li...
>> From: metalseb <met...@fr...>
>> Subject: Re: [Dev-C++] clrscr() and c99 compatibility
>> Reply-To: met...@fr...
>>
>> Good afternoon Matthew
>>
>> >Code snippet: This happened several times with me, so I'm
>> quite interested
>> >to find out the reason why.
>> >
>> >sample code:
>> >
>> >void log_in(void)
>> >{
>> > clrscr();
>> > printf("User login: ");
>> > char login[80];
>> > gets(login);
>> > int c;
>> > c = atoi(login);
>> > if (c != 0 || c != 1 || c != 2) {
>> > clrscr();
>> > printf("Invalid login.");
>> > for (;;) {
>> > if (kbhit()) break;
>> > }
>> > }
>> >}
>> >
>> >And it would give me a parsing error at "char login[80]" every time.
>> >What's up?
>>
>> I tried it on my DevCpp 4.9.4.1 package and it gave me no
>> compiling errors. And I really can't
>> see why this should gave you errors at compile time.
>>
>> Kind regards
>>
>> --
>> Seb
>
>
>
>I had problems with the mailing list for days so i missed the
>discussion. However clrscr(), kbhit() are not ANSI/ISO C and the
>definition of char login[80] in that place is only possible to
>C99/C++98. The default for MINGW is C90 though. You must use the std=c99
>switch to make it C99.
>
>
>
>Ioannis
>
>* Ioannis Vranos
>* Programming pages: http://www.noicys.cjb.net
>* Alternative URL: http://run.to/noicys
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>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: Carlos d. M. <cg...@wo...> - 2002-09-26 10:36:13
|
system("PAUSE") always works, but
cin.ignore() almost always makes an application flash in the screen, and
must be ran from comand line.
Why?(what do I for such a thing?)
|
|
From: metalseb <met...@fr...> - 2002-09-26 10:10:21
|
>Hi. Is there one place to go (on the internet) in order to get the full documentation on API´s which >can be used by us DEV-CPP C++ programmers? You can search for the famous "win32.hlp" anywhere on the web. Or just order the MS SDK CDROM for 17 USD. A must buy I think. -- Seb |
|
From: <Ext...@no...> - 2002-09-26 08:38:55
|
Hi. Is there one place to go (on the internet) in order to get the full = documentation on API=B4s which can be used by us DEV-CPP C++ = programmers? BR Kurt. > -----Original Message----- > From: ext dev...@li... > [mailto:dev...@li...] > Sent: 25 September, 2002 22:00 > To: dev...@li... > Subject: Dev-cpp-users digest, Vol 1 #989 - 3 msgs >=20 >=20 > Send Dev-cpp-users mailing list submissions to > dev...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... >=20 > You can reach the person managing the list at > dev...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." >=20 >=20 > Today's Topics: >=20 > 1. Re: compiler support for precompiled headers (Per Westermark) > 2. Re: WxWINDOW (Per Westermark) > 3. classes help (Santiago) >=20 > --__--__-- >=20 > Message: 1 > Date: Wed, 25 Sep 2002 18:05:12 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: RICARDO HENRIQUE FOLADOR <OP...@si...> > cc: DevC++ help <dev...@li...> > Subject: Re: [Dev-C++] compiler support for precompiled headers >=20 > Precompiled headers simply means that the compiler will only=20 > parse the *.h > files once, and then remember all declarations in them. >=20 > When the project contains multiple source files, the compiler=20 > then doesn't > have to scan these header files once for each source file.=20 > Also, if you > perform changes to a source file - excluding any changes to=20 > include files > or include file order - the compiler may resuse the precompiled header > information when it compiles the changed source file the next time. >=20 > VC, Borland, Watcom and some more compilers support it. Most other > compilers don't. But, preferably, your source files should=20 > not assume any > assumption about support for precompiled headers or not.=20 > Start all your > source files with the following snipped, and you should be=20 > find. If your > include files contains template code you might have to add a: >=20 > #ifdef __GNUC__ > #pragma implementation "filename" > #endif >=20 > before you include the header file, to let gcc know that it=20 > should only > place the code expansion in one object file, instead of generating new > code whenever some source file is including the header file.=20 >=20 > #include "wx/wxprec.h" >=20 > #ifdef __BORLANDC__ > #pragma hdrstop > #endif >=20 > #ifndef WX_PRECOMP > #include "wx/wx.h" > #endif >=20 > /Per W >=20 >=20 > On Wed, 25 Sep 2002, RICARDO HENRIQUE FOLADOR wrote: >=20 >=20 > [NON-Text Body part not included] >=20 >=20 >=20 > --__--__-- >=20 > Message: 2 > Date: Wed, 25 Sep 2002 18:11:43 +0200 (CEST) > From: Per Westermark <pw...@ia...> > To: Louis Godio <lg...@ya...> > cc: DEVCppUsers <dev...@li...> > Subject: Re: [Dev-C++] WxWINDOW >=20 > Disadvantages: > Less documentation and books > Not as professional code generators/resource editors > Smaller code base of available 3rd party widgets >=20 > Advantages: > No M$ licence money > Works on Non-Win32 platforms (X,OS/2,Mac,Win3...) > Simpler code than WIN32 API > If you find a bug, YOU may fix it the same day :-) >=20 > /Per W >=20 >=20 > On Wed, 25 Sep 2002, Louis Godio wrote: >=20 > > Hi List, > >=20 > > I've heard about WxWINDOW. Could anyone give a say a few=20 > basic things > > about WxWINDOW...What is it? What is it used for ? Anvantages / > > Disadvantages to MFC or WIN32 ?=20 > >=20 > > __________________________________________________ > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! > > http://sbc.yahoo.com > >=20 > >=20 > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > 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 > >=20 >=20 >=20 >=20 > --__--__-- >=20 > Message: 3 > From: "Santiago" <sa...@ho...> > To: <Dev...@li...> > Date: Wed, 25 Sep 2002 14:11:14 -0400 > Subject: [Dev-C++] classes help >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_0043_01C2649D.6851F580 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > Does anyone know how to link an implementation file (ie:=20 > Myclass.C) with =3D > a client code (ie: usingClasses.C) so they can use my own Myclass.h = =3D > header file? > This is weird, I tried doing it in a G++ compiler on a solaris unix = =3D > terminal at school and it worked. However, the same exact=20 > code didn't =3D > work in Dev-cpp. I know there are other options like console=20 > application =3D > or empty project and I don't know how to use those. > Please let me know the correct way to link an implementation and a =3D > client code so they can use my own defined class. >=20 > Thank you very much. >=20 > Santiago >=20 > ------=3D_NextPart_000_0043_01C2649D.6851F580 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2600.0" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#ffffff> > <DIV><FONT face=3D3DArial size=3D3D2> > <DIV><FONT face=3D3DArial size=3D3D2>Does anyone know how to=20 > link an =3D > implementation=3D20 > file (ie: Myclass.C) with a client code (ie: usingClasses.C)=20 > so they can =3D > use my=3D20 > own Myclass.h header file?</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2>This is weird, I tried doing=20 > it in a =3D > G++ compiler=3D20 > on a solaris unix terminal at school and it worked. =3D > However, the same=3D20 > exact code didn't work in Dev-cpp. I know there are other options=3D20 > like console application or empty project and I don't=20 > know how to =3D > use=3D20 > those.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Please let me know the=20 > correct way to =3D > link an=3D20 > implementation and a client code so they can use my own defined=3D20 > class.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>Thank you very much.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial =3D > size=3D3D2>Santiago</FONT></DIV></FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_0043_01C2649D.6851F580-- >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > 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 >=20 >=20 > End of Dev-cpp-users Digest >=20 |
|
From: <qa...@ho...> - 2002-09-26 00:32:09
|
Hi Ray.
If you put
system("PAUSE");
at the end of your program the DOS-window will remain open after your=
program has terminated, until you press any key.
/J=F6rgen
*********** REPLY SEPARATOR ***********
On 2002-09-25 at 20:30 Kendall, Ray wrote:
Help! I am a brand new CS student, and am just learning C++. When I run=
my compiled program, a DOS window opens, and my program seems to work=
fine. Once I enter my last input, the program finishes and the DOS window=
closes. I can't see the output from my program.
I have been able to open a DOS window and run the program from there, but=
there has to be a better way! Is there any way I can
"compile and run" in one step?
Thanks very much,
Ray
|
|
From: Kendall, R. <RKe...@qc...> - 2002-09-26 00:21:35
|
Help! I am a brand new CS student, and am just learning C++. When I run my compiled program, a DOS window opens, and my program seems to work fine. Once I enter my last input, the program finishes and the DOS window closes. I can't see the output from my program. I have been able to open a DOS window and run the program from there, but there has to be a better way! Is there any way I can "compile and run" in one step? Thanks very much, Ray |
|
From: Anthony V. T. <tee...@ya...> - 2002-09-25 23:53:21
|
I like the Mitchell Waite series, C++ Primer Plus, by Stephen Prata. At 11:23 AM 9/25/2002, you wrote: >Hi, > >I recently developed an interest in programming and instinctively, I chose >C++ as my medium. I am currently relying on a book I downloaded from the >internet ( SAMS Teach Yourself C++ in 21 days). I plan on buying a book >for C++. I just need some advise on what book to buy, considering the fact >that I am new at C++ .what other material (books) can I get from the >net that would compliment my inexperience. > >Kind Regards, > >Mpho Dondolo >Support Analyst >CSC Computer Sciences (South Africa) (Pty) Ltd >Tel: +27 21 5030997 >Fax: +27 21 5095619 >Email:MDo...@ol... >Email: MDo...@cs... > |
|
From: Santiago <sa...@ho...> - 2002-09-25 18:11:12
|
Does anyone know how to link an implementation file (ie: Myclass.C) with = a client code (ie: usingClasses.C) so they can use my own Myclass.h = header file? This is weird, I tried doing it in a G++ compiler on a solaris unix = terminal at school and it worked. However, the same exact code didn't = work in Dev-cpp. I know there are other options like console application = or empty project and I don't know how to use those. Please let me know the correct way to link an implementation and a = client code so they can use my own defined class. Thank you very much. Santiago |
|
From: Per W. <pw...@ia...> - 2002-09-25 16:12:02
|
Disadvantages: Less documentation and books Not as professional code generators/resource editors Smaller code base of available 3rd party widgets Advantages: No M$ licence money Works on Non-Win32 platforms (X,OS/2,Mac,Win3...) Simpler code than WIN32 API If you find a bug, YOU may fix it the same day :-) /Per W On Wed, 25 Sep 2002, Louis Godio wrote: > Hi List, > > I've heard about WxWINDOW. Could anyone give a say a few basic things > about WxWINDOW...What is it? What is it used for ? Anvantages / > Disadvantages to MFC or WIN32 ? > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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 > |