dev-cpp-users Mailing List for Dev-C++ (Page 197)
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: Eric <eri...@cl...> - 2004-07-24 05:36:24
|
INSTALL devcpp49810.exe
MIND YOU i DID IT ON WNDOWS 98, NOT SURE IF THAT DID IT
----- Original Message -----
From: "Michal Molhanec" <mi...@mo...>
To: "rekisum" <re...@we...>
Cc: <dev...@li...>
Sent: Saturday, July 24, 2004 12:25 AM
Subject: Re: [Dev-C++] update from 4.9.8.7
Hello,
I'm not sure if it is exactly what you want, but Dev-C++ update you can
download directly from Bloodshed web:
http://bloodshed.net/dev/devcpp49810.exe
Regards,
Michal
rekisum wrote:
> Hello,
>
> I saw discussions about this, but no solution.
>
> When I try to Update my DevCpp Version 4.9.8.7 the new
> WebUpdate could not connect to the server.
> I'm sitting behind a proxy and I don't now how to tell
> WebUpdate the IP address and port. The settings
> im my IE are correct by the way.
> I don't want to lose all my settings and add ons so I
> don't want to uninstall reinstall everything.
> Any suggestions?
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.726 / Virus Database: 481 - Release Date: 22-Jul-04
|
|
From: Michal M. <mi...@mo...> - 2004-07-23 12:24:58
|
Hello, I'm not sure if it is exactly what you want, but Dev-C++ update you can download directly from Bloodshed web: http://bloodshed.net/dev/devcpp49810.exe Regards, Michal rekisum wrote: > Hello, > > I saw discussions about this, but no solution. > > When I try to Update my DevCpp Version 4.9.8.7 the new > WebUpdate could not connect to the server. > I'm sitting behind a proxy and I don't now how to tell > WebUpdate the IP address and port. The settings > im my IE are correct by the way. > I don't want to lose all my settings and add ons so I > don't want to uninstall reinstall everything. > Any suggestions? |
|
From: rekisum <re...@we...> - 2004-07-23 11:53:45
|
Hello, I saw discussions about this, but no solution. When I try to Update my DevCpp Version 4.9.8.7 the new WebUpdate could not connect to the server. I'm sitting behind a proxy and I don't now how to tell WebUpdate the IP address and port. The settings im my IE are correct by the way. I don't want to lose all my settings and add ons so I don't want to uninstall reinstall everything. Any suggestions? Regards, Rekisum |
|
From: Dane E. <DE...@pa...> - 2004-07-22 19:36:31
|
Hi all,
=20
Thank you in advance for any help you can offer.
Im sure this createMember function is inferior, but I'm using
getline(cin, myVar); function in a series for inputing data. The first
time through my loop everything is fine.
In the next iteration the 'getline' statement skips over the first input
(memNumber) and goes straight to the proceeding one (fName). I think Im
missing something but I cant track down what it is or how to fix this.
Here is a block of my code:
=20
void createMember(member& newMember)
{
cout << "\nPlease begin Member entry." << endl;
cout << " Member Number: ";
getline(cin, newMember.memNumber);//cin >> newMember.memNumber;
cout << " Member First Name: ";
getline(cin, newMember.fName); =20
cout << " Member Last Name: ";
getline(cin, newMember.lName); =20
cout << " Member Address: ";
getline(cin, newMember.address); =20
cout << " Member City: ";
getline(cin, newMember.city);=20
cout << " Member State: ";
getline(cin, newMember.state); =20
cout << " Member zip code: ";
getline(cin, newMember.zipCode); =20
cout << "\n";
=20
ofstream outData;
outData.open("guild.txt",ios::app); =20
if (outData)
{
outData << newMember.memNumber << "," << newMember.fName << ","
<< newMember.lName << "," << newMember.address << "," << newMember.city
<< "," << newMember.state << "," << newMember.zipCode << endl;
outData.clear();
}
else
{
cout << "An error occured while opening the file.\n";
}
}
Best regards,
Dane
|
|
From: Scott S. <age...@co...> - 2004-07-22 13:57:25
|
nisha poovathinkal wrote:
> Dear sir,
>
> The following c++ program I have executed using Dev -C++ compiler,but
> I couldn't able to see the out put,as TURBO c complilers generates.
> How I can see the output using this compiler.Please do help me.
>
>
> #include <iostream.h> //Should be #Include <iostream>
> #include<conio.h> //Put 'using namespace std;' after headers are included
> class example
> {
> int a;
> char b,c;
> public:
> example()
> {
> a=10;
> b='n';
> c='i';
> }
> example(char x)
> {
> b=x;
> a=12;
> c='o';
> }
> example(int r ,char y,char z)
> {
> a=r;
> b=y;
> c=z;
> }
> void put(void)
> {
> cout <<"a="<<a<<"\n";
> cout<<"b="<<b<<"\n";
> cout<<"c="<<c<<"\n";
> }
> };
> void main(void)
> {
> example o,o1('q'),o2(1,'r','s');
> //clrscr();
> o.put();
> o1.put();
> o2.put();
> //getch(); //Use cin.get(); here
> }
>
> Regards,
> Nisha.P
>
> *Yahoo! India Careers*
> <http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.naukri.com/>*:*
> Over 65,000 jobs online
> <http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.naukri.com/>.
>
|
|
From: <nis...@ya...> - 2004-07-22 10:16:04
|
Dear all,
The problem which I faced got solved.In project options "do not create console" was cheked.I unchecked that option and the console screen is poping after execution of the code.
Thanks and Regards,
Nisha
nisha poovathinkal <nis...@ya...> wrote: Date: Thu, 22 Jul 2004 06:40:20 +0100 (BST)
From: nisha poovathinkal
Subject: help
To: dev...@li...
Dear sir,
The following c++ program I have executed using Dev -C++ compiler,but I couldn't able to see the out put,as TURBO c complilers generates.
How I can see the output using this compiler.Please do help me.
#include <iostream.h>
#include<conio.h>
class example
{
int a;
char b,c;
public:
example()
{
a=10;
b='n';
c='i';
}
example(char x)
{
b=x;
a=12;
c='o';
}
example(int r ,char y,char z)
{
a=r;
b=y;
c=z;
}
void put(void)
{
cout <<"a="<<a<<"\n";
cout<<"b="<<b<<"\n";
cout<<"c="<<c<<"\n";
}
};
void main(void)
{
example o,o1('q'),o2(1,'r','s');
//clrscr();
o.put();
o1.put();
o2.put();
//getch();
}
Regards,
Nisha.P
Yahoo! India Careers: Over 65,000 jobs online.
Yahoo! India Careers: Over 65,000 jobsonline. |
|
From: Siva C. <siv...@ya...> - 2004-07-22 09:29:04
|
Hello, --- "Todd G. Gardner" <pi...@ea...> wrote: > 1) What is different about an empty project and an > auto generated wxWidgets project? The wxWidgets project template would have the right compilers and linker options set for you. Whereas in a new project, you will have to set them yourselves. > 2) How do I start an empty wxWidgets project from > scratch in the dev-cpp IDE? Go to project->options and copy paste the compiler and linker options from the template project. Then you have a new project which can be succesfully compiled. Note:: This is how I understand the working of Dev-Cpp and its templates. You might get a better reply than this. Hope this helps, Siva Chandra __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail |
|
From: Todd G. G. <pi...@ea...> - 2004-07-22 09:20:51
|
Hello everyone, I would like to ask the two following questions that I'm guessing will just show my ignorance. 1) What is different about an empty project and an auto generated wxWidgets project? 2) How do I start an empty wxWidgets project from scratch in the dev-cpp IDE? Pardon this ignorant question. I am not sure the proper list is wx-...@li... because this question seems to partially deal directly with dev-cpp. I am using the IDE dev-cpp version 4.9.8.0 and I am able to run the auto generated wxWidgets hello world from the IDE. If I paste the hello world code from the web site http://wxWidgets.org in place of the auto generated hello world I am able to compile and run it. If however, I start from an empty project and compile and run the same code I received the following compiler output. [Begin error output] 15 C:\Dev-Cpp\include\wx\wx.h In file included from C:/Dev-Cpp/include/wx/wx.h 6 E:\dev\cpp\wxWidgets\test projects\HelloWorld4.cpp from HelloWorld4.cpp 179 C:\Dev-Cpp\include\wx\defs.h redeclaration of C++ built-in type `bool' ... [End error output] Thank you, Todd Just in case this makes more sense to you, I have attached the following. [Begin compiler output] Compiler: Default compiler Building Makefile: "E:\dev\cpp\wxWidgets\test projects\Makefile.win" Executing make... make.exe -f "E:\dev\cpp\wxWidgets\test projects\Makefile.win" all g++.exe -c HelloWorld4.cpp -o HelloWorld4.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include" In file included from C:/Dev-Cpp/include/wx/wx.h:15, from HelloWorld4.cpp:6: C:/Dev-Cpp/include/wx/defs.h:179: redeclaration of C++ built-in type `bool' In file included from C:/Dev-Cpp/include/wx/memory.h:20, from C:/Dev-Cpp/include/wx/object.h:25, from C:/Dev-Cpp/include/wx/wx.h:16, from HelloWorld4.cpp:6:C:/Dev-Cpp/include/wx/string.h:160:4: #error "Please define string case-insensitive compare for your OS/compiler" make.exe: *** [HelloWorld4.o] Error 1 Execution terminated[end compiler output] . |
|
From: <nis...@ya...> - 2004-07-22 06:01:42
|
Dear sir,
The following c++ program I have executed using Dev -C++ compiler,but I couldn't able to see the out put,as TURBO c complilers generates.
How I can see the output using this compiler.Please do help me.
#include <iostream.h>
#include<conio.h>
class example
{
int a;
char b,c;
public:
example()
{
a=10;
b='n';
c='i';
}
example(char x)
{
b=x;
a=12;
c='o';
}
example(int r ,char y,char z)
{
a=r;
b=y;
c=z;
}
void put(void)
{
cout <<"a="<<a<<"\n";
cout<<"b="<<b<<"\n";
cout<<"c="<<c<<"\n";
}
};
void main(void)
{
example o,o1('q'),o2(1,'r','s');
//clrscr();
o.put();
o1.put();
o2.put();
//getch();
}
Regards,
Nisha.P
Yahoo! India Careers: Over 65,000 jobsonline. |
|
From: Roger F. <ra...@ha...> - 2004-07-22 03:11:28
|
Aloha from Honoulu,
Mahalo means Thank You in Hawaiian and my thanks go first to Reid
Thompson who suggested that I type the code in directly istead of using
the paste I copied from the Help page.
#include <stdlib.h>
int main()
{
system("PAUSE");
return 0;
}
The first clue was when I hit the first " after system( and it was red.
And my thanks also to all who responded, I will get around to
downloading the latest version ASAP, but it's just wonderful to be able
to continue my lesson plan without pulling hair over non-printing ASCII
characters.
Once Again;
Mahalo,
Roger Furer
|
|
From: Per W. <pw...@ia...> - 2004-07-22 00:06:15
|
Note that it is MinGW that is the Win32 port of the compiler. Dev-C++ is just a front-end. /Per W On Wed, 21 Jul 2004, Scott Simontis wrote: > Fill out a bug report at sourceforge.net. > Jeremy Ardley wrote: > > > There is a problem with the CMYK macros in wingdi.h as supplied with > > DevC++ 4.9.8.10 > > > > The DevC++ version defines a different byte order to Microsoft > > > > // DEV C++ Version > > > > #define GetCValue(cmyk) ((BYTE)(cmyk)) > > #define GetMValue(cmyk) ((BYTE)((cmyk)>> 8)) > > #define GetYValue(cmyk) ((BYTE)((cmyk)>>16)) > > #define GetKValue(cmyk) ((BYTE)((cmyk)>>24)) > > #define CMYK(c,m,y,k) > > ((COLORREF)((((BYTE)(c)|((WORD)((BYTE)(m))<<8))|(((DWORD)(BYTE)(y))<<16))|(((DWORD)(BYTE)(k))<<24))) > > > > > > // Microsoft VC++ 6.0 version > > > > /* Macros to retrieve CMYK values from a COLORREF */ > > #define GetKValue(cmyk) ((BYTE)(cmyk)) > > #define GetYValue(cmyk) ((BYTE)((cmyk)>> 8)) > > #define GetMValue(cmyk) ((BYTE)((cmyk)>>16)) > > #define GetCValue(cmyk) ((BYTE)((cmyk)>>24)) > > #define CMYK(c,m,y,k) > > ((COLORREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24))) > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > 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 > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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: Scott S. <age...@co...> - 2004-07-21 21:17:58
|
Fill out a bug report at sourceforge.net. Jeremy Ardley wrote: > There is a problem with the CMYK macros in wingdi.h as supplied with > DevC++ 4.9.8.10 > > The DevC++ version defines a different byte order to Microsoft > > // DEV C++ Version > > #define GetCValue(cmyk) ((BYTE)(cmyk)) > #define GetMValue(cmyk) ((BYTE)((cmyk)>> 8)) > #define GetYValue(cmyk) ((BYTE)((cmyk)>>16)) > #define GetKValue(cmyk) ((BYTE)((cmyk)>>24)) > #define CMYK(c,m,y,k) > ((COLORREF)((((BYTE)(c)|((WORD)((BYTE)(m))<<8))|(((DWORD)(BYTE)(y))<<16))|(((DWORD)(BYTE)(k))<<24))) > > > // Microsoft VC++ 6.0 version > > /* Macros to retrieve CMYK values from a COLORREF */ > #define GetKValue(cmyk) ((BYTE)(cmyk)) > #define GetYValue(cmyk) ((BYTE)((cmyk)>> 8)) > #define GetMValue(cmyk) ((BYTE)((cmyk)>>16)) > #define GetCValue(cmyk) ((BYTE)((cmyk)>>24)) > #define CMYK(c,m,y,k) > ((COLORREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24))) > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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: Jeremy A. <je...@ar...> - 2004-07-21 20:52:02
|
There is a problem with the CMYK macros in wingdi.h as supplied with DevC++ 4.9.8.10 The DevC++ version defines a different byte order to Microsoft // DEV C++ Version #define GetCValue(cmyk) ((BYTE)(cmyk)) #define GetMValue(cmyk) ((BYTE)((cmyk)>> 8)) #define GetYValue(cmyk) ((BYTE)((cmyk)>>16)) #define GetKValue(cmyk) ((BYTE)((cmyk)>>24)) #define CMYK(c,m,y,k) ((COLORREF)((((BYTE)(c)|((WORD)((BYTE)(m))<<8))|(((DWORD)(BYTE)(y))<<16))|(((DWORD)(BYTE)(k))<<24))) // Microsoft VC++ 6.0 version /* Macros to retrieve CMYK values from a COLORREF */ #define GetKValue(cmyk) ((BYTE)(cmyk)) #define GetYValue(cmyk) ((BYTE)((cmyk)>> 8)) #define GetMValue(cmyk) ((BYTE)((cmyk)>>16)) #define GetCValue(cmyk) ((BYTE)((cmyk)>>24)) #define CMYK(c,m,y,k) ((COLORREF)((((BYTE)(k)|((WORD)((BYTE)(y))<<8))|(((DWORD)(BYTE)(m))<<16))|(((DWORD)(BYTE)(c))<<24))) |
|
From: Per W. <pw...@ia...> - 2004-07-21 20:25:15
|
I think you have picked the wrong line for the error. You have the error
in:
if(contin =3D=3D '')
You might specify an empty string with "" but you may not specify an empty
character with '' - a character is always a character - just as a number
always have at least one digit. There are actually multi-character
constants too, i.e. '\r\n' is a dual-character constant. However, these
kind of character constants are a bit special and normally requires
knowledge about byte-order of the machine to be used safely.
You might write one of:
if (contin =3D=3D '\0')
or just:
if (contin =3D=3D 0)
to test for a "null" character.
/Per W
On Wed, 21 Jul 2004, Noorez Kassam wrote:
> #include <iostream>
> #include <conio.h>
> using namespace std;
>
> namespace myf
> {
> void wait(char message[], char contin)
> {
> if(contin =3D=3D '') //make sure that contin is not blank
> {
> //if it is...
> cout << "Press any key to continue...";
> while( !kbhit() )
> {
> }
> return;
> }
> cout << message << endl; //do what is told
> char get;
> while(1) //loop till we get the correct value
> {
> get =3D getch(); //'empty character constant' error
> if(get =3D=3D contin)
> {
> return;
> }
> }
> }//end wait()
> }//namespace myf
>
>
> I am trying to put this function into a library of other functions of my =
own
> but I'm getting a compile error on the marked line.
>
> _________________________________________________________________
> Take charge with a pop-up guard built on patented Microsoft=AE SmartScree=
n
> Technology
> http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines
> Start enjoying all the benefits of MSN=AE Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick
> _______________________________________________
> 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: Noorez K. <coo...@ho...> - 2004-07-21 17:03:53
|
#include <iostream>
#include <conio.h>
using namespace std;
namespace myf
{
void wait(char message[], char contin)
{
if(contin == '') //make sure that contin is not blank
{
//if it is...
cout << "Press any key to continue...";
while( !kbhit() )
{
}
return;
}
cout << message << endl; //do what is told
char get;
while(1) //loop till we get the correct value
{
get = getch(); //'empty character constant' error
if(get == contin)
{
return;
}
}
}//end wait()
}//namespace myf
I am trying to put this function into a library of other functions of my own
but I'm getting a compile error on the marked line.
_________________________________________________________________
Take charge with a pop-up guard built on patented Microsoft® SmartScreen
Technology
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.
|
|
From: Scott S. <age...@co...> - 2004-07-21 15:44:16
|
Roger Allan Furer wrote: > Aloha from Honolulu, > I just subscribed to the mailing list. I hope this is the right place > to ask questions. > I don't know which version came on the CD because as I proceeded with > the installation I was asked if I wanted the latest version and of > course I clicked "Yes". The story so far: I purchased "Sams Teach > Yourself C++ in 24 hours" by Jesse Liberty. The book included a CDROM > with all the source code for the exercises and the Dev-C++ IDE (as > well as a command line compiler and a debugger I haven't gotten to > yet). The "About" under the Help menu lists my current version as > "Version 4 Build on: 9/21/00 11:22:34PM". Clicking on "Check for > Updated Version" returns a notice that such exists. But as your web > page warns of earlier programs not compiling under this new version, I > think I'll wait. I have no problem with compiles in the newer version. Consider downloading 4.9.8.0 from the website, www.bloodshed.net. Then, upgrade to 4.9.8.10. Version 4 isn't supported anymore. In fact, the compiler Dev-C++ uses, MinGW, is more reliable than Microsoft's compiler for me! > My immediate need is covered in the FAQ under the Help menu. The > question #2. "When executing my dos program, it closes automatically. > How I can change this ?" gives a little snippet of code: > > #include <stdlib.h> > int main() > { > system("PAUSE"); > return 0; > } A better solution is to include <iostream> and use cin.get(). It is more portable, and would look like this: #include <iostream> using namespace std; int main() { cin.get(); return 0; } > > When I tried to include this in my program I got the following error > mesage in the compiler window: > "c:\dev-c_~1\examples\hello\pause.cpp:6: parse error before character > 0223" > > And the color of "PAUSE" (including the quotes) is red in the help > file, but shows up black in my source. You can change the colors used by going to Tools->Editor Options->Syntax > > I tried unchecking the "Create for win32" in Compiler Options and also > tried working within a project and unchecking the "Do not create a > console" in Project Options. Neither had any effect--in fact they were > not checked to begin with. In earlier lessons I was able to use this > little bit: > > #include <iostream> > int main() > { > char quit; > while (quit != 'q') > std::cout<<"Press q to quit " << std::endl; > std::cin>>quit; > return 0; > } > to keep the DOS window open. But this isn't possible in some cases (as > I discovered). > > I hope you can help me with this problem and let me know via email. Or > tell me where to look if this gets posted somewhere. In general, upgrading to 4.9.8.0 and then getting the 4.9.8.10 update is probably the best. > > Mahalo (Thank You), > Roger Furer > ra...@ha... > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > 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: Dave M. <dav...@im...> - 2004-07-21 09:25:15
|
> Has anyone managed to successfully use GradientFill() from Win32 = gdi32.dll in=20 > any DevC++/gcc programs? It doesn"t appear to be in the import library = and=20 My mistake, never noticed it was in msimg32.dll. Sorted (obviously) by = just adding a -lmsimg32 parameter to the linker options. |
|
From: Roger A. F. <ra...@ha...> - 2004-07-21 09:19:47
|
Aloha from Honolulu,
I just subscribed to the mailing list. I hope this is the right place to
ask questions.
I don't know which version came on the CD because as I proceeded with
the installation I was asked if I wanted the latest version and of
course I clicked "Yes". The story so far: I purchased "Sams Teach
Yourself C++ in 24 hours" by Jesse Liberty. The book included a CDROM
with all the source code for the exercises and the Dev-C++ IDE (as well
as a command line compiler and a debugger I haven't gotten to yet). The
"About" under the Help menu lists my current version as "Version 4 Build
on: 9/21/00 11:22:34PM". Clicking on "Check for Updated Version" returns
a notice that such exists. But as your web page warns of earlier
programs not compiling under this new version, I think I'll wait.
My immediate need is covered in the FAQ under the Help menu. The
question #2. "When executing my dos program, it closes automatically.
How I can change this ?" gives a little snippet of code:
#include <stdlib.h>
int main()
{
system("PAUSE");
return 0;
}
When I tried to include this in my program I got the following error
mesage in the compiler window:
"c:\dev-c_~1\examples\hello\pause.cpp:6: parse error before character 0223"
And the color of "PAUSE" (including the quotes) is red in the help file,
but shows up black in my source.
I tried unchecking the "Create for win32" in Compiler Options and also
tried working within a project and unchecking the "Do not create a
console" in Project Options. Neither had any effect--in fact they were
not checked to begin with. In earlier lessons I was able to use this
little bit:
#include <iostream>
int main()
{
char quit;
while (quit != 'q')
std::cout<<"Press q to quit " << std::endl;
std::cin>>quit;
return 0;
}
to keep the DOS window open. But this isn't possible in some cases (as I
discovered).
I hope you can help me with this problem and let me know via email. Or
tell me where to look if this gets posted somewhere.
Mahalo (Thank You),
Roger Furer
ra...@ha...
|
|
From: Dave M. <dav...@im...> - 2004-07-21 08:04:28
|
Hi, > I am working on a text based game, and want to have the ability to = have=20 > multiple save files. The save files will be plain .txt files with the=20 > info inside. Is there a Win32 function that will let me see what files = > are in the executable"s directory? The functions you're probably looking for are: FindFirstFile() FindNextFile() FindClose() |
|
From: Dave M. <dav...@im...> - 2004-07-21 07:58:31
|
(Sorry for the double post, but I was emailling from outside work = yesterday and managed to put the wrong address into my mail client.) Hello, =20 Has anyone managed to successfully use GradientFill() from Win32 = gdi32.dll in=20 any DevC++/gcc programs? It doesn"t appear to be in the import library = and=20 pexports crashes generating a def file for gdi32.dll. I don"t want to = have to=20 fill in the stdcall offsets by hand, so does anyone know of any other = tools I=20 can use (either for creating a def file, or perhaps for converting the = MS SDK=20 import library to one which works with DevC++)? =20 Thanks. |
|
From: Scott S. <age...@co...> - 2004-07-21 01:30:54
|
I am working on a text based game, and want to have the ability to have multiple save files. The save files will be plain .txt files with the info inside. Is there a Win32 function that will let me see what files are in the executable's directory? |
|
From: Dave M. <dav...@im...> - 2004-07-20 22:26:24
|
Hello, Has anyone managed to successfully use GradientFill() from Win32 gdi32.dll in any DevC++/gcc programs? It doesn't appear to be in the import library and pexports crashes generating a def file for gdi32.dll. I don't want to have to fill in the stdcall offsets by hand, so does anyone know of any other tools I can use (either for creating a def file, or perhaps for converting the MS SDK import library to one which works with DevC++)? Thanks. |
|
From: Tony B. <tbo...@ly...> - 2004-07-20 18:25:51
|
Thanks! that's exactly what I needed! I'm going for SDL, it looks more "polished" than Allegro and it has good references (like Civilization) - you can correct me if i'm wrong :-) T ----- Original Message ----- From: Scott Simontis <age...@co...> Date: Tue, 20 Jul 2004 11:48:13 -0400 To: Tony Boloney <tbo...@ly...>,Dev-C++ User Group <dev...@li...> Subject: Re: [Dev-C++] pthreads, cin.get & key codes > You could try to use a cross-platform input library. Maybe Allegro or > SDL would work. > Tony Boloney wrote: > > >Hi there, > > > >I am programming a simple win32 console app which I would like to keep portable to other platforms. > >What is a good way to fetch interactive keyboard input? I mean input without having to press ENTER each time? > > > >I was thinking about doing this with threads, e.g. a KeypressEventDispatcher thread and a KeyPressEventHandler thread using the pthreads lib. Do you think this is a good idea? How are those threads layered with respect to the native Windows OS threads? > > > >Suppose my KeyboardEventDispatcher thread listens for keyboard input with cin.get(my_char) and the console app window loses focus, will this thread keep on running in the background? Will it keep on catching keypress events? > > > >And a last question: is there a header file with symbolic expressions for key codes? in windows there's "virtual key codes" (i think it was in windows.h), is there some standard equivalent for that? (I mean for non-ASCII characters) > > > >Thanks! > > > > > > > > > -- _______________________________________________ Find what you are looking for with the Lycos Yellow Pages http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10 |
|
From: Ricardo_Lopez <ri...@un...> - 2004-07-20 17:22:20
|
when I try to make a video programming with allegro on a tft-lcd screen the plot on the screen is refreshed and this is lost... is there some way to avoid this bad effect on these screens and to keep all the plot during all the programme running ??. any help is appreciated. Ricardo. |
|
From: Scott S. <age...@co...> - 2004-07-20 15:47:57
|
You could try to use a cross-platform input library. Maybe Allegro or SDL would work. Tony Boloney wrote: >Hi there, > >I am programming a simple win32 console app which I would like to keep portable to other platforms. >What is a good way to fetch interactive keyboard input? I mean input without having to press ENTER each time? > >I was thinking about doing this with threads, e.g. a KeypressEventDispatcher thread and a KeyPressEventHandler thread using the pthreads lib. Do you think this is a good idea? How are those threads layered with respect to the native Windows OS threads? > >Suppose my KeyboardEventDispatcher thread listens for keyboard input with cin.get(my_char) and the console app window loses focus, will this thread keep on running in the background? Will it keep on catching keypress events? > >And a last question: is there a header file with symbolic expressions for key codes? in windows there's "virtual key codes" (i think it was in windows.h), is there some standard equivalent for that? (I mean for non-ASCII characters) > >Thanks! > > > > |