dev-cpp-users Mailing List for Dev-C++ (Page 336)
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: David M. <ci...@ya...> - 2003-08-03 02:05:41
|
Small problem. Room descriptions are strings of variable length. Also the exit descriptions are included in the same structure(also varible length strings). This can cause the size of a room to vary greatly). This might still work if I were to put a limit on how long a room description could be and padd shorter descriptions to make it equal the standard size ----- Original Message ----- From: "Kevin Wood" <ke...@me...> To: "Dev-C Mailing List" <dev...@li...> Sent: Friday, August 01, 2003 7:58 PM Subject: Re: [Dev-C++] Quick flat-file searching and I/O > Hi everyone, > > I think the quickest way to access a portion of a file is to structure it, > then use the fseek function from stdio. > > In the case we are considering, the data for each room should be about the > same size. For example, if the data for a room is 500 bytes, each room's > data can be stored in a file at 500 byte intervals, then accessed using the > standard library routines. So to access room 50, you would set the file > pointer at 50 x 500. > fseek(room_file_pointer, room_number * 500, SEEK_SET); > > If the data for each object is large, several files may be needed, maybe > with an index file. > > Kev. > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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 __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
|
From: Graham <sai...@bi...> - 2003-08-03 01:45:55
|
----- Original Message ----- From: "Ed Cottrell" <em...@ed...> To: <dev...@li...> Sent: Sunday, August 03, 2003 8:31 AM Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > Yeoh - > > That was perfect! Thank you. I'll be bookmarking your homepage! God bless. > > -Ed > > > -----Original Message----- > From: Yeoh HS [mailto:ye...@ye...] > Sent: Thursday, July 31, 2003 10:10 PM > To: Ed Cottrell; dev...@li... > Subject: Re: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > > ----- Original Message ----- > From: "Ed Cottrell" <em...@ed...> > That's just it - I don't know how to connect to the database from C or C++. > I know the database end of things (SQL, recordsets, all that); I just don't > know how to access the database, at all, with C code. -Ed > > Hi, > > I have written an example program that shows how to access Microsoft Access > databases using Dev-C++ without requiring the end-user to set up a DSN.. > > By changing the connection string, you should be able to access FoxPro > databases. > > To download the free example program, the URL is: > http://www.yeohhs.com/free/portal.asp > > Best Regards, > Yeoh > -- > P.S. More free downloads for Dev-C++ users at http://www.yeohhs.com > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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: Ed C. <em...@ed...> - 2003-08-02 23:02:07
|
Yeoh - That was perfect! Thank you. I'll be bookmarking your homepage! God bless. -Ed -----Original Message----- From: Yeoh HS [mailto:ye...@ye...] Sent: Thursday, July 31, 2003 10:10 PM To: Ed Cottrell; dev...@li... Subject: Re: [Dev-C++] OT: Connecting to FoxPro databases with a DSN ----- Original Message ----- From: "Ed Cottrell" <em...@ed...> That's just it - I don't know how to connect to the database from C or C++. I know the database end of things (SQL, recordsets, all that); I just don't know how to access the database, at all, with C code. -Ed Hi, I have written an example program that shows how to access Microsoft Access databases using Dev-C++ without requiring the end-user to set up a DSN.. By changing the connection string, you should be able to access FoxPro databases. To download the free example program, the URL is: http://www.yeohhs.com/free/portal.asp Best Regards, Yeoh -- P.S. More free downloads for Dev-C++ users at http://www.yeohhs.com |
|
From: Roberto S. <ro...@sa...> - 2003-08-02 22:35:45
|
Abhijit, thanks for your quick reply. The compiler itself i= s a modified gcc for ARM processors. The SDKs which contains= the compilers are for free downlaod at: http://www.symbian= .com/developer/SDKs.html (purpose of the SDKs is integration= with Metroworks Codewarrior IDE) The downloads are huge and= a big hassle to install ! In case you choose to install the= SDKs, do not install the emulator for the UIQ-SDK, beacuse i= t requires the Metroworks IDE. Otherwise I can sent you (next= week) just the (automatically generated) makefiles for some = example projects, maybe this is enough, and you do not need t= o install the SDKs. What do you think ? regards Roberto >= -----Original Message----- > From: Abhijit Shylanath <mudet= h...@gm...> > Sent: Sat Aug 02 23:18:29 CEST 2003 > To: "Rober= to Saccon" <ro...@sa...>; <dev...@li...= rge.net> > Cc: > > > > Hello, Roberto. > > > Has anybody managed to integrate the Symbian C++ SDKs in= to > > dev-C++ for compiling code targeted to mobile devices ? > > I assume you are talking about using a C++ > cross-compile= r, or whatever it is > called, in Dev-C++. > > I have written a utility to allow Dev-C++ to use > unsuppo= rted compilers (by > mapping arguments and re-formatting outp= ut). It > is available here: > > http://mudeth.tripod.com/dev_star.html > > As of now, there is support only for Turbo C++ > (tested) = and Borland C++ 5.0 > (untested). However, if you can point o= ut a > working copy of the compiler, > I'll be glad to write = a plug-in for it. > > -- > Abhijit Shylanath > Homepage: http://mudeth.tripod.com/ |
|
From: Abhijit S. <mu...@gm...> - 2003-08-02 21:17:46
|
Hello, Roberto. > Has anybody managed to integrate the Symbian C++ SDKs into > dev-C++ for compiling code targeted to mobile devices ? I assume you are talking about using a C++ cross-compiler, or whatever it is called, in Dev-C++. I have written a utility to allow Dev-C++ to use unsupported compilers (by mapping arguments and re-formatting output). It is available here: http://mudeth.tripod.com/dev_star.html As of now, there is support only for Turbo C++ (tested) and Borland C++ 5.0 (untested). However, if you can point out a working copy of the compiler, I'll be glad to write a plug-in for it. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: Roberto S. <ro...@sa...> - 2003-08-02 20:56:45
|
Has anybody managed to integrate the Symbian C++ SDKs into de= v-C++ for compiling code targeted to mobile devices ? Robert= o |
|
From: <or...@vp...> - 2003-08-02 19:34:08
|
P.D. van Zelst wrote: > I wonder if this will get considered at all, but anyway. I find the > default shortcut for closing the current file quite annoying (I don't > even know if it's customizable)... Alt+F4 is used throughout Windows for > closing the entire application, and Ctrl+F4 is used (within MDI apps) > for closing the current MDI child window... it's not proper style for > Dev-C++ to go ahead and switch those around.. using Alt+F4 for closing a > file (and I can't seem to find a shortcut for closing the application). > I wonder if this could be changed to the default Windows behaviour... > Alt+F4 for closing the application, Ctrl+F4 for closing the current > file. I also find this VERY annoying. I hope the devs will fix it sometime. -- Greetings, Balázs |
|
From: <or...@vp...> - 2003-08-02 19:32:40
|
Pukara Rob wrote: > Thank you for helping me. > Yes actualy the file contains the following: > > > #ifdef linux > #include <stdio.h> > #endif > > which I guess means the include is done only for linux but since I wortk > for windows... > I wonder why the designers of that system put that line. Any idea...? I dunno. What exactly is this library, that you are working with? > ---------------------------------------------------------------------------------------------------------------- > Another question. In another file called arutils.h I got > > #ifdef WIN32 > #include <sys/timeb.h> > #endif > #ifdef linux > #include <sys/time.h> > #include <unistd.h> > #endif > > and as a result I got an error message saying that: > > C:\\PROGRA~1\\ACTIVM~1\\ARIA\\include\\ariaUtil.h:558: `time_t' was not > declared in this scope > Can someone tell me about these library details diferences in windows > and linux??? Yes, as you see, it tells you, that time_t is not declared. Which means, that (assuming you have -DWIN32 on command line) sys/timeb.h is not going to be good for you. I suppose, that they used MSVC for the library's Windows port, and probably sys/timeb.h worked well for them. It is only my guess though. Anyway, if you look at <sys/time.h>, you'll notice, that it actually includes <time.h>, which has time_t. So what you need is: <sys/time.h> I guess you already noticed all the above, as you asked about the difference details. I cannot tell you that, as I have never worked with time stuff under linux. Maybe a linux guru here can tell you more. I hope this helps. -- Greetings, Balázs |
|
From: <or...@vp...> - 2003-08-02 19:20:35
|
Dennis Möhlmann wrote: > Hello dev-cpp-users, > > I want to compile code from an OpenGL tutorial that uses libjpeg to read > textures from a jpeg file. Unfortunatly, whenever I try to compile the code, I > get linker errors for all libjpeg functions. (I use the -ljpeg parameter.) > > I searched the Dev C++ forums and a lot of other people seem to have the same > problem, but none of them received a helpful reply. Maybe somebody here knows > a sollution ? Yes, I know the solution. But I'll keep it a secret, until you tell me the errors you get. ;) -- Greetings, Balázs |
|
From: P.D. v. Z. <pd...@xs...> - 2003-08-02 18:30:44
|
Hi, I wonder if this will get considered at all, but anyway. I find the default shortcut for closing the current file quite annoying (I don't even know if it's customizable)... Alt+F4 is used throughout Windows for closing the entire application, and Ctrl+F4 is used (within MDI apps) for closing the current MDI child window... it's not proper style for Dev-C++ to go ahead and switch those around.. using Alt+F4 for closing a file (and I can't seem to find a shortcut for closing the application). I wonder if this could be changed to the default Windows behaviour... Alt+F4 for closing the application, Ctrl+F4 for closing the current file. Thanks in advance, Paul |
|
From: <ri...@te...> - 2003-08-02 15:31:54
|
Hi
How can i use the profiler in Dev C++ ? I check the correct linker
options ('generate debug information' and 'generate profiling
information' too) both in the proyect options and compiler options (just
to make sure ;)
But after building successfully my app I get the following messege when
I choose "Profiler Analysis" from Compile Menu:
"Please run the proyect at least once so that profiling info is
generated..."
And yes, I´ve run my proyect not once but n-times and i still get the error.
Any help will be appreciated
Thanks in advance
--
---------------------------------------------------
Ricardo Amores Hernández
ICQ: 19463735
MSN: zheo_ (at) hotmail (dot) es
---------------------------------------------------
|
|
From: Pukara R. <puk...@ya...> - 2003-08-02 12:52:10
|
Thank you for helping me. Yes actualy the file contains the following: #ifdef linux #include <stdio.h> #endif which I guess means the include is done only for linux but since I wortk for windows... I wonder why the designers of that system put that line. Any idea...? Since this is the first time I work withprogramming in windows I have none. Anyway I send a message asking that to the designers of the system. I hope they answer as fast as you. Thank you very much.. ---------------------------------------------------------------------------------------------------------------- Another question. In another file called arutils.h I got #ifdef WIN32 #include <sys/timeb.h> #endif #ifdef linux #include <sys/time.h> #include <unistd.h> #endif and as a result I got an error message saying that: C:\\PROGRA~1\\ACTIVM~1\\ARIA\\include\\ariaUtil.h:558: `time_t' was not declared in this scope Can someone tell me about these library details diferences in windows and linux??? Thanks a lot!!! --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |
|
From: <lis...@da...> - 2003-08-02 07:47:10
|
Hello dev-cpp-users, I want to compile code from an OpenGL tutorial that uses libjpeg to read textures from a jpeg file. Unfortunatly, whenever I try to compile the code, I get linker errors for all libjpeg functions. (I use the -ljpeg parameter.) I searched the Dev C++ forums and a lot of other people seem to have the same problem, but none of them received a helpful reply. Maybe somebody here knows a sollution ? Thanks, Dennis |
|
From: <or...@vp...> - 2003-08-02 06:58:03
|
Pukara Rob wrote: > Hello everybody. I would appreciate very much if someone can answer me > the following: > > > 1) I am using a system with some libraries. When I try to compile a > program with those libraries I get a lot of errors. But just check the > first one: > > C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: ANSI C++ forbids > declaration `FILE' with no type > C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: parse error before `*' > > > Now checking that line in "ArLog.h" we have: > > protected: > static FILE *ourFP; > > But that is a prefectly fine line as fas as I know. Why does DevC++ > protest about this? Ansi forbids FILE with no type???? I don't get it. Does ArLog.h include stdio.h anywhere? > 2) Hasnt nobody notice the mistake in file > "c:\dev-c...\include\winsock2.h " > > In the last lines there is a '#' missing which makes the compile protest > of unbalanced #endif's > Did someone notice? Is it a mistake of DevC++? No, it is likely a mistake of MinGW, the compiler in Dev-C++. Head on to http://www.mingw.org for details, and send a bug report. It is good that you have found it. But first, download the latest Win32 API headers and libraries from the website (win32api), and see if it is fixed. -- Greetings, Balázs |
|
From: <or...@vp...> - 2003-08-02 06:54:12
|
Richard Chiu wrote:
> heck he's programming for DOS, let him use system("PAUSE").
> it goes against the very nature of programming to get() or cin or scanf etc when you dont want to!
> i mean, sure it does the trick, but it doesnt 'wait for an 'enter'' it waits to read in the next character or string or whatever.
Yes, but because of buffering, it will only return, when you press an
'enter'. And actually, I was wrong, it is getchar().
--
Greetings,
Balázs
|
|
From: Pukara R. <puk...@ya...> - 2003-08-02 04:36:56
|
Hello everybody. I would appreciate very much if someone can answer me the following: 1) I am using a system with some libraries. When I try to compile a program with those libraries I get a lot of errors. But just check the first one: C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: ANSI C++ forbids declaration `FILE' with no type C:\PROGRA~1\ACTIVM~1\ARIA\include\ArLog.h:83: parse error before `*' Now checking that line in "ArLog.h" we have: protected: static FILE *ourFP; But that is a prefectly fine line as fas as I know. Why does DevC++ protest about this? Ansi forbids FILE with no type???? I don't get it. 2) Hasnt nobody notice the mistake in file "c:\dev-c...\include\winsock2.h " In the last lines there is a '#' missing which makes the compile protest of unbalanced #endif's Did someone notice? Is it a mistake of DevC++? (Which by the way is wonderful! because I have never have hade these kind of weird errors and that is wyh I am perplexed) Please Help me. --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software |
|
From: Daniel K. O. <dan...@ya...> - 2003-08-02 03:46:00
|
Graham wrote:
>My Question Is
>is the not a setting in DEV-C that will make it keep the window open??
>eg this is a DEV-C question not a C programming question
>
>
>
1) Go to Tools menu -> Configure tools
2) Click the Add button
3) Type:
Title: Run in a DOS box
Program: c:\windows\command.com
Working directory: <PROJECTPATH>
Parameters: /K <EXENAME>
4) Every time you want to run it, go to Tools -> Run in a DOS box.
Daniel K. O.
|
|
From: Graham <sai...@bi...> - 2003-08-02 02:49:37
|
The debate about which piece of code to use to stop the window from closing
is very interesting and educational and I thank all contributors
BUT
My question is can it be done without adding code.
The problem only occurs when I compile and run in DEV-C
When I take the work in to uni, they run it on grasp or something else where
this problem doesnt occur.
SO
My Question Is
is the not a setting in DEV-C that will make it keep the window open??
eg this is a DEV-C question not a C programming question
thanking all for your assistance
Graham
----- Original Message -----
From: "Richard Chiu" <tel...@ya...>
To: <dev...@li...>
Sent: Saturday, August 02, 2003 11:45 AM
Subject: Re: [Dev-C++] why does window close after execution? newbie
heck he's programming for DOS, let him use system("PAUSE").
it goes against the very nature of programming to get() or cin or scanf etc
when you dont want to!
i mean, sure it does the trick, but it doesnt 'wait for an 'enter'' it waits
to read in the next character or string or whatever.
i dunno, i'm being pedantic i know. ;)
but how many other platform have console windows which open and close like
they do in windows??
1/08/03 9:31:46 PM, OROSZI Balázs <or...@vp...> wrote:
>Graham wrote:
>
>> I have installed Dev-C under Win XP Pro
>> and am running the traditional "Hello World" as the first exercise in my
>> tutorial.
>> When it is compiled and run it instantly closes the window after
>> printing to the screen. I therefore cant see the output.
>> Is there a way to change this with a setting of DEV-C or will I have to
>> put up with adding some sort of pause statement at the end of everything
>> I write?
>>
>> my code looks like this
>> /*
>> *Hello, "Hello World.\n"
>> */
>> #include <iostream>
>> int main ()
>> {
>> cout<<"Hello, world.\n";
>> return 0;
>> }
>
>This is indeed a VVVVVFAQ (very-very-very-very-...).
>BTW this is absolutely NORMAL behaviour. To make the dos-prompt stay,
>you need to pause your program at the end. Use this line before return:
>
>getc();
>
>This will wait for an "Enter".
>(I don't like system("PAUSE"), as that is platform-dependent).
>
>--
>Greetings,
> Balázs
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>_______________________________________________
>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 sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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: Nancy A. <nai...@ho...> - 2003-08-02 02:15:13
|
<html><div style='background-color:'><DIV>How I get read dats of a archive and how I get print the results in a archive.</DIV> <DIV> </DIV> <DIV>Somebody can help me.</DIV> <DIV>Thanks</DIV> <DIV> </DIV></div><br clear=all><hr>Charla con tus amigos en línea mediante MSN Messenger: <a href="http://g.msn.com/8HMNES/2731??PS=">Haz clic aquí</a> </html> |
|
From: Richard C. <tel...@ya...> - 2003-08-02 02:08:47
|
heck he's programming for DOS, let him use system("PAUSE").=20
it goes against the very nature of programming to get() or cin or scanf e=
tc when you dont want to!
i mean, sure it does the trick, but it doesnt 'wait for an 'enter'' it wa=
its to read in the next character or string or whatever.
i dunno, i'm being pedantic i know. ;)
but how many other platform have console windows which open and close lik=
e they do in windows??
1/08/03 9:31:46 PM, OROSZI Bal=E1zs <or...@vp...> wrote:
>Graham wrote:
>
>> I have installed Dev-C under Win XP Pro
>> and am running the traditional "Hello World" as the first exercise in =
my=20
>> tutorial.
>> When it is compiled and run it instantly closes the window after=20
>> printing to the screen. I therefore cant see the output.
>> Is there a way to change this with a setting of DEV-C or will I have t=
o=20
>> put up with adding some sort of pause statement at the end of everythi=
ng=20
>> I write?
>> =20
>> my code looks like this
>> /*
>> *Hello, "Hello World.\n"
>> */
>> #include <iostream>
>> int main ()
>> {
>> cout<<"Hello, world.\n";
>> return 0;
>> }
>
>This is indeed a VVVVVFAQ (very-very-very-very-...).
>BTW this is absolutely NORMAL behaviour. To make the dos-prompt stay,=20
>you need to pause your program at the end. Use this line before return:
>
>getc();
>
>This will wait for an "Enter".
>(I don't like system("PAUSE"), as that is platform-dependent).
>
>--
>Greetings,
> Bal=E1zs
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01=
/01
>_______________________________________________
>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: Kevin W. <ke...@me...> - 2003-08-02 00:02:26
|
Hi everyone,
I think the quickest way to access a portion of a file is to structure it,
then use the fseek function from stdio.
In the case we are considering, the data for each room should be about the
same size. For example, if the data for a room is 500 bytes, each room's
data can be stored in a file at 500 byte intervals, then accessed using the
standard library routines. So to access room 50, you would set the file
pointer at 50 x 500.
fseek(room_file_pointer, room_number * 500, SEEK_SET);
If the data for each object is large, several files may be needed, maybe
with an index file.
Kev.
|
|
From: Abhijit S. <mu...@gm...> - 2003-08-01 20:46:58
|
Hello! > gluPerspective(45.0f,(GLfloat)(App.Window.Width / > App.Window.Height),0.1f,100.0f); Here's a shot... try this: gluPerspective(45.0f, (GLfloat)App.Window.Width / App.Window.Height, 0.1f, 100.0f); Note the missing braces. This has probably to do with the order of type-casting. -- Abhijit Shylanath Homepage: http://mudeth.tripod.com/ |
|
From: David M. <ci...@ya...> - 2003-08-01 19:02:00
|
That looks quite interesting... Would save me the trouble of re-writing the current file format. ----- Original Message ----- From: "Yeoh HS" <ye...@ye...> To: <ci...@ya...>; "Dev-C Mailing List" <dev...@li...> Sent: Thursday, July 31, 2003 10:15 PM Subject: Re: [Dev-C++] Quick flat-file searching and I/O > ----- Original Message ----- > From: "David McKen" <ci...@ya...> > > Application is used to store world data for a game. We wish > > to use mySQL (or some other SQL database) as well asbe able > > to store data in flat-files. > > For a database, you might want to check out SQLite. > > Here's some info from its website. > "SQLite is a C library that implements an embeddable SQL database engine. > Programs that link with the SQLite library can have SQL database access > without running a separate RDBMS process. SQLite is not a client library > used to connect to a big database server. SQLite is the server. The SQLite > library reads and writes directly to and from the database files on disk." > > The URL is: > http://www.sqlite.org > > > Best Regards, > Yeoh > -- > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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 __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
|
From: Daniel G. <sp...@ho...> - 2003-08-01 18:50:51
|
I think you'd best post this function... >From: "Ed Cottrell" <em...@to...> >To: <dev...@li...> >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN >Date: Thu, 31 Jul 2003 22:57:17 -0400 > > >did you not say the MS tutorial compiled? does that not connect? > >It does compile (after a few modifications - it had some botched includes), >but it exits without an error or anything. I've tried setting breakpoints >and stepping into it, so I isolated the point at which it exits (on an "if" >statement to determine if the query was successful, but I don't know which >fork of the "if" it's following - it just exits and never makes it to the >"if" commands OR the "else" commands). No dialog box or message box, no >error message, nothing. > >Plus, it only demonstrates doing it with a DSN. The nature of this project >demands that it be done without a DSN (because there are two many databases >and too many client machines involved, and neither is expected to stay at >all constant in number). > >-Ed > > >-----Original Message----- >From: dev...@li... >[mailto:dev...@li...] On Behalf Of Daniel >Glenfield >Sent: Thursday, July 31, 2003 11:49 AM >To: em...@ed...; dev...@li... >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > >did you not say the MS tutorial compiled? does that not connect? > > > >From: "Ed Cottrell" <em...@ed...> > >To: <dev...@li...> > >Subject: RE: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > >Date: Thu, 31 Jul 2003 09:53:58 -0400 > > > > > Do you get a connection to the database? If so can you perform a > > > simple > >SQL > > > >That's just it - I don't know how to connect to the database from C or > >C++. I know the database end of things (SQL, recordsets, all that); I > >just don't know how to access the database, at all, with C code. > > > >-Ed > > > > > > > > >From: "Ed Cottrell" <em...@to...> > > >To: "'Dev-C++ users'" <dev...@li...> > > >Subject: [Dev-C++] OT: Connecting to FoxPro databases with a DSN > > >Date: Wed, 30 Jul 2003 16:26:37 -0400 > > > > > >Hi all - > > > > > >I know this is not a Dev-C++ post, but I'm a little new to C and am > > >desperate for help. I have to convert a Visual Basic program (which I > > >wrote) > > >to C or C++, the primary purpose of which is to collate information > > >from a bunch of databases - currently 12 Foxpro and 1 MySQL - without > > >using DSNs. > > > > > >What I need is for somebody to point me to a resource on how to work > > >with the Foxpro ODBC driver from a C/C++ program; the tutorial on > > >Microsoft's MSDN site compiled (after some tweaks), but doesn't > > >produce any output, and I can't find seem to find the errors. > > > > > >Many thanks! > > > > > >-Ed > > > > > > > > >President > > >Topsail Consulting, Inc. > > >em...@to... > > >http://www.topsailconsulting.com > > > > > >Phone/Fax: 770-719-3332 > > >Cell: 404-328-8503 > > >155 Shamrock Drive > > >Fayetteville, GA 30215-2810 > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > >This SF.Net email sponsored by: Free pre-built ASP.NET sites > > >including Data Reports, E-commerce, Portals, and Forums are available > > >now. Download today and enter to win an XBOX or Visual Studio .NET. > > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303 > > >_0 > > >1/01 > > >_______________________________________________ > > >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 > > > >_________________________________________________________________ > >On the move? Get Hotmail on your mobile phone > >http://www.msn.co.uk/msnmobile > > > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by: Free pre-built ASP.NET sites including > >Data Reports, E-commerce, Portals, and Forums are available now. > >Download today and enter to win an XBOX or Visual Studio .NET. > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0 > >1/01 > >_______________________________________________ > >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 sponsored by: Free pre-built ASP.NET sites including > >Data Reports, E-commerce, Portals, and Forums are available now. > >Download today and enter to win an XBOX or Visual Studio .NET. > >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_0 > >1/01 > >_______________________________________________ > >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 > >_________________________________________________________________ >Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile > > > >------------------------------------------------------- >This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data >Reports, E-commerce, Portals, and Forums are available now. Download today >and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >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 sponsored by: Free pre-built ASP.NET sites including >Data Reports, E-commerce, Portals, and Forums are available now. >Download today and enter to win an XBOX or Visual Studio .NET. >http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 >_______________________________________________ >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 _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: Graham <sai...@bi...> - 2003-08-01 14:09:05
|
woops .. obviously a newbie ...
I replied under the wrong subject
here it is with right subject header
I did look at the FAQ
this is where I found the Pause suggestion
my question was
can I prevent the window closing with a setting in DEV-C
When I was learning other languages and using JGrasp for instance it could
be set to not close the window so that the output could be viewed. This
was not done by code added on the end each time but was done by a setting in
JGrasp ... I was hoping it was possible to change a setting in DEV-C to
achieve this.
I could not find an answer in the FAQ and wondered if anyone here could
assist.
Please forgive me if this is not the correct forum for such a question.
regards
Graham
----- Original Message -----
From: "OROSZI Balázs" <or...@vp...>
To: <dev...@li...>
Sent: Friday, August 01, 2003 9:01 PM
Subject: Re: [Dev-C++] why does window close after execution? newbie
Graham wrote:
> I have installed Dev-C under Win XP Pro
> and am running the traditional "Hello World" as the first exercise in my
> tutorial.
> When it is compiled and run it instantly closes the window after
> printing to the screen. I therefore cant see the output.
> Is there a way to change this with a setting of DEV-C or will I have to
> put up with adding some sort of pause statement at the end of everything
> I write?
>
> my code looks like this
> /*
> *Hello, "Hello World.\n"
> */
> #include <iostream>
> int main ()
> {
> cout<<"Hello, world.\n";
> return 0;
> }
This is indeed a VVVVVFAQ (very-very-very-very-...).
BTW this is absolutely NORMAL behaviour. To make the dos-prompt stay,
you need to pause your program at the end. Use this line before return:
getc();
This will wait for an "Enter".
(I don't like system("PAUSE"), as that is platform-dependent).
--
Greetings,
Balázs
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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
|