dev-cpp-users Mailing List for Dev-C++ (Page 421)
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: jo m. <non...@ho...> - 2003-03-14 19:58:07
|
Hello.
I don't see any problem with your example (except for the non-standard "void
main"). Tell me if I'm wrong:
A pointer in the stack is the same thing as an automatic variable in the
stack: it is released when you go out of scope, so no problem. Furthermore:
if you are concerned about eficiency, you shouldn't use the free store
unless you need it (for example when using dinamically allocated objects).
If you all don't aggree, please let me know. Thanks.
>From: André Macário Barros <and...@su...>
>To: "Dev-Cpp-Users" <dev...@li...>
>Subject: [Dev-C++] Correct use of pointers
>Date: Thu, 13 Mar 2003 21:46:02 -0300
>
>Gentlemen,
>
> Even in the Ritchie´s books sometimes I fount .C codes using "wild
>pointers" or something
>like:
>****************
>void main()
>{
> int *p, a, b;
>
> a=2;
> b=3;
> *p = a + b;
>
> ...
>}
>****************
>But... in large programs we can have problems.
>
> Would I be corret, allways, if I use insted a code like:
>*********************
>#include <stdlib.h> /* or alloc.h */
>
>void main()
>{
> int *p, a, b;
>
> p=malloc(1*sizeof(int));
> a=2;
> b=3;
> *p = a + b;
> ...
> free(p);
>}
>******************
>1. It´s not necessary, but is it tecnically correct?
>2. Is there any point, where the previous memory allocation is mandatory?
>
>Thanks
>Andre
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open!
>Get cracking and register here for some mind boggling fun and
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
|
|
From: Luigi S. <gi...@li...> - 2003-03-14 16:06:07
|
On Fri, Mar 14, 2003 at 11:37:03AM +0100, Glen Vermeylen wrote: > [..] > > I already knew what your tutorial said, though its much more > comprehensive than Bruce Eckels' explanation. OK, sorry for having you read twice the same stuff, currently I do not know what is in Bruce Eckels' book (haven't read it yet :-) Also, I apologize for mailing you private, the message was for the list ... I must have hit the 'r' key instead of the 'l' one. > Its just that.. well... I can't get make to work. > Under linux it's just make install, make this, make that... and it > always works. That sounds a good reason to develop your application on a GNU/Linux platform ;-) > But under windows I'm a bit lost. > > The documentation says to "make gcc" in the main directory. > After inspecting the makefile I see it goes to every subdirectory: > "gcc: > cd C02; make -f gcc.makefile > cd C03; make -f gcc.makefile > cd C04; make -f gcc.makefile... and so on" > The gcc.makefile's are probably 100% correct :) . It looks like you are trying to build the compiler. I've never done such a thing myself, so I shall give my advice but can't be 100% sure of what I say, though I'll try to make it sound. From the above line, I see that the makefile you are using has lines like: "command; command" The above style is not going to work on Dos (whatever) / Windows (up-to and including Win98SE). I do not know if the shell which ships with newer versions allows such a thing, but I do not think so. Probably have downloaded the source package for *nix, as the above syntax is quite common on Bash or Sh shells. So now I have a few questions, I hope you don't mind answering: - which version of Windows are you running ? - which shell are you using ? - which brand of Make are you using ? (Microsoft, Borland, GNU, ...) - which version of Make is it ? Anyway, I suggest you get the MinGw Msys tools, they include an Sh shell, so that some stuff from the *nix world may be used on a Windows machine. You may also go for Cygwin, which is probably better, but I don't know how that thing works. > I tried copying everything from dev-cpp\bin to command Can you elaborate on this? What is "command"? > source-dir just calling "make gcc". > Also I tried calling "make > D:\BACKUP\e-books\BruceEckel\TICPP-2nd-ed-Vol-one-code\C02 gcc" (also > with backslashes converted to forward slashes). > I also tried every combination I could think of using c:\dev-cpp\bin\make > But always I get something like "nothing to be done for target...." or > "no rule to make target" or something like that. > > I guess it would be enough for someone who got it to work under windows > to say how he calls make (or how he sets it up). I'm not stupid, just > not used to dos :) . I never meant such a thing, if my previous mail, where I address you to my simple (very very elementary) tutorial gave you such an impression, I shall apologize, I though it was a suitable answer to you question as you asked a "step-to-step" procedure. As for setting up Make under Dos/Windows, I think you have it set correctly, in fact when you type "make" It seems that the program shows up, so it exists and its location is in the path. This brings me to the idea that the problem is not Make but the fact that you are using the wrong shell. Have you tried with simple makefiles? A rule I always try to follow is: put together a simple example, test it, if it does not work, you may post it and we can see what is wrong. Remember, if you are attempting to compile some source code originally designed with *nix in mind, on a Windows machine, do not expect things to work out of the box. -- >> gisan >> |
|
From: Ian H. <Ia...@ma...> - 2003-03-14 15:47:52
|
Hi, When I 'Save as' I can rename all the .c files no problem, but it does not give me the option of saving the .dev file under a new name. I would like to be able to do this so I can have a 'Template.dev' with core code and then being able to save it (and the associated files) under new names or in a new folder. Is there a way to do this without having to cut, paste, rename in Win.Explorer? Cheers Stuntie. |
|
From: Marc V. <mar...@eu...> - 2003-03-14 14:57:33
|
Can you help me ? I am beginner and have just installed version 4.9.7.0 of dev-C++. Trying *.cpp files ,I receive the following message :: -fdollar-in-identifiers -fsave-memoized -fexceptions -fshort-double -fver= bos e-asm -fexpensive-optimizations -O1 -pg -lobjc -g3 -nostdlib -mwindows -= I"C :\Dev-Cpp\include\c++" -I"C:\Dev-Cpp\include" -I"C:\Dev.Cpp\include\c++= \ba ckward" -L"C:\Dev-Cpp\lib" -L"c:\dev-cpp\include\c++\backward" cc1plus.exe: unrecognized option `-fdollar-in-identifiers' Ex=E9cution termin=E9e What must I do ? Thank you. Marc VDB |
|
From: Glen V. <Gle...@pa...> - 2003-03-14 10:39:19
|
"(did you search the mail archive?)" => I did now, and it's bookmarked
:). No results though.
All messages to this group will be from now on text only, my apologies
for that.
I already knew what your tutorial said, though its much more
comprehensive than Bruce Eckels' explanation.
Its just that.. well... I can't get make to work.
Under linux it's just make install, make this, make that... and it
always works. But under windows I'm a bit lost.
The documentation says to "make gcc" in the main directory. After
inspecting the makefile I see it goes to every subdirectory:
"gcc:
cd C02; make -f gcc.makefile
cd C03; make -f gcc.makefile
cd C04; make -f gcc.makefile... and so on"
The gcc.makefile's are probably 100% correct :) .
I tried copying everything from dev-cpp\bin to command and in the
source-dir just calling "make gcc".
Also I tried calling "make
D:\BACKUP\e-books\BruceEckel\TICPP-2nd-ed-Vol-one-code\C02 gcc" (also
with backslashes converted to forward slashes).
I also tried every combination I could think of using c:\dev-cpp\bin\make
But always I get something like "nothing to be done for target...." or
"no rule to make target" or something like that.
I guess it would be enough for someone who got it to work under windows
to say how he calls make (or how he sets it up). I'm not stupid, just
not used to dos :) .
Luigi Santillo wrote:
>On Thu, Mar 13, 2003 at 12:42:02PM +0100, Glen Vermeylen wrote
>to the list asking about how to use makefiles ...
>
>
>Hi, Glen
>
>sorry for the strange quote, but my MUA doesn't cooperate with
>HTML mail too well. However, as for using Make, I've written a
>tiny tutorial some time ago (did you search the mail archive?),
>it is found at the site:
>www.gisan.freeurl.com
>
>It's more oriented to writing makefiles, but should get you
>started.
>
>
|
|
From: <M.G...@pi...> - 2003-03-14 08:37:28
|
Here is an article on debugging a GNU DLL called from a java program :- http://www-106.ibm.com/developerworks/java/library/j-jnidebug/ You can simply specify you exe in "execute->parameters" menu option in Dev-C++ and compile DLL in debug and set a breakpoint inside it. Should work ... in theory. Maurice |
|
From: Somanathan K. <som...@wi...> - 2003-03-14 06:36:30
|
I couldn't understand how the first one will work(without allocating =
memory
for p). This should crash soon or later.
Somanathan
-----Original Message-----
From: Andr=E9 Mac=E1rio Barros [mailto:and...@su...]=20
Sent: Friday, March 14, 2003 6:16 AM
To: Dev-Cpp-Users
Subject: [Dev-C++] Correct use of pointers
Gentlemen,
Even in the Ritchie=B4s books sometimes I fount .C codes using "wild
pointers" or something
like:
****************
void main()
{
int *p, a, b;
a=3D2;
b=3D3;
*p =3D a + b;
...
}
****************
But... in large programs we can have problems.
Would I be corret, allways, if I use insted a code like:
*********************
#include <stdlib.h> /* or alloc.h */
void main()
{
int *p, a, b;
p=3Dmalloc(1*sizeof(int));
a=3D2;
b=3D3;
*p =3D a + b;
...
free(p);
}
******************
1. It=B4s not necessary, but is it tecnically correct?
2. Is there any point, where the previous memory allocation is =
mandatory?
Thanks
Andre
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!=20
Get cracking and register here for some mind boggling fun and=20
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: <and...@su...> - 2003-03-14 00:46:21
|
Gentlemen,
Even in the Ritchie´s books sometimes I fount .C codes using "wild
pointers" or something
like:
****************
void main()
{
int *p, a, b;
a=2;
b=3;
*p = a + b;
...
}
****************
But... in large programs we can have problems.
Would I be corret, allways, if I use insted a code like:
*********************
#include <stdlib.h> /* or alloc.h */
void main()
{
int *p, a, b;
p=malloc(1*sizeof(int));
a=2;
b=3;
*p = a + b;
...
free(p);
}
******************
1. It´s not necessary, but is it tecnically correct?
2. Is there any point, where the previous memory allocation is mandatory?
Thanks
Andre
|
|
From: Napoleon A. <n_a...@ya...> - 2003-03-13 20:27:01
|
Thanks alot Damien, your solution helped get rid of the problem I had but I now get the following linker error: Compiler: Default compiler Building Makefile: "C:\Projects\OpenGl\Makefile.win" Executing make... make.exe -f "C:\Projects\OpenGl\Makefile.win" all gcc.exe bitmap_class.o main.o OGL.o -o "NHOpenGL.exe" -L"C:/MinGW/lib" -mwindows -lopengl32 -lglu32 main.o(.text+0x4ee):main.cpp: undefined reference to `__gxx_personality_sj0' make.exe: *** [NHOpenGL.exe] Error 1 Execution terminated --- Damien Alleyne <g_...@ho...> wrote: --------------------------------- This may be a silly response, but... did you include a glext.h header? This file has the definitions of most gl extensions you may use. I found out that the glext.h file is inside of the latest distribution of Mingw compilers, so include it in with the other OpenGL header files. __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Santiago <sa...@ho...> - 2003-03-13 14:46:03
|
Hi all, Does anyone know a good book for C++ algorithms? Thanks! San |
|
From: Mark S. <mar...@li...> - 2003-03-13 14:28:11
|
Correction: The following is nonsense-------------
>>I too have noticed that a console app compiled with 4.9.7.0 just flashes
on
>>the screen then disappears, no it's not a system("pause") problem as the
>>program has not reached the end, it works fine when launched from a MSDOS
>>prompt ?
I must have left my brain in bed ... :-)
bug in 4.9.7.0: _setcursortype(int type) in console app doesn't work all
values leave cursor on
Regards
Mark
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03
The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03
The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.
|
|
From: Glen V. <Gle...@pa...> - 2003-03-13 11:44:19
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body> A lot of tutorials supply the makefiles with the sourcecode (Bruce Eckels' Thinking in C++ for example) so I was wondering if someone here would be kind enough to explain step-by-step how to use Make under win32.<br> <br> </body> </html> |
|
From: Mark S. <mar...@li...> - 2003-03-13 11:42:14
|
The file conio.h in the include dir is incomplete in ver 4.9.7.0 but is
correct in ver 4.9.6.0
I too have noticed that a console app compiled with 4.9.7.0 just flashes on
the screen then disappears, no it's not a system("pause") problem as the
program has not reached the end, it works fine when launched from a MSDOS
prompt ?
Regards
Mark
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/02/03
The information contained in this e-mail message (and any attachment
transmitted herewith) is privileged and confidential and is intended for the
exclusive use of the addressee(s). If you are not an addressee, any
disclosure, reproduction, distribution or other dissemination or use of this
communication is strictly prohibited. If you have received this
communication in error, please contact us immediately so that we can correct
the error.
|
|
From: israel d. <is...@ya...> - 2003-03-13 09:05:14
|
__________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: <M.G...@pi...> - 2003-03-13 08:48:13
|
Hi,
I have seem many good articles on calling DEV-C++ DLL's from MSVC
exe's and vice versa however
they all use C and not C++
I am trying to develop C++ DLL's with Dev-C++ and allow them to be called
from MSVC C++ exe's.
The C++ name mangling used by GNU compiler and MS's compiler seems to be
completely different ?
Is it possible or can anyone point me to some relevant info ?
Maurice
|
|
From: Ioannis V. <iv...@in...> - 2003-03-13 07:00:19
|
-----------------------Original Message-----------------------
>From: ioana [mailto:io...@ip...]
>To: dev...@li...
[mailto:dev...@li...]
>Date: 12/3/2003 7:12:00 =F0=EC
>Subject: [Dev-C++] Executing a project
>
>Hi,
>
>I have Win XP Professional and I just installed Dev-C++. I created a new=
=20
>project, I compiled all files and I tried to execute the project. I=20
>couldn't see anywhere my project' s output. What can I do ?
>Thank you,
>Ginger
C:
#include <stdlib.h>
/* ... * /
int main(void)
{
/* ... */
system("pause");
return 0;
}
C++:
#include <cstdlib>
// ...
int main()
{
// ...
std::system("pause");
}
Ioannis Vranos=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys=20
|
|
From: Kevin L. <kla...@ya...> - 2003-03-12 23:35:19
|
Hello, I want to attach a dll to a running process so I can debug the dll. Can the latest release do this? My understanding is that the debugger is built over GDB which can certainly do it. Thank you, Kevin __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Wobien <wo...@pl...> - 2003-03-12 23:02:09
|
Add:
#include <stdlib.h>
at the beginning of your program and:
system("PAUSE");
at the end.
----- Original Message -----
From: Art Sadlo
To: dev...@li...
Sent: Wednesday, March 12, 2003 6:00 PM
Subject: [Dev-C++] Viewing executable file
Hello,
I have compiled a simple program using C++ but I don't see the compiled
program when I run it.
I'm using a compiler I down loaded from the web (bloodhed Dev-1 C++
4.9.7.0).
Got any ideas that I could try to view the executable? When I run the
compiled version, the screen flashes but no display window is present.
Regards,
Art
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
|
|
From: Napoleon A. <n_a...@ya...> - 2003-03-12 22:21:48
|
I have this problem compiling a sample program from www.GameTutorials.com and I get this error message. I'll apreaciate your help please. Compiler: Default compiler Building Makefile: "C:\Projects\OpenGl\Makefile.win" Executing make... make.exe -f "C:\Projects\OpenGl\Makefile.win" all gcc.exe -c main.cpp -o main.o -I"C:/MinGW/include" -D STRICT main.cpp: In function `bool LoadTexture()': main.cpp:302: `GL_BGR_EXT' undeclared (first use this function) main.cpp:302: (Each undeclared identifier is reported only once for each function it appears in.) make.exe: *** [main.o] Error 1 Execution terminated Thanx __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |
|
From: Art S. <art...@ya...> - 2003-03-12 17:00:25
|
Hello, I have compiled a simple program using C++ but I don't see the compiled program when I run it. I'm using a compiler I down loaded from the web (bloodhed Dev-1 C++ 4.9.7.0). Got any ideas that I could try to view the executable? When I run the compiled version, the screen flashes but no display window is present. Regards, Art --------------------------------- Do you Yahoo!? Yahoo! Web Hosting - establish your business online |
|
From: Predrag D. <Pre...@ep...> - 2003-03-12 14:50:06
|
Hello everybody, I am almost a beginner in C and C++. My main occupation is engineering. From time to time I need to do some programming in C. Since I use sometimes UNIX and sometimes Windows I have chosen the Dev C++ To cut to the point. Can someone explain me how to install a library in DevC++. For example I found a library blitz++ on the net http://www.oonumerics.org/blitz/ that I would like to use, there is a long manual on how to do it on UNIX, but I do not know how to do it on windows. They note that they use gcc and stuff so I think it can be done. Can someone explain (if it is not too long) how to install the package in general. Thank you in advance, Predrag |
|
From: <qa...@ho...> - 2003-03-12 09:00:48
|
Hi.
You probably need to put a system"(PAUSE"); statement at the end of the=
mainmethod. I suspect that the program runs fine but terminates so quickly=
that you cant see the console window.
main(){
// Your code goes here
system"PAUSE");
} // end of main method
/J=F6rgen
*********** REPLY SEPARATOR ***********
On 2003-03-12 at 15:54 ioana wrote:
>Hi,
>
>I have Win XP Professional and I just installed Dev-C++. I created a new
>project, I compiled all files and I tried to execute the project. I
>couldn't see anywhere my project' s output. What can I do ?
>Thank you,
>Ginger
>
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open!
>Get cracking and register here for some mind boggling fun and
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: ioana <io...@ip...> - 2003-03-12 04:55:33
|
Hi, I have Win XP Professional and I just installed Dev-C++. I created a new project, I compiled all files and I tried to execute the project. I couldn't see anywhere my project' s output. What can I do ? Thank you, Ginger |
|
From: Brian S. <blu...@at...> - 2003-03-12 04:11:23
|
Thanks! That got me heading in the right direction. Now all I need to do is
set the counter to work for multiple bullets being shot (because each time I
fire a new bullet, the old is deleted and a new is started) or limit the
number set the shot timer to not let the player shoot again until the last
is finished. Both should be fairly simple and I should be able to get them
going, but if not, you will hear from me again ;-) .
Thank you again for all the help!
-Brian
----- Original Message -----
From: "Tulius Lima" <tul...@ho...>
To: <blu...@at...>; <Dev...@li...>
Sent: Tuesday, March 11, 2003 9:09 PM
Subject: Re: [Dev-C++] Help with Game Problem
> Brian,
>
>
> I think you should re-organize your bullet code. Break the
upbullet()
> function in two: one that setup the bullet, and another one to update the
> bullet state.
>
> The first function should have the code that is located before you
> do..while loop, and it should be called when you detect the fire key
press.
>
> This second function should have the code thats inside your
do..while
> loop (but not the loop itself), and should be called from within your game
> loop (so you won't need the loop and the ship, as well as your other game
> entities, will be able to move).
>
> Hope this helps.
>
>
>
> Tulius
>
>
>
> >From: "Brian Savells" <blu...@at...>
> >To: "Allegro Group" <Dev...@li...>
> >Subject: Re: [Dev-C++] Help with Game Problem
> >Date: Tue, 11 Mar 2003 19:22:34 -0600
> >
> >While trying to implement your code, I noticed that it was very similar
to
> >my own method that I was using. I was setting a flag called end_game to 0
> >and if the escape key was pressed it would change to 1, therefore ending
> >the
> >game and shutting down. I implemented the new code anyways in hopes that
it
> >would work, but got the same results as with mine. Heres what my code
looks
> >like:
> >
> >void do_game()
> >{
> > do {
> > doInterrupt=true;
> > drawtext(); //Displays amount of bullets remaining
> > player1(); //These functions look at all the possible input keys
> > player2();
> > }while(!key[KEY_ESC]);
> >}
> >
> >My bullet function looks like this:
> >
> >void upbullet() //For bottom ship, bullet moving up
> >{
> > if(bcb<=0) { //check the counter. If 0, do nothing
> > }
> > else { //otherwise do this
> > bcb--; //subtract one from the counter
> > bottomb.x = bottom.x3; //bottomb is the name of my bullet structure
> > //bottom.x3 is reffering to the
> >bottom ship.
> > bottomb.y = bottom.y3 - 12;
> > do {
> > bottomb.draw(screen); //Draw the bullet
> > rest(1); // rest so that you can see it moving
> > bottomb.undraw(screen); // Undraw it
> > bottomb.y-=2; //move it up the screen 2
> > }while (bottomb.y >=-15); //do it until off the screen
> > }
> >}
> >
> >Now this works, but every time that you shoot, you can see the bullet
> >moving
> >up, but are not able to do anything else (like move the ship or fire
> >again),
> >because it is caught in the do-while loop for the bullet. How would I get
> >around this and let it shoot/do anything else while the bullet is still
> >moving upwords?
> >
> >Thanks!
> >-Brian
> >
> >----- Original Message -----
> >From: "Brian Savells" <blu...@at...>
> >To: <Dev...@li...>
> >Sent: Tuesday, March 11, 2003 6:45 PM
> >Subject: Re: [Dev-C++] Help with Game Problem
> >
> >
> > > Oh yes, forgot to mention that I am using the Allegro library. Ill try
> >the
> > > method that you gave me and see if that gets me anywhere.
> > >
> > > -Brian
> > >
> > >
> > > ----- Original Message -----
> > > From: "Robson Bernard" <rob...@su...>
> > > To: "Brian Savells" <blu...@at...>
> > > Sent: Tuesday, March 11, 2003 6:43 PM
> > > Subject: Re: [Dev-C++] Help with Game Problem
> > >
> > >
> > > > Have you tried allegro game library (compatible with Dev-C++)? With
> > > allegro
> > > > you have some great stuff to make games. Try www.talula.demon.co.uk
> >and
> > > > click the link to allegro library.
> > > >
> > > > Below a brief example of how to set interrupt handlers to manage
game
> > > timing
> > > > with allegro and c++. It makes a very stable timing:
> > > >
> > > > Hope it helps!
> > > >
> > > >
> > > > // this boolean variable prevents from jumping for the next game
step
> > > before
> > > > the time expected;
> > > > volatile bool doInterrupt;
> > > >
> > > >
> > > >
> > > > void refresh()
> > > > {
> > > > doInterrupt = false;
> > > > }
> > > > END_OF_FUNCTION(refresh)
> > > >
> > > >
> > > >
> > > > void doGame()
> > > > {
> > > > do {
> > > > doInterrupt = true; //sets another step
> > > >
> > > > //game stuff
> > > >
> > > > while(doInterrupt); //while doInterrup is true, the
game
> >does
> > > > not advance for the next step.
> > > > //this interval is set by
> >the
> > > > argument in the Install_Int funtion (in miliseconds).
> > > >
> > > > } while(!key[KEY_ESC]);
> > > >
> > > > }
> > > >
> > > >
> > > >
> > > > // this function sets an interrupt handler calling function
> >'refresh()'
> > > > every 50ms.
> > > > Install_int(refresh, 50);
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by:Crypto Challenge is now open!
> > > Get cracking and register here for some mind boggling fun and
> > > the chance of winning an Apple iPod:
> > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > > _______________________________________________
> > > Dev-cpp-users mailing list
> > > Dev...@li...
> > > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by:Crypto Challenge is now open!
> >Get cracking and register here for some mind boggling fun and
> >the chance of winning an Apple iPod:
> >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _________________________________________________________________
> MSN Messenger: converse com os seus amigos online.
> http://messenger.msn.com.br
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge is now open!
> Get cracking and register here for some mind boggling fun and
> the chance of winning an Apple iPod:
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Tulius L. <tul...@ho...> - 2003-03-12 03:09:35
|
Brian,
I think you should re-organize your bullet code. Break the upbullet()
function in two: one that setup the bullet, and another one to update the
bullet state.
The first function should have the code that is located before you
do..while loop, and it should be called when you detect the fire key press.
This second function should have the code thats inside your do..while
loop (but not the loop itself), and should be called from within your game
loop (so you won't need the loop and the ship, as well as your other game
entities, will be able to move).
Hope this helps.
Tulius
>From: "Brian Savells" <blu...@at...>
>To: "Allegro Group" <Dev...@li...>
>Subject: Re: [Dev-C++] Help with Game Problem
>Date: Tue, 11 Mar 2003 19:22:34 -0600
>
>While trying to implement your code, I noticed that it was very similar to
>my own method that I was using. I was setting a flag called end_game to 0
>and if the escape key was pressed it would change to 1, therefore ending
>the
>game and shutting down. I implemented the new code anyways in hopes that it
>would work, but got the same results as with mine. Heres what my code looks
>like:
>
>void do_game()
>{
> do {
> doInterrupt=true;
> drawtext(); //Displays amount of bullets remaining
> player1(); //These functions look at all the possible input keys
> player2();
> }while(!key[KEY_ESC]);
>}
>
>My bullet function looks like this:
>
>void upbullet() //For bottom ship, bullet moving up
>{
> if(bcb<=0) { //check the counter. If 0, do nothing
> }
> else { //otherwise do this
> bcb--; //subtract one from the counter
> bottomb.x = bottom.x3; //bottomb is the name of my bullet structure
> //bottom.x3 is reffering to the
>bottom ship.
> bottomb.y = bottom.y3 - 12;
> do {
> bottomb.draw(screen); //Draw the bullet
> rest(1); // rest so that you can see it moving
> bottomb.undraw(screen); // Undraw it
> bottomb.y-=2; //move it up the screen 2
> }while (bottomb.y >=-15); //do it until off the screen
> }
>}
>
>Now this works, but every time that you shoot, you can see the bullet
>moving
>up, but are not able to do anything else (like move the ship or fire
>again),
>because it is caught in the do-while loop for the bullet. How would I get
>around this and let it shoot/do anything else while the bullet is still
>moving upwords?
>
>Thanks!
>-Brian
>
>----- Original Message -----
>From: "Brian Savells" <blu...@at...>
>To: <Dev...@li...>
>Sent: Tuesday, March 11, 2003 6:45 PM
>Subject: Re: [Dev-C++] Help with Game Problem
>
>
> > Oh yes, forgot to mention that I am using the Allegro library. Ill try
>the
> > method that you gave me and see if that gets me anywhere.
> >
> > -Brian
> >
> >
> > ----- Original Message -----
> > From: "Robson Bernard" <rob...@su...>
> > To: "Brian Savells" <blu...@at...>
> > Sent: Tuesday, March 11, 2003 6:43 PM
> > Subject: Re: [Dev-C++] Help with Game Problem
> >
> >
> > > Have you tried allegro game library (compatible with Dev-C++)? With
> > allegro
> > > you have some great stuff to make games. Try www.talula.demon.co.uk
>and
> > > click the link to allegro library.
> > >
> > > Below a brief example of how to set interrupt handlers to manage game
> > timing
> > > with allegro and c++. It makes a very stable timing:
> > >
> > > Hope it helps!
> > >
> > >
> > > // this boolean variable prevents from jumping for the next game step
> > before
> > > the time expected;
> > > volatile bool doInterrupt;
> > >
> > >
> > >
> > > void refresh()
> > > {
> > > doInterrupt = false;
> > > }
> > > END_OF_FUNCTION(refresh)
> > >
> > >
> > >
> > > void doGame()
> > > {
> > > do {
> > > doInterrupt = true; //sets another step
> > >
> > > //game stuff
> > >
> > > while(doInterrupt); //while doInterrup is true, the game
>does
> > > not advance for the next step.
> > > //this interval is set by
>the
> > > argument in the Install_Int funtion (in miliseconds).
> > >
> > > } while(!key[KEY_ESC]);
> > >
> > > }
> > >
> > >
> > >
> > > // this function sets an interrupt handler calling function
>'refresh()'
> > > every 50ms.
> > > Install_int(refresh, 50);
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:Crypto Challenge is now open!
> > Get cracking and register here for some mind boggling fun and
> > the chance of winning an Apple iPod:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by:Crypto Challenge is now open!
>Get cracking and register here for some mind boggling fun and
>the chance of winning an Apple iPod:
>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
|