dev-cpp-users Mailing List for Dev-C++ (Page 637)
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: Ioannis V. <no...@ya...> - 2001-12-28 20:48:21
|
Best wishes and a Happy New Year to all. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com <http://www.noicys.f2s.com/> * Alternative URL: http://run.to/noicys |
|
From: Andre` N. C. <An...@Ax...> - 2001-12-28 20:47:33
|
Thanks;) I had the syntax right just not the header:) Regards, Andre` C. Technical Support =D4=BF=D4=AC -------------------------------------------------------------------------= --- - Visit our support manual at http://supportmanual.com/ ----- Original Message ----- From: "Ioannis Vranos" <no...@ya...> To: "Dev-C++" <dev...@li...> Sent: Friday, December 28, 2001 3:40 PM Subject: RE: [Dev-C++] System Calls. > #include <stdlib.h> > > ... > > system("cls"); > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.f2s.com > * Alternative URL: http://run.to/noicys > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Andre` Niel Cameron > > Sent: Friday, December 28, 2001 9:10 PM > > To: dev...@li... > > Subject: [Dev-C++] System Calls. > > > > > > Hi Been a while and I can not remember for the life of me how > > to do a system call. Any one know the syntax and header > > files if any for a system call to cls? Regards, Andre` C. > > Technical Support =D4=BF=D4=AC > > -------------------------------------------------------------- > > -------------- > > - > > Visit our support manual at http://supportmanual.com/ > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-12-28 20:39:50
|
#include <stdlib.h>
...
system("cls");
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Andre` Niel Cameron
> Sent: Friday, December 28, 2001 9:10 PM
> To: dev...@li...
> Subject: [Dev-C++] System Calls.
>=20
>=20
> Hi Been a while and I can not remember for the life of me how=20
> to do a system call. Any one know the syntax and header=20
> files if any for a system call to cls? Regards, Andre` C.=20
> Technical Support =D4=BF=D4=AC
> --------------------------------------------------------------
> --------------
> -
> Visit our support manual at http://supportmanual.com/
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|
|
From: Andre` N. C. <An...@Ax...> - 2001-12-28 19:11:51
|
Hi Been a while and I can not remember for the life of me how to do a sys= tem call. Any one know the syntax and header files if any for a system call = to cls? Regards, Andre` C. Technical Support =D4=BF=D4=AC -------------------------------------------------------------------------= --- - Visit our support manual at http://supportmanual.com/ |
|
From: carlos D. M. <cg...@wo...> - 2001-12-28 16:17:29
|
Sorry, I read the message right now. Can be the problem you didn't download it? The setup utility is provided separately. I hope this is all the problem, if not, sorry, I cannot help. |
|
From: Yaoltzin G. H. <yao...@ho...> - 2001-12-28 05:26:45
|
<html><div style='background-color:'><DIV>Hi.</DIV> <DIV> </DIV> <DIV>I'm trying to make a tree-view control in my application. I need it in the window, not in a dialog box. The problem is that I just can't make the control. Someone can help me? Some link to a good tutorial?</DIV> <DIV> </DIV> <DIV>Thank you.</DIV></div><br clear=all><hr>Send and receive Hotmail on your mobile device: <a href='http://go.msn.com/bql/hmtag2_etl_EN.asp'>Click Here</a><br></html> |
|
From: Jason H. <jas...@bt...> - 2001-12-28 02:34:47
|
Even a simple OS would be a very difficult thing to do. Adding multimedia requires supporting the hardware used with it. You would need drivers and such software for Modems, Graphics Cards, Sound Cards, and maybe some other stuff. Building an OS for one particular or a generalised standard system is feasable for an individual, building up an OS that supports the vast variety of PC's available is mind-bogglingly hard and would take a concerted effort from a large team (either open source communitoy or in house). The linux kernel may be a good place to start and you could probably build up a linux OS package with ready made software that would perform the tasks you need. If you understand it then you could take the open source's and glue together the bit's you need with your own code and produce an multimedia station/OS. Remember any Open Source stuff you modify will have to be released back into the open source world. I'm not trying to stop you from going for it, but you need to realise how difficult the task is. I'm curious as to what exactly you intend to use this software for? An OS covers a broad range of ideas, do have a specific purpose for why you want to make one? Just for fun? I like creating things like this, but I'm not sure where to even start in the design of one. Jason. ----- Original Message ----- From: "http//:angelfire.com/dc/85 Sale's" <bc...@ms...> To: <Dev...@li...> Sent: Thursday, December 27, 2001 7:52 PM Subject: [Dev-C++] help make a os? > > Want to help me make a media os?Surf the web,listin music,watch video and > stuff,very simple OS.Maby using linux kernle. > Thanks > P.S. Im willing to spend long hours on this but need some help. > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jason H. <jas...@bt...> - 2001-12-28 01:25:57
|
Let's see if I can lay this problem to rest.
First the type you want to use to store the number depends if you need =
to allow for fault detection. If weight is an int then the conversion =
from the typed in text is automatic, however if your user doens't enter =
a valid number then an error will occur. Fortunately you can detect the =
error, i.e.
int value;
cout << "Enter a value: ";
cin >> value;
if(cin.fail())
{
// respond to failure here
}
This will detect if a non-number is typed, however if you type '50dgds' =
(or whatever) then the value 50 will be extracted and the remaining =
characters will be left in the stream (another cin for a string would =
get the 'dgds'). Remember that if the operation fails then the stream is =
left untouched (anything typed will still be there) and value is =
unchanged. Also the failure will need to be cleared to avoid it being =
redetected if your program continues i.e. cin.clear();
The alternative method is to get a string of some sort, either a C++ =
string or C style char array and then convert it yourself. Conversion =
isn't too hard cos you can use the atoi() function. The function atoi() =
will only convert until it reaches a character it can't convert so if =
you passed it the above string (50dgds) then you would still get 50, but =
if you want to have that as invalid then you can go through the string =
with something like this:
int size;
std::string value; // or char value[80];
// get your string here
size =3D value.length(); // or strlen(value);
for(int i =3D 0; i < size; ++i)
{
if(!isdigit(value[i]))
{
// non digit found do whatever i.e. set a flag
break; // or some other termination
}
}
I'll leave you to figure out the rest of that. E-mail again if you need =
help.
As for getting a number with a char, it's only useful for a single digit =
number. You could get a sequence of chars and total up the number, but a =
string would be easier.
Hope this helps, Jason.
----- Original Message -----=20
From: "Exuss Draugas" <dra...@ce...>
To: <Dev...@li...>
Sent: Thursday, December 27, 2001 7:20 PM
Subject: [Dev-C++] Checking data type
>=20
>=20
> Hi,=20
>=20
> Yes, this code above works, but only when ONE(!) simbol is entered.=20
> If I try to enter "4kdkdkd", the output says that the digital number=20
> was entered. I can't use that code in this prototype:=20
> =20
> // int weight ??
> // char weight ??
> // string weight ??
> // char[10] weight ??
>=20
> do
> {
> cout << "Input Your weight:";
> cin >> weight;
> // Checking type of entered value
> // because the program will crash, if value isn't digital number
> // if value is not NUMBER cout << "Please, input number!";
> } while ( /* value is bad */ )
> =20
> // do some calculations with weight
> =20
> Thanks,
>=20
> Exuss
> =20
> =20
> >Your code was not proper ANSI C++ too. Your code corrected and fully
> >portable:
> >
> >
> >#include <cstdlib>
> >#include <cctype>
> >#include <iostream>
> >
> >int main()
> >{
> > using namespace std;
> >
> > unsigned char number;
> >=20
> > cout << "\n\tInput number or letter: ";
> > cin >> number;
> >=20
> > if(isalnum(number))
> > {
> > cout << "\n\tIt is alnum" <<endl;
> > =20
> > if(isdigit(number))
> > cout << "\tIt is digit" <<endl;
> > =20
> > else if(isalpha(number))
> > {
> > cout << "\tIt is alpha" << endl;
> > =20
> > if(islower(number))
> > cout << "\tIt is lower"<< endl;
> > }
> > }
> > =20
> > =20
> > cout << endl;
> >
> > system("PAUSE");
> >}
> >
> >
> >
> >Ioannis
> >
> >* Ioannis Vranos
> >* Programming pages: http://www.noicys.f2s.com
> >* Alternative URL: http://run.to/noicys
> >
> >
>=20
>=20
> --
> Nemokama el.pa=F0to d=EB=FEut=EB - http://webmail.delfi.lt/
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: http//:angelfire.com/dc/85 Sale's <bc...@ms...> - 2001-12-27 20:03:47
|
Want to help me make a media os?Surf the web,listin music,watch video and stuff,very simple OS.Maby using linux kernle. Thanks P.S. Im willing to spend long hours on this but need some help. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com |
|
From: Exuss D. <dra...@ce...> - 2001-12-27 18:19:27
|
Hi,
Yes, this code above works, but only when ONE(!) simbol is entered.
If I try to enter "4kdkdkd", the output says that the digital number
was entered. I can't use that code in this prototype:
// int weight ??
// char weight ??
// string weight ??
// char[10] weight ??
do
{
cout << "Input Your weight:";
cin >> weight;
// Checking type of entered value
// because the program will crash, if value isn't digital number
// if value is not NUMBER cout << "Please, input number!";
} while ( /* value is bad */ )
// do some calculations with weight
Thanks,
Exuss
>Your code was not proper ANSI C++ too. Your code corrected and fully
>portable:
>
>
>#include <cstdlib>
>#include <cctype>
>#include <iostream>
>
>int main()
>{
> using namespace std;
>
> unsigned char number;
>
> cout << "\n\tInput number or letter: ";
> cin >> number;
>
> if(isalnum(number))
> {
> cout << "\n\tIt is alnum" <<endl;
>
> if(isdigit(number))
> cout << "\tIt is digit" <<endl;
>
> else if(isalpha(number))
> {
> cout << "\tIt is alpha" << endl;
>
> if(islower(number))
> cout << "\tIt is lower"<< endl;
> }
> }
>
>
> cout << endl;
>
> system("PAUSE");
>}
>
>
>
>Ioannis
>
>* Ioannis Vranos
>* Programming pages: http://www.noicys.f2s.com
>* Alternative URL: http://run.to/noicys
>
>
--
Nemokama el.pašto dėžutė - http://webmail.delfi.lt/
|
|
From: John K. <jki...@po...> - 2001-12-26 15:50:48
|
http://www.cprogramming.com/tutorial.html http://www.cs.wustl.edu/~schmidt/C++/ http://www.cyberdiem.com/vin/learn.html These are some of the links I have. ------------------ Reply Separator -------------------- Originally From: Joel Divekar <joe...@ya...> Subject: [Dev-C++] New Programmer Problem Date: 12/25/2001 02:24pm Hi There I am new to dev-C++ & mingw compiler, and I am facing a problem. I know it must be a silly problem, but for me it is a major one. Fortunately I am able to compile example files properly in my office but able to do so at home. OS used - Windows ME Dev-C++ - Version 4.01 Mingw - Version 2.95.2-1 Compiler Options ---------------------------------------------------------------------- ---------------------------------------- Bin Directory : D:\mingw\bin\ C include files : . C++ include files : . Library Directory : .\ ---------------------------------------------------------------------- ---------------------------------------- Autoexec.bat Settings ---------------------------------------------------------------------- ---------------------------------------- SETPATH=C:\WINDOWS\SYSTEM;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ProgramFile s\Mts;D:\mingw\bin; SET C_INCLUDE_PATH=D:\mingw\mingw32\include SET CPP_INCLUDE_PATH=D:\mingw\include\g++-3;D:\mingw\mingw32\include SET GCC_EXEC_PREFIX=D:\mingw\lib\gcc-lib SET LIBRARY_PATH=D:\mingw\lib\ ---------------------------------------------------------------------- ---------------------------------------- When I compile any program following errors are displayed. Compiler and Linker output windows displays ---------------------------------------------------------------------- ---------------------------------------- g++: installation problem, cannot exec `cpp0': No such file or directory ---------------------------------------------------------------------- ---------------------------------------- Linker Output displays ---------------------------------------------------------------------- ----------------------------------------------------------- g++: c:\dev-c++\examples\jackpot\main.o: No such file or directory ---------------------------------------------------------------------- ------------------------------------------------------------ If any other details are required please mail ... I am also looking for a c/c++ tutorial, can anybody forward me a resource link Thanks ... Regards Joel |
|
From: carlos D. M. <cg...@wo...> - 2001-12-26 11:35:32
|
I don't know alternate sites, but there is a little trick you can try, and which works for me: if you are downloading the file to, say C:/target/folder, you can open in the explorer any other folder, and from time to time, change it to C:/target/folder so there will appear the file you are downloading with the size reached till the moment and change again to other folder, so when it disconnects the next time the downloading will resume from the size it had the last time you saw C:/target/folder. P.S. I could see your computer date is one day ahead the true date. |
|
From: Joel D. <joe...@ya...> - 2001-12-26 08:57:02
|
Hi There I am new to dev-C++ & mingw compiler, and I am facing a problem. I know it must be a silly problem, but for me it is a major one. Fortunately I am able to compile example files properly in my office but able to do so at home. OS used - Windows ME Dev-C++ - Version 4.01 Mingw - Version 2.95.2-1 Compiler Options -------------------------------------------------------------------------------------------------------------- Bin Directory : D:\mingw\bin\ C include files : . C++ include files : . Library Directory : .\ -------------------------------------------------------------------------------------------------------------- Autoexec.bat Settings -------------------------------------------------------------------------------------------------------------- SETPATH=C:\WINDOWS\SYSTEM;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\ProgramFiles\Mts;D:\mingw\bin; SET C_INCLUDE_PATH=D:\mingw\mingw32\include SET CPP_INCLUDE_PATH=D:\mingw\include\g++-3;D:\mingw\mingw32\include SET GCC_EXEC_PREFIX=D:\mingw\lib\gcc-lib SET LIBRARY_PATH=D:\mingw\lib\ -------------------------------------------------------------------------------------------------------------- When I compile any program following errors are displayed. Compiler and Linker output windows displays -------------------------------------------------------------------------------------------------------------- g++: installation problem, cannot exec `cpp0': No such file or directory -------------------------------------------------------------------------------------------------------------- Linker Output displays --------------------------------------------------------------------------------------------------------------------------------- g++: c:\dev-c++\examples\jackpot\main.o: No such file or directory ---------------------------------------------------------------------------------------------------------------------------------- If any other details are required please mail ... I am also looking for a c/c++ tutorial, can anybody forward me a resource link Thanks ... Regards Joel |
|
From: http//:angelfire.com/dc/85 Sale's <bc...@ms...> - 2001-12-25 15:13:44
|
It would be so you could only,surf the web,listin ot music,watch video,look at pictures, download video,music,pictures. thats bout all. I have sorce code to make the os just not the apps. Thanks _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |
|
From: DXFX <vin...@ed...> - 2001-12-25 05:14:04
|
Hello guys... I'm in the process of upgrading my compiler. But I need help... The file download is rather too slow and I get disconnected from the net once in a while. That means I'll have to restart downloading the full 10mb when that happens. Using a download manager would be useless because the server doesn't support download resuming. Does anyone here know any alternate site, mirror site, other ftp server, or any other, where I can get the current version of the MinGW compiler? Guys! Please help! dXfX __________________________________ www.edsamail.com |
|
From: John K. <jki...@po...> - 2001-12-24 20:41:41
|
A program from a book for newbies (Accelerated C++) gave an example program using the header #include<ios>. The gcc command-line compiler balked until I simply commented that line out. Reading the GNU documentation, it looks like <ios> is related to <iostream>, which *was* included in this program's header listings. Its inclusion is possibly why the program runs with the #includes<ios> line commented out. Could someone explain the relatinship between those two header files? I don't find <ios> in my dev-c++ distro. Do I need it? Why would a program in a well-received book use a header declaration that can be commented out? Does the gcc version (2.952) I recently downloaded with dev-c++ need to be updated? I don't like that I am having these problems with things like configurations and header files, but those are the issues I need to deal with since they are coming up at this early stage. Thanks. |
|
From: Jeffrey W K. <ki...@ju...> - 2001-12-24 20:11:06
|
Hello to the group;
And thanks to all those who are taking the time to answer all the
questions! I hope that someone can help me with this one. I am trying
to create classes which reference each other's interface functions. The
classes are Device and Bus. According to the book I've been using, the
thing to do is to include the line:
class Bus;
just before the Device declaration (or vice versa). When I do this, I
get two errors from the compiler- One for the use of an undeclared class
(Bus), and one for a forward declaration of class Bus. What I need to
know is- is there something inherently wrong in a forward declaration?
Or does Dev C++ have a problem with such declarations? And if so, how do
you tell two interdependant classes about each other, so that you don't
have to declare them simultaneously!
Thanks in advance.
Jeff |
|
From: DXFX <vin...@ed...> - 2001-12-24 11:37:23
|
Thanks, Anyway: > Windows 95/98: TransparentBlt contains a memory leak that can exhaust system resources. To draw a transparent bitmap using BitBlt, see Knowledge Base article Q79212. Does this mean that the function does not free up resources after it uses it? Is there any other way? I have a Win98 machine(still finding considerations to upgrade to WinXP) and I am running low on resources(Which is why I haven't upgraded my OS). As much as possible, I want my programs(specially the ones that draw things on the desktop) use not so many resources. That would prove to be a challenge to me though... Anyway... Im in the process of upgrading my compiler(and of course, I couldn't make the code to work... but Im looking forward to). I've also been studying one solution that I think might do the trick, however, I'll have to sacrifice speed for that... I've been thinking to make a function that draws a bitmap, similar to BitBlt, but with an exception - It would scan the bitmap, byte-by-byte. If the byte isn't the color for transparency, it draws it do the screen... if it is, then it doesnt draw it(It also means I'll have to scan for an interval of three... scanning each R,G,B values. That is, if it is 24-bit color bitmap). However, that also means it will have to spend time scanning the bytes of the bitmap then draw them byte-by-byte on the screen. I'll be looking on that Article(Knowledge Base article Q79212) to see if I could understand it. For now... Anyone got any bright Ideas? DXfX __________________________________ www.edsamail.com |
|
From: John K. <jki...@po...> - 2001-12-24 02:06:12
|
My previous question has been answered, but now my even simpler question is: How do I execute the a.out (or otherwise named) executable from the Red Hat 7.2 command line? With the executable a.out in the current directory, I try typing a, a.out, ./a , ./a.out, and none of these work. With my Windows version of gcc (from the Dev-C++), I just type the name of the executable while I am in that directory. Thanks for listening to these basic questions. ------------------ Reply Separator -------------------- Originally From: John Kilbourne <jki...@po...> Subject: Re: Re: [Dev-C++] newbie question on header files Date: 12/23/2001 08:34pm Luigi et al: My tiny program containing (little more than): #include <iostream> #include <string> using namespace std does not compile from my Redhat 7.2 command line. This is the same program that now compiles on my windows gcc compiler. I did find the files iostream and string in the directory /usr/include/g++-3, and so used the -I switch on the command g++ like so: g++ -I/usr/include/g++-3 prog3.cpp and got the same error message, referring to the undeclared identifier 'string'. How do I set the environment variables in Linux so the compiler can find this directory (and why wouldn't the distro come with that environment variable already set)? ------------------ Reply Separator -------------------- Originally From: Luigi Santillo <gi...@li...> Subject: Re: [Dev-C++] newbie question on header files Date: 12/22/2001 07:00pm Hi, I think that the errors you get are related to the fact that "g++" is unable to locate the C++ standard include files on your system, you should explicitly tell the place using the "-I" option. If you plan to use "gcc" from the command line I suggest you look for some file describing the options. As Mr. Hardman says, there are many places where you can find such files, try the home page of Dev-C++, there should be some link, or try http://www.delorie.com/gnu/docs In my opinion, before moving to Unix, be sure you know how to use an editor and also read something about "make" and "gdb". As for other compilers, a good one (I mean pretty much ANSI compliant, but it works on Windows/Dos only) is the Borland one, you get it by downloading the Borland free command line tools package (see http://www.borland.com, and from there work your way to the right page). The package comes with the file bcb5tool.hlp that explains how to use the tools. I myself use gcc (or bcc), most of the times, from the command line; to save me some typing I have developed two small, very simple programs (one for compiling a single file, the other for generating simple makefiles), they are available (as sources) at www.geocities.com/gisan1 follow the link clt_gnu. The programs use ANSI C(89), and it is not hard to modify them so that they can be ported to Unix (I will be writing a Linux port of them shortly after Christmas).If you need some help (or if you want the binary form of the programs), let me know: I'm a newbie myself, but I'll do what I can. I hope the above is of some help. At 15.21 20/12/01 -0500, John Kilbourne wrote: >How do I compile on the command line using gcc, g++, or another >compiler , circumventing Dev-C++ (which I relly like))?. >Specifically, I receive errors b/c of my #include statements >(<iostream> and <string>), which I understand to be >somehow "standard". When I use <stdio.h>, my code compiles fine. > >I will be moving to unix where I will only have gcc and other unix >tools, and I am trying to get oriented to that environment. > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan gi...@li... _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: John K. <jki...@po...> - 2001-12-24 01:41:55
|
Luigi et al: My tiny program containing (little more than): #include <iostream> #include <string> using namespace std does not compile from my Redhat 7.2 command line. This is the same program that now compiles on my windows gcc compiler. I did find the files iostream and string in the directory /usr/include/g++-3, and so used the -I switch on the command g++ like so: g++ -I/usr/include/g++-3 prog3.cpp and got the same error message, referring to the undeclared identifier 'string'. How do I set the environment variables in Linux so the compiler can find this directory (and why wouldn't the distro come with that environment variable already set)? ------------------ Reply Separator -------------------- Originally From: Luigi Santillo <gi...@li...> Subject: Re: [Dev-C++] newbie question on header files Date: 12/22/2001 07:00pm Hi, I think that the errors you get are related to the fact that "g++" is unable to locate the C++ standard include files on your system, you should explicitly tell the place using the "-I" option. If you plan to use "gcc" from the command line I suggest you look for some file describing the options. As Mr. Hardman says, there are many places where you can find such files, try the home page of Dev-C++, there should be some link, or try http://www.delorie.com/gnu/docs In my opinion, before moving to Unix, be sure you know how to use an editor and also read something about "make" and "gdb". As for other compilers, a good one (I mean pretty much ANSI compliant, but it works on Windows/Dos only) is the Borland one, you get it by downloading the Borland free command line tools package (see http://www.borland.com, and from there work your way to the right page). The package comes with the file bcb5tool.hlp that explains how to use the tools. I myself use gcc (or bcc), most of the times, from the command line; to save me some typing I have developed two small, very simple programs (one for compiling a single file, the other for generating simple makefiles), they are available (as sources) at www.geocities.com/gisan1 follow the link clt_gnu. The programs use ANSI C(89), and it is not hard to modify them so that they can be ported to Unix (I will be writing a Linux port of them shortly after Christmas).If you need some help (or if you want the binary form of the programs), let me know: I'm a newbie myself, but I'll do what I can. I hope the above is of some help. At 15.21 20/12/01 -0500, John Kilbourne wrote: >How do I compile on the command line using gcc, g++, or another >compiler , circumventing Dev-C++ (which I relly like))?. >Specifically, I receive errors b/c of my #include statements >(<iostream> and <string>), which I understand to be >somehow "standard". When I use <stdio.h>, my code compiles fine. > >I will be moving to unix where I will only have gcc and other unix >tools, and I am trying to get oriented to that environment. > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan gi...@li... _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Dr. D. J. K. <din...@ea...> - 2001-12-23 19:27:42
|
Hey Exuss,
Yes C++ has all the facilities for you whatever you enjoyed in =
Pascal. (and much more).
Just use struct instead of record. see help available on the word =
struct.
Secondly when you want to output/input data to/from a file, you use out =
instead of cout. Of course, you have to first open your file for that. =
All this help is Ctrl+F1 away from you. Take your cursor in the IDE and =
press Ctrl+F1. (I hope you use proper IDE from Boreland.)
Remember only god and F2 Saves.
Dinesh Karia
To: dev...@li...
From: Exuss Draugas <dra...@ce...>
Reply-To: dra...@ce...
Date: Thu, 22 Nov 2001 19:18:51 +0100
Subject: [Dev-C++] Structured data in files
Hi!
Does anyone knows tutorial on the WEB, or could me explain, how to=20
use files in C++. In the books and tutorials information are only=20
about text files, something like:
ofstream myFile("file.txt");
myFile << "Some text";
But how to store/read structured data in files? In Turbo Pascal it=20
looks like:
{ Creating a record }
type human=3Drecord
name:string;
age:integer;
end;
var myFile:file of human; {file for storing records "human" type }
person:human;
person.name :=3D "GreatName";
person.age :=3D 100;
assign(myFile, 'peoples.hhh'); =20
rewrite(myFile);
write(myFile, person);
{ and so on .. } =20
=20
How to do the same in C++ ??=20
Thanks!
=20
Exuss
Interested in Topoligies? join: top...@ya...
Interested in Topological Algebras? Join: =
top...@ya...
For UGC Net Exam (To get help or to help) Join: =
ugc...@ya...
Are you Gujarati? Join a group of&by&for The Gujaratis =
guj...@ya...=20
Did you study at Sardar Patel University? Join =
spu...@ya...=20
|
|
From: Dr. D. J. K. <din...@ea...> - 2001-12-23 18:52:13
|
This is in Thread of Kevin Wood's cout vs cprintf. cout does not follow the effect of textcolor() function, nor even = textbackground(). However, one has to use cprintf() for the colored text = etc. Moreover it makes a difference in execution time (for the large = programs, one can experience it). cprintf is much faster than cout. Dinesh Karia. From: "Kevin Wood" <ke...@me...> To: <dev...@li...> Subject: Re: [Dev-C++] cout vs cprintf Date: Wed, 21 Nov 2001 22:32:26 -0000 cprintf is declared in conio.h for Win32 console programs (non-Ansi, non-Unix) Usually outputs direct to video memory. Unlike fprintf and printf, cprintf does not translate linefeed = characters (\n) into carriage-return/linefeed character pairs (\r\n). Tab = characters (specified by \t) are not expanded into spaces. (This information is from Borland help files.) Interested in Topoligies? join: top...@ya... Interested in Topological Algebras? Join: = top...@ya... For UGC Net Exam (To get help or to help) Join: = ugc...@ya... Are you Gujarati? Join a group of&by&for The Gujaratis = guj...@ya...=20 Did you study at Sardar Patel University? Join = spu...@ya...=20 |
|
From: Luigi S. <gi...@li...> - 2001-12-22 18:12:21
|
Hi, I think that the errors you get are related to the fact that "g++" is unable to locate the C++ standard include files on your system, you should explicitly tell the place using the "-I" option. If you plan to use "gcc" from the command line I suggest you look for some file describing the options. As Mr. Hardman says, there are many places where you can find such files, try the home page of Dev-C++, there should be some link, or try http://www.delorie.com/gnu/docs In my opinion, before moving to Unix, be sure you know how to use an editor and also read something about "make" and "gdb". As for other compilers, a good one (I mean pretty much ANSI compliant, but it works on Windows/Dos only) is the Borland one, you get it by downloading the Borland free command line tools package (see http://www.borland.com, and from there work your way to the right page). The package comes with the file bcb5tool.hlp that explains how to use the tools. I myself use gcc (or bcc), most of the times, from the command line; to save me some typing I have developed two small, very simple programs (one for compiling a single file, the other for generating simple makefiles), they are available (as sources) at www.geocities.com/gisan1 follow the link clt_gnu. The programs use ANSI C(89), and it is not hard to modify them so that they can be ported to Unix (I will be writing a Linux port of them shortly after Christmas).If you need some help (or if you want the binary form of the programs), let me know: I'm a newbie myself, but I'll do what I can. I hope the above is of some help. At 15.21 20/12/01 -0500, John Kilbourne wrote: >How do I compile on the command line using gcc, g++, or another >compiler , circumventing Dev-C++ (which I relly like))?. >Specifically, I receive errors b/c of my #include statements >(<iostream> and <string>), which I understand to be >somehow "standard". When I use <stdio.h>, my code compiles fine. > >I will be moving to unix where I will only have gcc and other unix >tools, and I am trying to get oriented to that environment. > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users -- gisan gi...@li... |
|
From: Elias P. <eli...@ao...> - 2001-12-22 17:49:05
|
> > How do I do a bitmap so that when it draws, it wouldn't paint a > specific color -- giving it a bitmap transparency. If you guys > still don't get what I'm saying, I've attached a gif image with > this email. > An easy way to do what you want would be the TransparentBlt function. It's not defined in the dev-c++ headers/libraries AFAIK, but you can still use it (i'm using it myself): The following would draw a 100x100 bitmap onto another, using the color you mentioned as transparent: TransparentBlt(hdc, 0, 0, 100, 100, bitmapdc, 0, 0, 100, 100, RGB(255, 0, 255)); Because dev-c++ has no library for it, you have to add the DLL containing the function to the linker options (I updated to the current mingw version, so i'm not sure this works for you). For me it is c:/windows/system/msimg32.dll. I attached some example code which works for me, and the makefile I'm using to compile it. MSDN also says this about the above function: Windows 95/98: TransparentBlt contains a memory leak that can exhaust system resources. To draw a transparent bitmap using BitBlt, see Knowledge Base article Q79212. I looked at that article, but I don't understand it.. -- Elias Pschernig |
|
From: <Sta...@ao...> - 2001-12-22 17:24:47
|
How can I change the colors of the window and text and add sound to a basic project . |