dev-cpp-users Mailing List for Dev-C++ (Page 742)
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: Frazell T. <fr...@fl...> - 2001-01-02 02:18:31
|
Add a while loop (there may be easier ways but im a newbie) if you would =
like you may use the while loop in the bottom of my code listed below =
its not perfect but its a start
=20
// While loop =20
do
{
puts("\n\nEnter 99 to quit ");
scanf( "%d", &nbr);
value[ctr] =3D nbr;
ctr++;
}while (ctr < 10 && nbr !=3D 99);
return 0;
=20
----- Original Message -----=20
From: Wien Hong=20
To: dev...@li...=20
Sent: Monday, January 01, 2001 9:03 PM
Subject: [Dev-C++] the ways to prevent the dos windows been closed
When executing my dos program, it closes automatically. I understand =
that I can change this by putting
system(=A1=A7PAUSE=A1=A8);
at the end of my source. Is there any other way to do this? I just =
don't to type it in my program.
Thanks for your help.
Wien
=20
|
|
From: Wien H. <wie...@ms...> - 2001-01-02 02:04:13
|
When executing my dos program, it closes automatically. I understand = that I can change this by putting system(=A1=A7PAUSE=A1=A8); at the end of my source. Is there any other way to do this? I just don't = to type it in my program. Thanks for your help. Wien |
|
From: Arjen W. <ar...@wi...> - 2001-01-02 01:12:42
|
Ramana, With all due respect... that is very rude... If one of my friends sends me an picture of their family, I wish to receive it... I do not with to receive your signature picture... It totally does not add anything to you message, if you want to make your company known you can do so in plain text. In the netherlands a dial up connection costs money, per second. I don't know what kind of connection you have, but on a dial up connection it sure slows the download down. Maybe the moderator of this group should see if it is possible to filter out messages with images on user request? There are many lists that givve you the possibility to receive messages in HTML or plain text. If such a option exists and is used then I don't mind you signature, but as it is it is an extra load. Regards, Arjen -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Ramana Kumar Sent: Monday, January 01, 2001 5:02 PM To: C++ Subject: [Dev-C++] Plain text messages Ok, Im sorry. I didnt realise it took you very long to download my messages, It takes me the same time to view/download/send plain text as with HTML. As you can see, I have taken away the background, but the signature stays, if you are using a web-based email, I cant help you, but if you are using a client, there are ways, in many of them, to not receive graphics if you dont want to. If you would like help on this issue, fell free to ask. ICQ# 93667117 To get paid for surfing the internet, please visit AllAdvantage.com. |
|
From: Elias P. <Eli...@ao...> - 2001-01-01 23:05:20
|
> > Hello, > > I get the following linker messages when compiling the > program below : > > c:\dev-c++\projets\wininet\fetchtext\fetchtext1.o: In > function `main': > c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:15: > undefined reference to `InternetOpenA@20' > c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:19: > undefined reference to `InternetCloseHandle@4' > > Can you see anything wrong with my code? What does > 'undefined reference' mean? > If your source code is in no project, add it to a new project. Then try adding the following to the "project options/further object files or linker options": -lwininet |
|
From: Philippe de R. <pr...@cl...> - 2001-01-01 22:48:42
|
Hello,
I get the following linker messages when compiling the program below :
c:\dev-c++\projets\wininet\fetchtext\fetchtext1.o: In function `main':
//c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:15: undefined =
reference to `InternetOpenA@20'
//c/dev-c++/projets/wininet/fetchtext/fetchtext1.cpp:19: undefined =
reference to `InternetCloseHandle@4'
Can you see anything wrong with my code? What does 'undefined reference' =
mean?
Many thanks.
Philippe de Rochambeau
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Program =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#include <windows.h>
#include <wininet.h>
#include <iostream>
#include <string>
using namespace std;
#define BUFFLEN 255
int main()
{
string m_strURL =3D "http://localhost";
string m_strResult;
HINTERNET hSession =3D InternetOpen("FetchText1", =
INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0);
if (hSession) {
InternetCloseHandle(hSession);
}
return 0;
=20
|
|
From: Arjen W. <ar...@wi...> - 2001-01-01 22:04:05
|
I agree, I'm all in favor of having just plain text send over the internet instead of it's 100 times bigger, nicer looking, less information carrying html variant. "Keep e-mail as it is supposed to be" would be very nice... Arjen -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Max - V13 programmer Sent: Monday, January 01, 2001 1:32 PM To: dev...@li... Subject: Re: [Dev-C++] To all As for playing sound, use PlaySoundA, and please, don't have that kind of signatures(pictures), and if possible, don't send backgrounds with messages. I, and I think many other, receive about 60 mails each time I check my account, so downloading these huge messages is not neccessary. Max - The V13 programmer 'For each ice, there's a fire which melts it.' ma...@va... www.vault13.cjb.net |
|
From: Alan T. <ala...@3n...> - 2001-01-01 20:22:59
|
Where can I find documentation on what functions are provided = with the std library string class? Thanks, Alan |
|
From: Max - V. p. <ma...@va...> - 2001-01-01 12:43:35
|
As for playing sound, use PlaySoundA, and please, don't have that kind = of signatures(pictures), and if possible, don't send backgrounds with = messages. I, and I think many other, receive about 60 mails each time I = check my account, so downloading these huge messages is not neccessary.=20 Max - The V13 programmer 'For each ice, there's a fire which melts it.' ma...@va... www.vault13.cjb.net |
|
From: Nick <en...@ho...> - 2001-01-01 09:19:18
|
Hello Alan,
/* I don't mean to be ignoring Ioannis' reply. The way the thread has
progressed has made it simpler to refer to the initial message.
My comments are liberally sprinkled throughout.
Caution - lots of code snipping / reformatting taking place. */
> The code below gives some interesting results. First return from the
> function start_HTML_file is 0 (no error), while the second time it
> returns 1 (could not open file). What does this mean?
> Thanks, Alan
>
> int main()
> {
> ofstream invalid; // used to test for error opening file
At this point, invalid is a perfectly good ofstream object. No error
conditions to report.
if (invalid) cout << "This line will display."
>
> // Test invalid file checking
> cout << "Error return was " << start_HTML_file (invalid, NULL,
> "This is the title") << endl;
> cout << "Error return was " << start_HTML_file (invalid, NULL,
> "This is the title") << endl;
>
> system("PAUSE");
>
> return 0;
> }
>
> int start_HTML_file (ofstream&output_file, char *keywords = NULL, char
> *title = NULL) {
The first time this function is called, output_file is still fine, no
errors to report.
> if (!output_file)
// So this yields 'false'...no error.
> {
> cout << "Error opening file." << endl;
> return 1;
> }
> output_file << "html header";
Now that you have tried to output to an ofstream object that is not
associated with a file, error conditions are now set.
At this point if you test it...
if (output_file) cout << "This will not be displayed.";
> return 0;
> }
If the above doesn't make much sense, try running the following
(using the appropriate headers), it might make things clearer.
int main(){
ofstream invalid;
if (!invalid) cout << "this won't print";
invalid << "attempt output without a filehandle";
if (!invalid) cout << "now we have an error condition.";
return 0;
}
What you can do is instead of simply testing for whether any errors
are being reported, change your initial test in the function call to
something like:
if ( !output_file.is_open() )
keeping the rest the same.
I would suggest grabbing some books (even if it's just from the
library) as on-line tutorials tend to omit a lot of the detail that is
required.
--
regards,
Nick
|
|
From: Elias P. <Eli...@ao...> - 2000-12-31 20:37:30
|
Hi-
I am investigating a library. It installs ok, and I have sorted out =
the header issues, but they only provide a .lib file and a .dll file. I =
know there is a .lib-to-.a converter out there, but I am unable to find =
it. However, is it possible to link my program with the dll at linking =
time? The only errors I get with my program are undefined symbols during =
linking.
--Quentin
No, linking time is when the .a file would be needed. What you could try =
is loading the dll at run time. All i know about this is the description =
of the functions LoadLibrary and GetProcAddress. For example you could =
use them like this to call a function inside your dll:
with this declaration in mydll.h:
extern int myfunction(char *);
you could try:
... somewhere at the bginning of the program:
HMODULE mydll; // handle to the dll
int (*mydll_myfunction)(char *); // pointer to the dll function=20
mydll =3D LoadLibrary("MYDLL.DLL");
mydll_myfunction =3D (void *) GetProcAddress(my8dll,"myfunction");
... here you can use the dll function mydll_myfunction
... at the end of the program:
FreeLibrary(mydll);
|
|
From: Ioannis V. <no...@ya...> - 2000-12-31 20:02:37
|
Perhaps it is due to implementation (GCC) mistake. Have you tried it with a
different compiler? Btw because i have erased your original message can you
please resend me the code if it does not bother you, at no...@ya... (so
as to not resend it to the list again).
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Alan Thomas
Sent: Sunday, December 31, 2000 7:04 PM
To: dev...@li...
Subject: RE: [Dev-C++] first time error return on checking file stream
validity
No, the point was to create an invalid file stream, so I can test my
functions to ensure they react correctly to this error. The problem is
that on the first call to the function, it does not return an error. On the
second and subsequent calls, it does return an error.
How does anyone else out there test these sorts of things?
Thanks, Alan
|
|
From: Elias P. <Eli...@ao...> - 2000-12-31 19:47:32
|
> hi, > > when i am trying to install the allegro library, for the compiler mingw32 i > come accross an error that i am unsure about the cause of. I'm at the stage > where i have completed most of the tasks in the mingw32 help document. At > the point where i am in MSDos mode and type 'make' i am given the following > error message:- > > c:\mingw32\bin\make.exe:***no rule to make target 'src/win/gdi.c', needed by > obj/mingw32/alld_s/gdi.o'. STOP > > does anyone with experience of the allegro setup and mingw32 setup have any > idea of the cause and rectification of the error? > I have no idea, but the directory 'alld_s' in the error path sounds like you were using STATICLINK or DEBUGMODE, both of which you normally shouldn't. Try to go to www.allegro.cc, and ask in the forum, the people there will know the problem. |
|
From: Quentin S. <mac...@bi...> - 2000-12-31 18:53:53
|
Hi- I am investigating a library. It installs ok, and I have sorted out the = header issues, but they only provide a .lib file and a .dll file. I know = there is a .lib-to-.a converter out there, but I am unable to find it. = However, is it possible to link my program with the dll at linking time? = The only errors I get with my program are undefined symbols during = linking. --Quentin |
|
From: jag <won...@th...> - 2000-12-31 18:42:31
|
hi, when i am trying to install the allegro library, for the compiler mingw32 i come accross an error that i am unsure about the cause of. I'm at the stage where i have completed most of the tasks in the mingw32 help document. At the point where i am in MSDos mode and type 'make' i am given the following error message:- c:\mingw32\bin\make.exe:***no rule to make target 'src/win/gdi.c', needed by obj/mingw32/alld_s/gdi.o'. STOP does anyone with experience of the allegro setup and mingw32 setup have any idea of the cause and rectification of the error? thankyou in advance, jag |
|
From: Alan T. <ala...@3n...> - 2000-12-31 17:08:29
|
Sorry --- I was sending in HTML vice plain text format.
----- Original Message -----
From: Alan Thomas
To: dev...@li...
Sent: Sunday, December 31, 2000 12:03 PM
Subject: RE: [Dev-C++] first time error return on checking file stream
validity
No, the point was to create an invalid file stream, so I can test my
functions to ensure they react correctly to this error. The problem is
that on the first call to the function, it does not return an error. On the
second and subsequent calls, it does return an error.
How does anyone else out there test these sorts of things?
Thanks, Alan
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Subject: RE: [Dev-C++] first time error return on checking file stream
validity
Date: Sun, 31 Dec 2000 17:21:13 +0200
Reply-To: dev...@li...
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C0734E.13A04DD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
I have the impression you do not create or open any file, e.g. std::ofstream
invalid("test.txt");
I do not know much about C++ file operations yet but i think this is the
problem.
Ioannis
-----Original Message-----
ofstream invalid; // used to test for error opening file
|
|
From: Alan T. <ala...@3n...> - 2000-12-31 17:06:10
|
No, the point was to create an invalid file stream, so I can test my =
functions to ensure they react correctly to this error. The problem is =
that on the first call to the function, it does not return an error. On =
the second and subsequent calls, it does return an error. =20
How does anyone else out there test these sorts of things? =
Thanks, Alan
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Subject: RE: [Dev-C++] first time error return on checking file stream =
validity
Date: Sun, 31 Dec 2000 17:21:13 +0200
Reply-To: dev...@li...
This is a multi-part message in MIME format.
------=3D_NextPart_000_0000_01C0734E.13A04DD0
Content-Type: text/plain;
charset=3D"iso-8859-1"
Content-Transfer-Encoding: 7bit
I have the impression you do not create or open any file, e.g. =
std::ofstream
invalid("test.txt");
I do not know much about C++ file operations yet but i think this is the
problem.
Ioannis
-----Original Message-----
ofstream invalid; // used to test for error opening file
|
|
From: Ioannis V. <no...@ya...> - 2000-12-31 15:19:40
|
I have the impression you do not create or open any file, e.g. std::ofstream
invalid("test.txt");
I do not know much about C++ file operations yet but i think this is the
problem.
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Alan Thomas
Sent: Sunday, December 31, 2000 1:19 AM
To: dev...@li...
Subject: [Dev-C++] first time error return on checking file stream
validity
The code below gives some interesting results. First return from the
function start_HTML_file is 0 (no error), while the second time it returns
1
(could not open file). What does this mean?
Thanks, Alan
#include <iostream.h>
#include <stdlib.h>
#include <fstream.h>
#include <string.h>
// define HTML author
const char *Author = "Alan Thomas";
//
// function prototype
//
int start_HTML_file (ofstream&output_file, char *keywords = NULL,
char *title = NULL);
int main()
{
ofstream invalid; // used to test for error opening file
// Test invalid file checking
cout << "Error return was " << start_HTML_file (invalid, NULL,
"This is the title") << endl;
cout << "Error return was " << start_HTML_file (invalid, NULL,
"This is the title") << endl;
system("PAUSE");
return 0;
}
int start_HTML_file (ofstream&output_file, char *keywords = NULL, char
*title = NULL)
{
if (!output_file)
{
cout << "Error opening file." << endl;
return 1; // error indication
}
// Write header information
output_file << "<!doctype html public \"-//w3c//dtd html 4.0
transitional//en\">";
output_file << endl;
output_file << "<html>" << endl;
output_file << "<head>" << endl;
output_file << "<meta http-equiv=\"Content-Type\" content-\"text/html;
charset=iso-8859-1\"";
output_file << endl;
output_file << "<meta name=\"Author\" content=\"" << Author << "\">" <<
endl;
if (keywords != NULL)
{
output_file << "<meta name=\"KeyWords\" content=\"";
output_file << keywords << ">\"" << endl;
}
// Write out title
if (title != NULL)
{
output_file << "<title>";
output_file << title;
output_file << "</title>" << endl;
}
// End header
output_file << "</head>" << endl;
return 0;
}
|
|
From: Ioannis V. <no...@ya...> - 2000-12-31 15:14:13
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of lavi
> Sent: Sunday, December 31, 2000 3:16 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] STLPort
>
>
>
> I defined a member function ;
> class Cat
> {int Age;
> public:
> void s (int x);
> }
};
> void Cat::s (int z) {Age=z;}
> // but the compiler is complaining''25 c:\dev-c_~1\untitl~1.cpp
> declaration of `void Cat::S(int)' outside of class is not definition
>
> Thanks
> Joe Lavi
>
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|
|
From: lavi <jl...@ne...> - 2000-12-31 14:27:42
|
I defined a member function ;
class Cat
{int Age;
public:
void s (int x);
}
void Cat::s (int z) {Age=z;}
// but the compiler is complaining''25 c:\dev-c_~1\untitl~1.cpp
declaration of `void Cat::S(int)' outside of class is not definition
Thanks
Joe Lavi
|
|
From: Arjen W. <ar...@wi...> - 2000-12-31 04:22:21
|
Hello all, Has anyone used the STLPort package (www.stlport.com) successfully with Dev-C++? Regards, Arjen |
|
From: Elias P. <Eli...@ao...> - 2000-12-31 03:09:59
|
> hi elias, > > with reference to allegro and devc++, did you download the The MingW32 > compiler, documentation and utilities or is this not needed if you are using > devc++? > thanks > jag It worked with dev-c++ when i tried it some time ago, but i just tried it now and it doesn't work. So the only way to compile it is to download the gcc-2.95.2-msvcrt.exe. You don't need the mingw32-docs-html.exe however. |
|
From: jag <won...@th...> - 2000-12-31 02:59:00
|
hi elias, with reference to allegro and devc++, did you download the The MingW32 compiler, documentation and utilities or is this not needed if you are using devc++? thanks jag ----- Original Message ----- From: "Elias Pschernig" <Eli...@ao...> To: <dev...@li...> Sent: Sunday, December 31, 2000 2:09 AM Subject: Re: [Dev-C++] setting up allegro > > hi, > > > > i've downloaded allegro. There are instructions and read.me files > with it > > but i am confused as to how it should be set up to work with devc++. > is > > anyone familiar with allegro and has maybe set their version up with > dev > > c++? > > Yes - you can use the mingw version of allegro. But it only comes as > sourcecode. So to use the library, you first have to compile it. There > should be a file readme.mgw in your allegro directory, it tells you all > the software you need to download, and what you have to do (you have to > read carefully because it won't work if you forget anything). > > After everything has been compiled and installed, you can set up dev-c++ > to use allegro. To do so, i had to copy the following files: > from c:\mingw\include\allegro\*.* to c:\dev-c++\include > from c:\mingw\include\allegro.h to c:\dev-c++\include > from c:\mingw\lib\liballeg.a to c:\dev-c++\lib > > To use allegro in your dev-c++ project, you have to write -lalleg to > 'further object files or linker options' in the project options. You > should now be able to just copy any of the example source-codes and > compile and run them from dev-c++. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Elias P. <Eli...@ao...> - 2000-12-31 02:09:56
|
> hi, > > i've downloaded allegro. There are instructions and read.me files with it > but i am confused as to how it should be set up to work with devc++. is > anyone familiar with allegro and has maybe set their version up with dev > c++? Yes - you can use the mingw version of allegro. But it only comes as sourcecode. So to use the library, you first have to compile it. There should be a file readme.mgw in your allegro directory, it tells you all the software you need to download, and what you have to do (you have to read carefully because it won't work if you forget anything). After everything has been compiled and installed, you can set up dev-c++ to use allegro. To do so, i had to copy the following files: from c:\mingw\include\allegro\*.* to c:\dev-c++\include from c:\mingw\include\allegro.h to c:\dev-c++\include from c:\mingw\lib\liballeg.a to c:\dev-c++\lib To use allegro in your dev-c++ project, you have to write -lalleg to 'further object files or linker options' in the project options. You should now be able to just copy any of the example source-codes and compile and run them from dev-c++. |
|
From: Ioannis V. <no...@ya...> - 2000-12-31 00:26:32
|
int f(void); //function that accepts no parameters and returns an int int f(int x); // function that accepts an int and returns an int void f(int x); //function that accepts an int and does not return any value Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of jag > Sent: Sunday, December 31, 2000 1:06 AM > To: devc++ mail-list > Subject: [Dev-C++] sending and retrieving values from functions > > > hi, > > i'm studying a tutorial that makes use of a function named my_number. > > at the beggining of the code before the main loop it is declared as > follows:- > > void my_number(void); > > the code for the routine is called from within the main loop by > the command > my_number(); > > my question is, if i wanted a return value for one of the values in the > function my_number what command would i use? > > The tutorial explains the use of the term void in the code saying > that it is > used when there is no return values! > > Is it possible for anyone to explain how i might send or retrieve > values to > the function my_number? > > thanks, > jag > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: jag <won...@th...> - 2000-12-31 00:26:14
|
hi, i've downloaded allegro. There are instructions and read.me files with it but i am confused as to how it should be set up to work with devc++. is anyone familiar with allegro and has maybe set their version up with dev c++? thanks, jag |