dev-cpp-users Mailing List for Dev-C++ (Page 318)
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: Matthews <dem...@uw...> - 2003-09-16 22:23:15
|
The bin paths are correct (c:\mingw\bin) and the program fields are filled in with gcc.exe, etc. Using the programs through msys 1.0 works fine. And I'm on WinME, so the config files are stored in the dev-c++ directory. At 07:56 PM 13/09/2003 +0200, Luigi Santillo wrote: >On Fri, Sep 12, 2003 at 04:24:02PM -0400, Matthews wrote: >> I recently started having problems with the compile feature of Dev-C++ >> (4.9.8.0 & 4.9.8.1) I have the MinGW pack installed in C:\MinGW and >> Dev-C++ should reference all programs from the /bin dir, but when I press >> F9 and the compiler window pops up, it says "..." where it should say >> "Compiling..." A make process starts, but doesn't do anything except crash >> Windows when I try to terminate it. This all happened when I tried to get >> BorlandC++ 3.0 to work with Dev-C++, and reinstalling MinGW or Dev-C++ >> won't change this problem. >> >> Help appreciated :D >> > >I'm not sure if I can help. However, to begin with, could you give >some detail about which actions you have taken to have Dev-C++ work >with the Borland compiler? > >Also, look into the directory where you installed Dev-C++, there you >should find (I'm speaking about 4.9.8.0 here, things shouldn't have >changed within the latest beta) the two files: "DEVCPP.ini" and >"devcpp.cfg", these hold some settings which are used by the IDE: >what's in there? I mean, do you still have the paths stemming from >"c:\borland" (I guess) or have you placed the ones pointing to Gcc? > >It sounds strange that reinstalling Dev-C++ hasn't fixed the problem. > >-- >>> gisan >> > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Matthews <dem...@uw...> - 2003-09-16 22:23:14
|
There's a non-ansi conio.h header and conio.c implementation that came with Dev-C++ 4.9.7.0, I believe it was removed in 4.9.8.0. The conio.c file is still around though (in \include) and you just have to construct a header to use it. I also have a compiled version of the conio library which I have sitting around, and works fine. At 10:50 AM 16/09/2003 -0300, Andr=E9 Mac=E1rio Barros wrote: >I have used getch() without problems. >clrscr(), gotoxy(), etc, I am using #include <conio.c> >instead of #include <conio.h> > >Andre > >>Message: 11 >>Date: Mon, 15 Sep 2003 21:49:17 -0300 >>From: "jmarcelo.alencar" <jma...@bo...> >>To: "devcpp" <dev...@li...> >>Subject: [Dev-C++] Getch() and clrscr() >> >>i have use devcpp for a week and i've noticed that=20 >>unlike Turbo C++ , the functions getch() and clrscr()=20 >>are not described in conio.h. I really like to work with=20 >>them and i wonder if anyone could help me with this .=20 > > > > >------------------------------------------------------- >This sf.net email is sponsored by:ThinkGeek >Welcome to geek heaven. >http://thinkgeek.com/sf >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Eric <eri...@cl...> - 2003-09-16 21:27:57
|
thanks for that I bookmarked that URL in my favorites, I will read later. are there any more around? ----- Original Message ----- From: "P.D. van Zelst" <pa...@my...> To: "'vasanthsena x'" <vas...@ya...>; <dev...@li...> Sent: Wednesday, September 17, 2003 9:12 AM Subject: RE: [Dev-C++] (no subject) omfg ..... when will people learn to search for things first (either on the forum, the mailing list, or Google), or learn to read the FAQ :| This question has been asked and answered millions of times already. First of all, my opinion's that you should run a console app from a command prompt, where you'll never have this problem (where it will in fact only annoy you if it waits for dummy input after executing). Second, read the faq: http://www14.brinkster.com/aditsu/dev-cpp-faq.html#pause -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of vasanthsena x Sent: Tuesday, September 16, 2003 10:55 PM To: dev...@li... Subject: [Dev-C++] (no subject) Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Eric <eri...@cl...> - 2003-09-16 21:25:01
|
either get your program to ask for another input
e.g.
int main ()
{
int a;
cout << "hello chap\n" << endl;
cin >> a;
return 0;
}
or you can use the "pause" statement
#include <stdio.h>
int main() {
printf("Hello !\n");
system("PAUSE");
}
----- Original Message -----
From: "vasanthsena x" <vas...@ya...>
To: <dev...@li...>
Sent: Wednesday, September 17, 2003 8:55 AM
Subject: [Dev-C++] (no subject)
Hi,
I am new to Dev Cpp and I have a question.When I run
my program the window closes automatically without
showing the result. How do i fix this problem.
S.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: P.D. v. Z. <pa...@my...> - 2003-09-16 21:11:57
|
omfg ..... when will people learn to search for things first (either on the forum, the mailing list, or Google), or learn to read the FAQ :| This question has been asked and answered millions of times already. First of all, my opinion's that you should run a console app from a command prompt, where you'll never have this problem (where it will in fact only annoy you if it waits for dummy input after executing). Second, read the faq: http://www14.brinkster.com/aditsu/dev-cpp-faq.html#pause -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of vasanthsena x Sent: Tuesday, September 16, 2003 10:55 PM To: dev...@li... Subject: [Dev-C++] (no subject) Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: vasanthsena x <vas...@ya...> - 2003-09-16 20:55:23
|
Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
|
From: Per W. <pw...@ia...> - 2003-09-16 19:48:59
|
They would share the same variable.
/Per W
On Tue, 16 Sep 2003, Bjorn Terelius wrote:
> If a static variable is declared inside a member function of a class, what
> would happen?
> That is, would all instances of the class use the same value, or would each
> instance have its own copy of the variable?
>
>
> The function is defined something like this:
>
> int Array::unshift() // unshift
> {
> static int *active=first;
>
> // the function is supposed to return the i:th element on the i:th call
>
> }
>
>
> Thanks for any help
> Bjorn Terelius
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Bjorn T. <bjo...@ho...> - 2003-09-16 19:13:42
|
If a static variable is declared inside a member function of a class, what
would happen?
That is, would all instances of the class use the same value, or would each
instance have its own copy of the variable?
The function is defined something like this:
int Array::unshift() // unshift
{
static int *active=first;
// the function is supposed to return the i:th element on the i:th call
}
Thanks for any help
Bjorn Terelius
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|
|
From: <ri...@un...> - 2003-09-16 16:37:55
|
yes sure, in your project options you should, I think, add the linking with the libraries you have noted before: C:\Dev-Cpp\Lib\libbgi.a C:\Dev-Cpp\Lib\libgdi32.a C:\Dev-Cpp\Lib\libuser32.a I hope it works. |
|
From: <ten...@ne...> - 2003-09-16 16:23:59
|
Try changing the ordering of the linker options.and adding one which is
something similar to -lmingw32 or so.
Paolo Santinelli wrote:
>Hi All,
>
>I need use the Borland Graphics Interface (graphics.h) under Dev-
>C++ V 4.9.8.0 installed on WinMe.
>
>I get some errors at compile time.
>
>I have downloaded the files to the correct locations
>
>winbgim.h (download to /Dev-C++/include)
>winbgim.cpp (download to /Dev-C++/include)
>libbgi.a (download to /Dev-C++/lib)
>
>and added -lbgi -lgdi32 in the "Further object files and linker options"
>field.
>
>My test code is:
>
>#include <winbgim.h>
>
> int main()
> {
> initwindow(400,300); //open a 400x300 graphics window
> moveto(0,0);
> lineto(50,50);
> while(!kbhit()); //wait for user to press a key
> closegraph(); //close graphics window
> return 0;
> }
>
>
>
>
>When compiled I get some errors:
>
>
>
>Compilatore: Default compiler
>Building Makefile: "C:\Dev-Cpp\Examples\bgi\Makefile.win"
>Finding dependencies for file: C:\Dev-Cpp\Examples\bgi\main.cpp
>Esecuzione di make...
>make.exe -f "C:\Dev-Cpp\Examples\bgi\Makefile.win" all
>g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-
>CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:
>/DEV-CPP/include" -lbgi -lgdi32
>
>In file included from main.cpp:1:
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BLACK'
>C:/DEV-CPP/include/conio.h:25: previous declaration as `COLORS BLACK'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BLUE'
>C:/DEV-CPP/include/conio.h:26: previous declaration as `COLORS BLUE'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `GREEN'
>C:/DEV-CPP/include/conio.h:27: previous declaration as `COLORS GREEN'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `CYAN'
>C:/DEV-CPP/include/conio.h:28: previous declaration as `COLORS CYAN'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `RED'
>C:/DEV-CPP/include/conio.h:29: previous declaration as `COLORS RED'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `MAGENTA'
>
>C:/DEV-CPP/include/conio.h:30: previous declaration as `COLORS MAGENTA'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BROWN'
>C:/DEV-CPP/include/conio.h:31: previous declaration as `COLORS BROWN'
>
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `LIGHTGRAY'
>C:/DEV-CPP/include/conio.h:32: previous declaration as `COLORS LIGHTGRAY'
>C:/DEV-CPP/include/winbgim.h:59: conflicting types for `DARKGRAY'
>C:/DEV-CPP/include/conio.h:33: previous declaration as `COLORS DARKGRAY'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTBLUE'
>
>C:/DEV-CPP/include/conio.h:34: previous declaration as `COLORS LIGHTBLUE'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTGREEN'
>
>C:/DEV-CPP/include/conio.h:35: previous declaration as `COLORS LIGHTGREEN'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTCYAN'
>
>C:/DEV-CPP/include/conio.h:36: previous declaration as `COLORS LIGHTCYAN'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTRED'
>C:/DEV-CPP/include/conio.h:37: previous declaration as `COLORS LIGHTRED'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTMAGENTA'
>C:/DEV-CPP/include/conio.h:38: previous declaration as `COLORS LIGHTMAGENTA'
>C:/DEV-CPP/include/winbgim.h:60: conflicting types for `YELLOW'
>C:/DEV-CPP/include/conio.h:39: previous declaration as `COLORS YELLOW'
>C:/DEV-CPP/include/winbgim.h:61: conflicting types for `WHITE'
>C:/DEV-CPP/include/conio.h:41: previous declaration as `COLORS WHITE'
>
>g++.exe main.o -o "Progetto1.exe" -L"C:/DEV-CPP/lib"
>
>G__~1.EXE: main.o: No such file or directory
>G__~1.EXE: no input files
>
>Esecuzione terminata
>
>
>Can Anybody help me ??
>
>
>Thanks in advance.
>
>Paolo Santinelli.
>
>
>
>
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
|
|
From: <ri...@un...> - 2003-09-16 16:00:24
|
yes sure, in your project options you should, I think, add the linking with the libraries you have noted before: C:\Dev-Cpp\Lib\libbgi.a C:\Dev-Cpp\Lib\libgdi32.a C:\Dev-Cpp\Lib\libuser32.a I hope it works. |
|
From: Paolo S. <snt...@ne...> - 2003-09-16 15:44:19
|
Hi Ricardo. I have done the changes. I still get errors. I think that is a should be a linker ettor ! Maby linker is not able to find these functions : initgraph, graphresult, initwindow, ... Thanke. Paolo Santinelli. Compilatore: Default compiler Building Makefile: "C:\Dev-Cpp\Examples\bgi\Makefile.win" Finding dependencies for file: C:\Dev-Cpp\Examples\bgi\main1.cpp Esecuzione di make... make.exe -f "C:\Dev-Cpp\Examples\bgi\Makefile.win" all g++.exe main1.o -o "Progetto1.exe" -L"C:/DEV-CPP/lib" main1.o(.text+0x46):main1.cpp: undefined reference to `initgraph' main1.o(.text+0x4e):main1.cpp: undefined reference to `graphresult' main1.o(.text+0x6d):main1.cpp: undefined reference to `initwindow' main1.o(.text+0x7a):main1.cpp: undefined reference to `setcolor' main1.o(.text+0x91):main1.cpp: undefined reference to `circle' main1.o(.text+0x9e):main1.cpp: undefined reference to `closegraph' Esecuzione terminata |
|
From: Amit D. <ami...@in...> - 2003-09-16 15:00:33
|
Its not "file" its "FILE" which is defined in stdio.h. Regards, Amit ----- Original Message -----=20 From: Thomas FREESURF=20 To: dev...@li...=20 Sent: Sunday, September 14, 2003 2:50 AM Subject: [Dev-C++] "file" type unrecognized ? I'm sure I will be riculous when I get the answer but anyway: I am writing my first program and the compiler says "parse error" = because it doesn't recognize the "file" word. I thought it was defined = in "stdio.h". Can someone help me please ? |
|
From: Eric <eri...@cl...> - 2003-09-16 14:55:20
|
has anybody written a microprocessor progran in C? I have no problem coding a microprocessor with machine code "hexadecimal" numbers I am sure I my C is OKAY, but I think the making the header files could be the problem. Maybe if someone could help it might be better going off the list, due to the off topic nature. From Eric |
|
From: Eric <eri...@cl...> - 2003-09-16 14:46:53
|
Do you have the code so we can try it out and get the message ----- Original Message -----=20 From: Thomas FREESURF=20 To: dev...@li...=20 Sent: Sunday, September 14, 2003 9:20 AM Subject: [Dev-C++] "file" type unrecognized ? I'm sure I will be riculous when I get the answer but anyway: I am writing my first program and the compiler says "parse error" = because it doesn't recognize the "file" word. I thought it was defined = in "stdio.h". Can someone help me please ? |
|
From: <ri...@un...> - 2003-09-16 14:44:48
|
I'm not sure but I think you should first to initialize the graphical mod=
e
with these sentences, for instance: (at least, in the past, I got to use=20
the
bgi library with success in dev-cpp),
********************************
int graphdriver =3D DETECT, graphmode;
initgraph(&graphdriver, &graphmode, "c:\\dev-cpp\\bgi");
if (graphresult() < 0) /* make sure initialized OK */
return;
// and here your graphical functions and code.
****************************************
and take care to include the correct header files:
#include <winbgim.h> /* For graphics library functions */
#include <stdlib.h> /* =BFFor kbhit( )? */
#include <stdio.h>
|
|
From: <and...@su...> - 2003-09-16 13:51:21
|
I have used getch() without problems. clrscr(), gotoxy(), etc, I am using #include <conio.c> instead of #include <conio.h> Andre >Message: 11 >Date: Mon, 15 Sep 2003 21:49:17 -0300 >From: "jmarcelo.alencar" <jma...@bo...> >To: "devcpp" <dev...@li...> >Subject: [Dev-C++] Getch() and clrscr() > >i have use devcpp for a week and i've noticed that >unlike Turbo C++ , the functions getch() and clrscr() >are not described in conio.h. I really like to work with >them and i wonder if anyone could help me with this . |
|
From: Paolo S. <snt...@ne...> - 2003-09-16 13:31:26
|
Hi All,
I need use the Borland Graphics Interface (graphics.h) under Dev-
C++ V 4.9.8.0 installed on WinMe.
I get some errors at compile time.
I have downloaded the files to the correct locations
winbgim.h (download to /Dev-C++/include)
winbgim.cpp (download to /Dev-C++/include)
libbgi.a (download to /Dev-C++/lib)
and added -lbgi -lgdi32 in the "Further object files and linker options"
field.
My test code is:
#include <winbgim.h>
int main()
{
initwindow(400,300); //open a 400x300 graphics window
moveto(0,0);
lineto(50,50);
while(!kbhit()); //wait for user to press a key
closegraph(); //close graphics window
return 0;
}
When compiled I get some errors:
Compilatore: Default compiler
Building Makefile: "C:\Dev-Cpp\Examples\bgi\Makefile.win"
Finding dependencies for file: C:\Dev-Cpp\Examples\bgi\main.cpp
Esecuzione di make...
make.exe -f "C:\Dev-Cpp\Examples\bgi\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/DEV-CPP/include/c++" -I"C:/DEV-
CPP/include/c++/mingw32" -I"C:/DEV-CPP/include/c++/backward" -I"C:
/DEV-CPP/include" -lbgi -lgdi32
In file included from main.cpp:1:
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BLACK'
C:/DEV-CPP/include/conio.h:25: previous declaration as `COLORS BLACK'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BLUE'
C:/DEV-CPP/include/conio.h:26: previous declaration as `COLORS BLUE'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `GREEN'
C:/DEV-CPP/include/conio.h:27: previous declaration as `COLORS GREEN'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `CYAN'
C:/DEV-CPP/include/conio.h:28: previous declaration as `COLORS CYAN'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `RED'
C:/DEV-CPP/include/conio.h:29: previous declaration as `COLORS RED'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `MAGENTA'
C:/DEV-CPP/include/conio.h:30: previous declaration as `COLORS MAGENTA'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `BROWN'
C:/DEV-CPP/include/conio.h:31: previous declaration as `COLORS BROWN'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `LIGHTGRAY'
C:/DEV-CPP/include/conio.h:32: previous declaration as `COLORS LIGHTGRAY'
C:/DEV-CPP/include/winbgim.h:59: conflicting types for `DARKGRAY'
C:/DEV-CPP/include/conio.h:33: previous declaration as `COLORS DARKGRAY'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTBLUE'
C:/DEV-CPP/include/conio.h:34: previous declaration as `COLORS LIGHTBLUE'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTGREEN'
C:/DEV-CPP/include/conio.h:35: previous declaration as `COLORS LIGHTGREEN'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTCYAN'
C:/DEV-CPP/include/conio.h:36: previous declaration as `COLORS LIGHTCYAN'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTRED'
C:/DEV-CPP/include/conio.h:37: previous declaration as `COLORS LIGHTRED'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `LIGHTMAGENTA'
C:/DEV-CPP/include/conio.h:38: previous declaration as `COLORS LIGHTMAGENTA'
C:/DEV-CPP/include/winbgim.h:60: conflicting types for `YELLOW'
C:/DEV-CPP/include/conio.h:39: previous declaration as `COLORS YELLOW'
C:/DEV-CPP/include/winbgim.h:61: conflicting types for `WHITE'
C:/DEV-CPP/include/conio.h:41: previous declaration as `COLORS WHITE'
g++.exe main.o -o "Progetto1.exe" -L"C:/DEV-CPP/lib"
G__~1.EXE: main.o: No such file or directory
G__~1.EXE: no input files
Esecuzione terminata
Can Anybody help me ??
Thanks in advance.
Paolo Santinelli.
|
|
From: Ray K. <he...@er...> - 2003-09-16 06:27:09
|
> Date: Mon, 15 Sep 2003 21:49:17 -0300
> From: "jmarcelo.alencar" <jma...@bo...>
> To: "devcpp" <dev...@li...>
> Subject: [Dev-C++] Getch() and clrscr()
>
> i have use devcpp for a week and i've noticed that unlike Turbo C++ ,
> the functions getch() and clrscr() are not described in conio.h. I really
> like to work with them and i wonder if anyone could help me with this .
getch() and clrscr() aren't ANSI defined functions, so not every compiler
will have them. If you want to clear the screen,
use system("cls"); , included in #stdlib.h This calls the DOS function
that clears the screen. It's not portable, but neither is
clrscr(), and it's easy enough to change it, assuming the system you're
porting to has a built in clearscreen function. (In *nix, it's
system("clear"), for example.)
getch() may or may not have a working equivilant, depending on what you use
it for. If you just need to pause the screen, you can either use
system("pause"); (in which case the 'Press any key to continue.' message
will automatically be displayed), or getchar();, which is portable, but
requires you to hit enter to continue (not any key).
If you need getch() to actually record keypresses, you'll need to install
either the conio.h from TC++ or ncurses.h (I think that has a getkey
function, and possibly a clrscr() one too, but I'm not sure. If it does,
you should use that one, since it's more portable.)
|
|
From: jmarcelo.alencar <jma...@bo...> - 2003-09-16 00:49:51
|
i have use devcpp for a week and i've noticed that unlike Turbo C++ , the functions getch() and clrscr() are not described in conio.h. I really like to work with them and i wonder if anyone could help me with this . __________________________________________________________________________ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - =C9 gr=E1tis! http://antipopup.uol.com.br/ |
|
From: Ed C. <em...@to...> - 2003-09-15 22:44:29
|
Hi all, I'm working on a database app and need to limit the recordset size. I've been trying to do this with SQLSetStmtAttr() and the attribute SQL_ATTR_MAX_ROWS, but it appears that the driver considers my request invalid, as it returns that code, then sets the max rows to the default = (0 =3D all rows).=20 The database driver that is causing the trouble is FoxPro; is this = because the FoxPro ODBC driver doesn't support that attribute? I can't find = anything useful on Google... Thanks! -Ed |
|
From: <or...@vp...> - 2003-09-15 20:07:55
|
Hi! You will also need to set the "Library Path" for the linker. The linker will search for the libraries (and also for directly the DLLs) in those places. It is given in the Project options->Directories->Library dirs tab. Or you just simply click on the add library button, then browse to the DLL. gcc can use the DLL directly for linking. -- Greetings, Balázs |
|
From: <and...@su...> - 2003-09-15 19:56:04
|
GREAT... Thank you all!
One last question: inline functions provide more speed. No
doubt about that. But,
Are inline functions allowed in C or only in C++?
Regards
Andre Barros
ps1: regarding the prototype stuff, probably I will make a test with
20 dummy functions been called by the main function and compare
to its "mirror" case (without prototypes).
ps2: very interesting the answer to the main stuff :-)
-----Mensagem original-----
De: Per Westermark [mailto:pw...@ia...]
Enviada em: segunda-feira, 15 de setembro de 2003 14:24
Para: Ricardo_López-Ruiz
Cc: André Macário Barros; Dev-C
Assunto: Re: ENC: [Dev-C++] Two Questions
1) Normally, it doesn't matter if the compiler sees just a function
prototype or if it sees the complete implementation before you call a
function. However, some compilers have a compiler switch that allows the
compiler to itself select functions for inlining. Obviously, with only a
function prototype it can't inline the function. However, if the code is
in the same source file, but after the call, the compiler is probably
smart enough to find it anyway, since most compilers doesn't generate any
code immediately for release build, but only builds parse trees in memory
before performing the different optimization steps.
2) You can compile a program without a main() but you can't link the
program. The startup code hidden somewhere inside the run-time-library
code does contain a call to a main function. Either you have to supply it,
or it must be available in a object or library file included in the
linking. For Windows, one of the Windows libraries contains a main().
/Per W
On Mon, 15 Sep 2003, Ricardo_López-Ruiz wrote:
> question 1):
> Try to build a program with the 2 possibilities you are proposing
> and keep the running time in both cases... after that, you could tell us
> the result...
> as you say it seems that there wont be any difference, that is,
> the final binary code is the same in both cases.
>
> question 2): the main function is not needed to run, if not essentially
> to compile the code...without the main function the compiler doesnot know
> where the nucleus of the program is, then the compiler can not compile...
> it is the 'door' toward the code...without 'door' you can not go into...
>
>
> hope it helps you,
> Ricardo.
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <gen...@ya...> - 2003-09-15 19:06:43
|
Andrew, i think what you need to do is to link with the .a library for the DirectX dll you mentioned. that would allow the linker to resolve the undefined references you mentioned. as to which particular file you might need to link to, i have no idea, but you might want to try -ld3ddx8 or something similar. hope this info comes in handy, cheers --------------------------------- Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger |
|
From: Per W. <pw...@ia...> - 2003-09-15 17:24:21
|
1) Normally, it doesn't matter if the compiler sees just a function prototype or if it sees the complete implementation before you call a function. However, some compilers have a compiler switch that allows the compiler to itself select functions for inlining. Obviously, with only a function prototype it can't inline the function. However, if the code is in the same source file, but after the call, the compiler is probably smart enough to find it anyway, since most compilers doesn't generate any code immediately for release build, but only builds parse trees in memory before performing the different optimization steps. 2) You can compile a program without a main() but you can't link the program. The startup code hidden somewhere inside the run-time-library code does contain a call to a main function. Either you have to supply it, or it must be available in a object or library file included in the linking. For Windows, one of the Windows libraries contains a main(). /Per W On Mon, 15 Sep 2003, Ricardo_L=F3pez-Ruiz wrote: > question 1): > Try to build a program with the 2 possibilities you are proposing > and keep the running time in both cases... after that, you could tell us > the result... > as you say it seems that there wont be any difference, that is, > the final binary code is the same in both cases. > > question 2): the main function is not needed to run, if not essentially > to compile the code...without the main function the compiler doesnot know > where the nucleus of the program is, then the compiler can not compile... > it is the 'door' toward the code...without 'door' you can not go into... > > > hope it helps you, > Ricardo. > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |