dev-cpp-users Mailing List for Dev-C++ (Page 146)
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: <Mat...@Ve...> - 2005-03-07 15:06:25
|
Try the option -std=c99 as one of your GCC options. The long long integer
type only works right in C99 C code. Let me know how it turns out.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Dion
Bouwer
Sent: Sunday, March 06, 2005 9:18 PM
To: dev...@li...
Subject: [Dev-C++] Fibonacci numbers / unsigned long long int
Hello
The following code, when assembled by dev-cpp calculates the incorrect 49th
Fibonacci number, which should be 4807526976. However, when compiled by
another assembler (lc.exe), it works fine.
The 47th Fibonacci (1836311903) and 48th Fibonacci (2971215073) are
calculated correctly, but when they're added together to create the 49th
Fibonacci, the answer is incorrectly calculated and displayed.
Does Dev-C have to be configured in any special way to handle unsigned
long long integers?
/* Generate Fibonacci numbers using variable length arrays */
#include <stdio.h>
int main (void)
{
int i, numFibs;
printf ("How many Fibonacci numbers do you want (between 1 and 75)?");
scanf ("%i", &numFibs);
if ( numFibs < 1 || numFibs > 75 ) {
printf ("\nNumber must be between 1 and 75!!\n");
return (1);
}
unsigned long long int Fibonacci[numFibs];
Fibonacci[0] = 0; // by definition
Fibonacci[1] = 1; // by definition
for ( i = 2; i < numFibs; ++i )
Fibonacci[i] = Fibonacci[i-2] + Fibonacci[i-1];
for ( i = 0; i < numFibs; ++i )
printf ("%llu\n", Fibonacci[i]);
printf ("\n");
return (0);
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|
|
From: Guillermo G. <ggu...@ma...> - 2005-03-07 15:03:11
|
actually, try:
system("PAUSE");
just above the "return 0" line at the end of your program.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Koos
Sent: Monday, March 07, 2005 6:53 AM
To: dev...@li...
Subject: [Dev-C++] (no subject)
Hi,
My program has a problem, when I compile and run even the simplest of =
programs, the text window doesn't stay open. I have ticked the option in =
the tools menu but it makes no difference. I have also tried running the =
latest ver. of Dev.
I'm running win xp prof. with sp2.
Any help would be greatly appreciated.
Thanks
Koos=20
________________________________________________________________
Sent via the WebMail system at postnet.co.za
=20
=20
This mail service is supplied free of charge to our customers and the =
content of this e-mail does not represent the opinion of the supplier of =
the service.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
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: Per W. <pw...@ia...> - 2005-03-07 15:02:21
|
Have you tested to read the FAQ?
How about testing system("pause"); at the end of the application, or
reading some input or similar?
/Per W
On Mon, 7 Mar 2005, Koos wrote:
> Hi,
>
> My program has a problem, when I compile and run even the simplest of programs, the text window doesn't stay open. I have ticked the option in the tools menu but it makes no difference. I have also tried running the latest ver. of Dev.
> I'm running win xp prof. with sp2.
> Any help would be greatly appreciated.
> Thanks
> Koos
|
|
From: Marek J. <sp...@we...> - 2005-03-07 15:01:36
|
Koos wrote: > Hi, > > My program has a problem, when I compile and run even the simplest of programs, the text window doesn't stay open. I have ticked the option in the tools menu but it makes no difference. I have also tried running the latest ver. of Dev. > I'm running win xp prof. with sp2. > Any help would be greatly appreciated. http://aditsu.freeunixhost.com/dev-cpp-faq.html#pause -- Marek |
|
From: Jay B. <jay...@ni...> - 2005-03-07 15:00:56
|
[snip] My program has a problem, when I compile and run even the simplest of programs, the text window doesn't stay open. I have ticked the option in the tools menu but it makes no difference. I have also tried running the latest ver. of Dev. I'm running win xp prof. with sp2. Any help would be greatly appreciated. [/snip] Add a PAUSE prior to the end of main |
|
From: Koos <koo...@po...> - 2005-03-07 14:58:34
|
Hi,
My program has a problem, when I compile and run even the simplest of programs, the text window doesn't stay open. I have ticked the option in the tools menu but it makes no difference. I have also tried running the latest ver. of Dev.
I'm running win xp prof. with sp2.
Any help would be greatly appreciated.
Thanks
Koos
________________________________________________________________
Sent via the WebMail system at postnet.co.za
This mail service is supplied free of charge to our customers and the content of this e-mail does not represent the opinion of the supplier of the service.
|
|
From: Dion B. <dio...@in...> - 2005-03-07 13:53:19
|
Thanks Per Yup, the "%I64u" change did the trick!! My program works fine now when compiled with Dev-C. Fibonacci number do grow very quickly, and so it would seem that the 32bit length was being exceeded upon creating the 49th Fibonacci. Once again, thanks for all the helpful support. Cheers Dion Per Westermark wrote: >I don't know how long it will take until the list will send out my answer >- that wasn't directed to you but to Alfred P. Reaud and the list, so I >forward it directly to you... > >/Per W > >---------- Forwarded message ---------- >Date: Mon, 7 Mar 2005 07:59:44 +0100 (CET) >From: Per Westermark <pw...@ia...> >To: Alfred P. Reaud <al...@ya...> >Cc: Dev-Cpp UserList <dev...@li...> >Subject: Re: [Dev-C++] Fibonacci numbers / unsigned long long int > >Nothing wrong with the long long int declaration. > >However, MinGW is using Microsoft libraries, and the Microsoft libraries >doesn't understand the "%llu" formatting parameter. Instead, "%I64u" must >be used to print 64-bit numbers. Since the x86 architecture stores lowest >byte first, "%llu" becomes "%lu" and the least significant 4 bytes gets >printed and the most significant 4 bytes are left on the stack for >following printf parameter declarations to use... > >/Per W > >On Sun, 6 Mar 2005, Alfred P. Reaud wrote: > > > >>It appears you may be exceeding the length of a 32 bit int, which is what probably happened with the long long int declaration. Try declaring long long instead of long long int for Fibonacci. Interesting bug! >> >>Dion Bouwer <dio...@in...> wrote: >> >><snip> >> >>unsigned long long int Fibonacci[numFibs]; >> >><snip> >> >> >> >> >>Alfred P. Reaud >> >> >> >> >> > > > > > > |
|
From: Dion B. <dio...@in...> - 2005-03-07 13:15:03
|
Thank you for the program you sent Puime, but I've already coded=20
something similar, and yes, this approach works equally well.
However, generating Fibonacci numbers is not what this is all about.=20
This is about unsigned long long int used in arrays and the fact that=20
compiler x doesn't work but compiler y does.
Why the difference?
Is it a compiler issue or is it a Dev-C issue? My thought on the matter=20
is that it's Dev-C issue, but I'm not sure, which is why I raised the=20
question.
Can anyone else please provide some extra input?
Regards
Dion
gpuime wrote:
> Sorry ,Dion, that I didn't deal with the "real matter" yet, but=20
> "Fibonacci[numFibs];" doesn't seem legitimate to me; you must declare=20
> an array of pointers and allocate memory to it using the keyword=20
> "new". Besides I checked you results in a table and what you call 47th=20
> seems to be 46th, and so on .
> My program (here attached) has two Fibonacci functions (the recursive=20
> one is limited to smaller numbers the other goes up to the 92nd") and=20
> works all-right under Dev.C++ 1.=034.9.9.2.
> Puime.
>
> Le 7 mars 05, =E0 13:29, Dion Bouwer a =E9crit :
>
>> Puime
>>
>> I'm equally surprised that you keep avoiding the real matter at hand=20
>> here, which is that other compilers work just fine, no errors, no=20
>> warnings and the 49th Fibonacci is calculated correctly.
>>
>> "unsigned long long int Fibonacci[numFibs];" simply declares a=20
>> variable length array, which is perfectly legitimate...
>>
>> Why not compile the code using Dev-C and then use another non gcc=20
>> compiler and see the difference for yourself.
>>
>> Regards
>> Dion
>
>------------------------------------------------------------------------
>
># include <iostream>
>using namespace std ;
>
> long long fibonacci(char n){/* max n:92 */
>int i ; long long a=3D1, b=3D1, c ;
>if(n<0||n>92) return -1 ; /* <- error, */
>if(!n) return 0 ; if(n<3) return 1 ;
>for(i=3D2;i<n;i++) c=3Da , a+=3Db , b=3Dc ; return a ; }
>
> long fib(char n){ /* recursive, max n=3D40 */
>if(n<1||n>40) return -1 ;
>if(!n) return 0 ; if(n<3) return 1 ;
>return fib(n-2)+fib(n-1) ; }
>
> int main(){ bool e ; int x ; long long f ;
>cout<<"Fibonacci series"<<endl ;
>do{
> cout<<"enter a small number or zero to end : " ;
> do{ e=3D0 ;
> if(!(cin>>x))
> e=3D1 , cin.clear() ,
> cout<<"wrong input, try again : " ;
> cin.ignore(80,'\n') ;
> }while(e) ;
> f=3Dfibonacci(x) ;
> if(f>=3D0) cout<<"Fibonacci-> "<<fibonacci(x)<<endl ;
> else cout<<"no Fibonacci"<<endl ;
> f=3Dfib(x) ;
> if(f>=3D0) cout<<"recursive Fib -> "<<fib(x)<<endl ;
> else cout<<"no recursive Fib"<<endl ;
> cout<<endl ;
>}while(x>0) ;
>return 0 ; }
> =20
>
|
|
From: Per W. <pw...@ia...> - 2005-03-07 07:00:01
|
Nothing wrong with the long long int declaration. However, MinGW is using Microsoft libraries, and the Microsoft libraries doesn't understand the "%llu" formatting parameter. Instead, "%I64u" must be used to print 64-bit numbers. Since the x86 architecture stores lowest byte first, "%llu" becomes "%lu" and the least significant 4 bytes gets printed and the most significant 4 bytes are left on the stack for following printf parameter declarations to use... /Per W On Sun, 6 Mar 2005, Alfred P. Reaud wrote: > It appears you may be exceeding the length of a 32 bit int, which is what probably happened with the long long int declaration. Try declaring long long instead of long long int for Fibonacci. Interesting bug! > > Dion Bouwer <dio...@in...> wrote: > > <snip> > > unsigned long long int Fibonacci[numFibs]; > > <snip> > > > > > Alfred P. Reaud > > > |
|
From: Alfred P. R. <al...@ya...> - 2005-03-07 06:45:55
|
It appears you may be exceeding the length of a 32 bit int, which is what probably happened with the long long int declaration. Try declaring long long instead of long long int for Fibonacci. Interesting bug! Dion Bouwer <dio...@in...> wrote: <snip> unsigned long long int Fibonacci[numFibs]; <snip> Alfred P. Reaud |
|
From: Dion B. <dio...@in...> - 2005-03-07 05:18:18
|
Hello
The following code, when assembled by dev-cpp calculates the incorrect 49th Fibonacci number, which should be 4807526976. However, when compiled by another assembler (lc.exe), it works fine.
The 47th Fibonacci (1836311903) and 48th Fibonacci (2971215073) are
calculated correctly, but when they're added together to create the 49th
Fibonacci, the answer is incorrectly calculated and displayed.
Does Dev-C have to be configured in any special way to handle unsigned
long long integers?
/* Generate Fibonacci numbers using variable length arrays */
#include <stdio.h>
int main (void)
{
int i, numFibs;
printf ("How many Fibonacci numbers do you want (between 1 and 75)?");
scanf ("%i", &numFibs);
if ( numFibs < 1 || numFibs > 75 ) {
printf ("\nNumber must be between 1 and 75!!\n");
return (1);
}
unsigned long long int Fibonacci[numFibs];
Fibonacci[0] = 0; // by definition
Fibonacci[1] = 1; // by definition
for ( i = 2; i < numFibs; ++i )
Fibonacci[i] = Fibonacci[i-2] + Fibonacci[i-1];
for ( i = 0; i < numFibs; ++i )
printf ("%llu\n", Fibonacci[i]);
printf ("\n");
return (0);
}
|
|
From: daniel <mag...@nt...> - 2005-03-06 08:40:01
|
Okay, thtat explains a lot. Thanks for the help everyone who responded. Daniel ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "daniel" <mag...@nt...> Cc: <Dev...@li...>; <Mat...@Ve...> Sent: Friday, March 04, 2005 12:17 PM Subject: Re: [Dev-C++] opening files in c > There are no include file called "cstdio.h" > > In older c++, the file was called "stdlib.h" and was actually part of the > C standard. In the current C++ standard, the file is called "cstdlib", > i.e. no ".h" extension. If you look at the answer you got before, it shows > <cstdlib>, i.e. your like should look like: > > #include <cstdlib> > > /Per W > > On Fri, 4 Mar 2005, daniel wrote: > > > Thnaks for the help. I tried using the execute statement but it cam up with > > the following error: > > > > "/Programming/c_programming/c/practical_c/file_execute.c > > D:\Programming\c_programming\c\practical_c\D cstdlib.h: No such file or > > directory." > > > > It seems as if its looking for the header file in the same directory as the > > source file. Why does it only do this with <cstdlib.h> and not <stdlib.h> or > > indeed <stdio.h> > > ----- Original Message ----- > > From: <Mat...@Ve...> > > To: <mag...@nt...>; <Dev...@li...> > > Sent: Wednesday, March 02, 2005 11:07 PM > > Subject: RE: [Dev-C++] opening files in c > > > > > > > OK, > > > > > > Your terms are mixed up. In C/C++, opening a file means getting it ready > > to > > > be read and/or written from/into by your code. > > > > > > Open does _not_ mean to execute a file. For executing a file, you need > > > system() which is in <cstdlib>. > > > > > > -----Original Message----- > > > From: dev...@li... > > > [mailto:dev...@li...]On Behalf Of daniel > > > Sent: Wednesday, March 02, 2005 2:59 PM > > > To: Dev...@li... > > > Subject: [Dev-C++] opening files in c > > > > > > > > > Hello, > > > I am writing a program which asks the user whether they want to > > > execute (open) a batch file or not. > > > I tried using the fopen function but it seems to only enable you to write > > to > > > a file or read from a file (e.g. calculate the number of words in a given > > > file). > > > What I want to do is open an external file. Is there a command for this? > > > ___________________________________________________________________ > > > The information contained in this message and any attachment may be > > > proprietary, confidential, and privileged or subject to the work > > > product doctrine and thus protected from disclosure. If the reader > > > of this message is not the intended recipient, or an employee or > > > agent responsible for delivering this message to the intended > > > recipient, you are hereby notified that any dissemination, > > > distribution or copying of this communication is strictly prohibited. > > > If you have received this communication in error, please notify me > > > immediately by replying to this message and deleting it and all > > > copies and backups thereof. Thank you. > > > > > > > > > > > > ------------------------------------------------------- > > > SF email is sponsored by - The IT Product Guide > > > Read honest & candid reviews on hundreds of IT Products from real users. > > > Discover which products truly live up to the hype. Start reading now. > > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > > _______________________________________________ > > > 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 > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > 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: Ira K. <ikr...@ya...> - 2005-03-05 14:26:33
|
Karim, Delete the following line in main.cpp: wincl.lpszMenuName = NULL; /* No menu */ Then recompile and run. Ira |
|
From: Per W. <pw...@ia...> - 2005-03-05 10:08:54
|
I haven't looked at wx-devcpp, but if you haven't done any GUI programming using any other tools, I definitely recommend having a look at wxWidgets. Besides being portable between a large number of platforms (Win32, Mac, OS2, Linux, ...) there are a lot of sample code showing off all parts of the framework - how to display menues, input dialogs, draw graphics, ... /Per W On Fri, 4 Mar 2005, Alfred P. Reaud wrote: > Hi, > > I just started using wx-devcpp 4.9.9.1-wx-beta-6.6, which is > down-loadable at downloadable at: http://wxdsgn.sourceforge.net/ and is > a morph of Dev-Cpp. Actually it's pretty good, as it has some features > not implemented in the standard 4.9.9.1 build. I haven't tried 4.9.9.2 > yet so I can't tell if the same tools are present. > > It's fully integrated development environment (IDE) for wxWidgets. > There's also Fluid for use with FLTK, and other GUI IDE's out there. > Try googling for GUI IDE and see what you come up with. > > --- ymc014 <ym...@ym...> wrote: > > > Hello, > > > > How would I create my own GUI? Like,say, Winamp's(with its own set > > of buttons,menu bar,etc.,) what's the idea behind it?what are the > > necessary tools to be used(aside from knowledge of C++ of course)?I > > am using Windows XP. > > > > ===== > > Alfred P. Reaud > > > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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: Alfred P. R. <al...@ya...> - 2005-03-05 03:18:59
|
Hi, I just started using wx-devcpp 4.9.9.1-wx-beta-6.6, which is down-loadable at downloadable at: http://wxdsgn.sourceforge.net/ and is a morph of Dev-Cpp. Actually it's pretty good, as it has some features not implemented in the standard 4.9.9.1 build. I haven't tried 4.9.9.2 yet so I can't tell if the same tools are present. It's fully integrated development environment (IDE) for wxWidgets. There's also Fluid for use with FLTK, and other GUI IDE's out there. Try googling for GUI IDE and see what you come up with. --- ymc014 <ym...@ym...> wrote: > Hello, > > How would I create my own GUI? Like,say, Winamp's(with its own set > of buttons,menu bar,etc.,) what's the idea behind it?what are the > necessary tools to be used(aside from knowledge of C++ of course)?I > am using Windows XP. ===== Alfred P. Reaud |
|
From: ymc014 <ym...@ym...> - 2005-03-05 03:04:02
|
Hello, =20 =20 How would I create my own GUI? Like,say, Winamp's(with its own set of = buttons,menu bar,etc.,) what's the idea behind it?what are the necessary = tools to be used(aside from knowledge of C++ of course)?I am using = Windows XP. =20 |
|
From: Marek J. <sp...@we...> - 2005-03-04 18:28:33
|
I would like the discussion to be in one place so I'll just post a link: http://sourceforge.net/forum/forum.php?thread_id=1242366&forum_id=48211 thanks, Marek |
|
From: Per W. <pw...@ia...> - 2005-03-04 12:17:59
|
There are no include file called "cstdio.h" In older c++, the file was called "stdlib.h" and was actually part of the C standard. In the current C++ standard, the file is called "cstdlib", i.e. no ".h" extension. If you look at the answer you got before, it shows <cstdlib>, i.e. your like should look like: #include <cstdlib> /Per W On Fri, 4 Mar 2005, daniel wrote: > Thnaks for the help. I tried using the execute statement but it cam up with > the following error: > > "/Programming/c_programming/c/practical_c/file_execute.c > D:\Programming\c_programming\c\practical_c\D cstdlib.h: No such file or > directory." > > It seems as if its looking for the header file in the same directory as the > source file. Why does it only do this with <cstdlib.h> and not <stdlib.h> or > indeed <stdio.h> > ----- Original Message ----- > From: <Mat...@Ve...> > To: <mag...@nt...>; <Dev...@li...> > Sent: Wednesday, March 02, 2005 11:07 PM > Subject: RE: [Dev-C++] opening files in c > > > > OK, > > > > Your terms are mixed up. In C/C++, opening a file means getting it ready > to > > be read and/or written from/into by your code. > > > > Open does _not_ mean to execute a file. For executing a file, you need > > system() which is in <cstdlib>. > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of daniel > > Sent: Wednesday, March 02, 2005 2:59 PM > > To: Dev...@li... > > Subject: [Dev-C++] opening files in c > > > > > > Hello, > > I am writing a program which asks the user whether they want to > > execute (open) a batch file or not. > > I tried using the fopen function but it seems to only enable you to write > to > > a file or read from a file (e.g. calculate the number of words in a given > > file). > > What I want to do is open an external file. Is there a command for this? > > ___________________________________________________________________ > > The information contained in this message and any attachment may be > > proprietary, confidential, and privileged or subject to the work > > product doctrine and thus protected from disclosure. If the reader > > of this message is not the intended recipient, or an employee or > > agent responsible for delivering this message to the intended > > recipient, you are hereby notified that any dissemination, > > distribution or copying of this communication is strictly prohibited. > > If you have received this communication in error, please notify me > > immediately by replying to this message and deleting it and all > > copies and backups thereof. Thank you. > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > 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 > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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: daniel <mag...@nt...> - 2005-03-04 11:15:31
|
Okay, ignore my last message. Everything works now. Thanks for the help. from daniel ----- Original Message ----- From: <Mat...@Ve...> To: <mag...@nt...>; <Dev...@li...> Sent: Wednesday, March 02, 2005 11:07 PM Subject: RE: [Dev-C++] opening files in c > OK, > > Your terms are mixed up. In C/C++, opening a file means getting it ready to > be read and/or written from/into by your code. > > Open does _not_ mean to execute a file. For executing a file, you need > system() which is in <cstdlib>. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of daniel > Sent: Wednesday, March 02, 2005 2:59 PM > To: Dev...@li... > Subject: [Dev-C++] opening files in c > > > Hello, > I am writing a program which asks the user whether they want to > execute (open) a batch file or not. > I tried using the fopen function but it seems to only enable you to write to > a file or read from a file (e.g. calculate the number of words in a given > file). > What I want to do is open an external file. Is there a command for this? > ___________________________________________________________________ > The information contained in this message and any attachment may be > proprietary, confidential, and privileged or subject to the work > product doctrine and thus protected from disclosure. If the reader > of this message is not the intended recipient, or an employee or > agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify me > immediately by replying to this message and deleting it and all > copies and backups thereof. Thank you. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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: daniel <mag...@nt...> - 2005-03-04 11:04:40
|
Thnaks for the help. I tried using the execute statement but it cam up with the following error: "/Programming/c_programming/c/practical_c/file_execute.c D:\Programming\c_programming\c\practical_c\D cstdlib.h: No such file or directory." It seems as if its looking for the header file in the same directory as the source file. Why does it only do this with <cstdlib.h> and not <stdlib.h> or indeed <stdio.h> ----- Original Message ----- From: <Mat...@Ve...> To: <mag...@nt...>; <Dev...@li...> Sent: Wednesday, March 02, 2005 11:07 PM Subject: RE: [Dev-C++] opening files in c > OK, > > Your terms are mixed up. In C/C++, opening a file means getting it ready to > be read and/or written from/into by your code. > > Open does _not_ mean to execute a file. For executing a file, you need > system() which is in <cstdlib>. > > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of daniel > Sent: Wednesday, March 02, 2005 2:59 PM > To: Dev...@li... > Subject: [Dev-C++] opening files in c > > > Hello, > I am writing a program which asks the user whether they want to > execute (open) a batch file or not. > I tried using the fopen function but it seems to only enable you to write to > a file or read from a file (e.g. calculate the number of words in a given > file). > What I want to do is open an external file. Is there a command for this? > ___________________________________________________________________ > The information contained in this message and any attachment may be > proprietary, confidential, and privileged or subject to the work > product doctrine and thus protected from disclosure. If the reader > of this message is not the intended recipient, or an employee or > agent responsible for delivering this message to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify me > immediately by replying to this message and deleting it and all > copies and backups thereof. Thank you. > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > 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: Karim Liman-T. <klt...@gm...> - 2005-03-04 08:23:38
|
Hello everyone,
I've solved the problem; I actually had a wincl.lpszMenuName =
NULL; line just after I defined my menu... stupid me ;)
On Fri, 4 Mar 2005 11:14:33 +0300, Karim Liman-Tinguiri
<klt...@gm...> wrote:
> Hello,
>
> I've recently installed Dev-C++ v 4.9.9.0 (5 beta) and I'm trying to
> define a menu. I have browsed the mailing list archive and have found
> a similar problem but it didn't help me solve mine. Here are my source
> codes:
>
> ====================== main.cpp ===========================
>
> #include <windows.h>
> #include "resource.h"
>
> /* Declare Windows procedure */
> LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
>
> /* Make the class name into a global variable */
> char szClassName[ ] = "HelpClientClass";
>
> int WINAPI WinMain (HINSTANCE hThisInstance,
> HINSTANCE hPrevInstance,
> LPSTR lpszArgument,
> int nFunsterStil)
>
> {
> HWND hwnd; /* This is the handle for our window */
> MSG messages; /* Here messages to the application are saved */
> WNDCLASSEX wincl; /* Data structure for the windowclass */
>
> /* The Window structure */
> wincl.hInstance = hThisInstance;
> wincl.lpszClassName = szClassName;
> wincl.lpfnWndProc = WindowProcedure; /* This function is
> called by windows */
> wincl.style = CS_DBLCLKS; /* Catch double-clicks */
> wincl.cbSize = sizeof (WNDCLASSEX);
> wincl.lpszMenuName = MAKEINTRESOURCE(IDR_MENU); /* Menu attached
> to window /*
>
> /* Use default icon and mouse-pointer */
> wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
> wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
> wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
> wincl.lpszMenuName = NULL; /* No menu */
> wincl.cbClsExtra = 0; /* No extra bytes after
> the window class */
> wincl.cbWndExtra = 0; /* structure or the
> window instance */
> /* Use Windows's default color as the background of the window */
> wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
>
> /* Register the window class, and if it fails quit the program */
> if (!RegisterClassEx (&wincl))
> return 0;
>
> /* The class is registered, let's create the program*/
> hwnd = CreateWindowEx (
> 0, /* Extended possibilites for variation */
> szClassName, /* Classname */
> "Windows Help", /* Title Text */
> WS_OVERLAPPEDWINDOW, /* default window */
> CW_USEDEFAULT, /* Windows decides the position */
> CW_USEDEFAULT, /* where the window ends up on the screen */
> 544, /* The programs width */
> 375, /* and height in pixels */
> HWND_DESKTOP, /* The window is a child-window to desktop */
> NULL, /* No menu */
> hThisInstance, /* Program Instance handler */
> NULL /* No Window Creation data */
> );
>
> /* Make the window visible on the screen */
> ShowWindow (hwnd, nFunsterStil);
>
> /* Run the message loop. It will run until GetMessage() returns 0 */
> while (GetMessage (&messages, NULL, 0, 0))
> {
> /* Translate virtual-key messages into character messages */
> TranslateMessage(&messages);
> /* Send message to WindowProcedure */
> DispatchMessage(&messages);
> }
>
> /* The program return-value is 0 - The value that PostQuitMessage() gave */
> return messages.wParam;
> }
>
> /* This function is called by the Windows function DispatchMessage() */
>
> LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM
> wParam, LPARAM lParam)
> {
> switch (message) /* handle the messages */
> {
> case WM_DESTROY:
> PostQuitMessage (0); /* send a WM_QUIT to the message queue */
> break;
> default: /* for messages that we don't deal with */
> return DefWindowProc (hwnd, message, wParam, lParam);
> }
>
> return 0;
> }
>
> ===========================================================
>
> Here's my resource header file:
>
> ==================== resource.h ===============================
>
> #define IDR_MENU 101
> #define ID_FILE_OPEN 102
> #define ID_FILE_PRINT 103
> #define ID_FILE_EXIT 104
> #define ID_EDIT_COPY 105
> #define ID_EDIT_ANNOTATE 106
> #define ID_BKMARK_DEFINE 107
> #define ID_OPTION_ALWAYSONTOP_DEFAULT 108
> #define ID_OPTION_ALWAYSONTOP_ENABLED 109
> #define ID_OPTION_ALWAYSONTOP_DISABLED 110
> #define ID_OPTION_SHOWHISTORY 111
> #define ID_OPTION_FONTSIZE_SMALL 112
> #define ID_OPTION_FONTSIZE_MEDIUM 113
> #define ID_OPTION_FONTSIZE_LARGE 114
> #define ID_OPTION_USESYSCOLORS 115
>
> ===========================================================
>
> And finally the resource file itself:
>
> ===================== resource.rc =============================
> #include "resource.h"
>
> IDR_MENU MENU
> BEGIN
> POPUP "&File"
> BEGIN
> MENUITEM "&Open", ID_FILE_OPEN
> MENUITEM SEPARATOR
> MENUITEM "&Print", ID_FILE_PRINT
> MENUITEM SEPARATOR
> MENUITEM "E&xit", ID_FILE_EXIT
> END
>
> POPUP "&Edit"
> BEGIN
> MENUITEM "&Copy", ID_EDIT_COPY
> MENUITEM SEPARATOR
> MENUITEM "&Annotate", ID_EDIT_ANNOTATE
> END
>
> POPUP "&Bookmark"
> BEGIN
> MENUITEM "&Define", ID_BKMARK_DEFINE
> END
>
> POPUP "&Options"
> BEGIN
> POPUP "&Always on top"
> BEGIN
> MENUITEM "&Default", ID_OPTION_ALWAYSONTOP_DEFAULT, CHECKED
> MENUITEM "&Enabled", ID_OPTION_ALWAYSONTOP_ENABLED
> MENUITEM "D&isabled", ID_OPTION_ALWAYSONTOP_DISABLED
> END
>
> MENUITEM "&Show History...", ID_OPTION_SHOWHISTORY
>
> POPUP "&Font Size"
> BEGIN
> MENUITEM "&Small", ID_OPTION_FONTSIZE_SMALL
> MENUITEM "&Medium", ID_OPTION_FONTSIZE_MEDIUM, CHECKED
> MENUITEM "&Large", ID_OPTION_FONTSIZE_LARGE
> END
>
> MENUITEM "&Use system colors", ID_OPTION_USESYSCOLORS
> END
> END
>
> ===========================================================
>
> There's no error on compilation but the resulting .exe is menu-less.
>
> I'd be very grateful if someone could help me.
>
|
|
From: Karim Liman-T. <klt...@gm...> - 2005-03-04 08:15:04
|
Hello,
I've recently installed Dev-C++ v 4.9.9.0 (5 beta) and I'm trying to
define a menu. I have browsed the mailing list archive and have found
a similar problem but it didn't help me solve mine. Here are my source
codes:
====================== main.cpp ===========================
#include <windows.h>
#include "resource.h"
/* Declare Windows procedure */
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
/* Make the class name into a global variable */
char szClassName[ ] = "HelpClientClass";
int WINAPI WinMain (HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPSTR lpszArgument,
int nFunsterStil)
{
HWND hwnd; /* This is the handle for our window */
MSG messages; /* Here messages to the application are saved */
WNDCLASSEX wincl; /* Data structure for the windowclass */
/* The Window structure */
wincl.hInstance = hThisInstance;
wincl.lpszClassName = szClassName;
wincl.lpfnWndProc = WindowProcedure; /* This function is
called by windows */
wincl.style = CS_DBLCLKS; /* Catch double-clicks */
wincl.cbSize = sizeof (WNDCLASSEX);
wincl.lpszMenuName = MAKEINTRESOURCE(IDR_MENU); /* Menu attached
to window /*
/* Use default icon and mouse-pointer */
wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
wincl.lpszMenuName = NULL; /* No menu */
wincl.cbClsExtra = 0; /* No extra bytes after
the window class */
wincl.cbWndExtra = 0; /* structure or the
window instance */
/* Use Windows's default color as the background of the window */
wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND;
/* Register the window class, and if it fails quit the program */
if (!RegisterClassEx (&wincl))
return 0;
/* The class is registered, let's create the program*/
hwnd = CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
"Windows Help", /* Title Text */
WS_OVERLAPPEDWINDOW, /* default window */
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
544, /* The programs width */
375, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
/* Make the window visible on the screen */
ShowWindow (hwnd, nFunsterStil);
/* Run the message loop. It will run until GetMessage() returns 0 */
while (GetMessage (&messages, NULL, 0, 0))
{
/* Translate virtual-key messages into character messages */
TranslateMessage(&messages);
/* Send message to WindowProcedure */
DispatchMessage(&messages);
}
/* The program return-value is 0 - The value that PostQuitMessage() gave */
return messages.wParam;
}
/* This function is called by the Windows function DispatchMessage() */
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM
wParam, LPARAM lParam)
{
switch (message) /* handle the messages */
{
case WM_DESTROY:
PostQuitMessage (0); /* send a WM_QUIT to the message queue */
break;
default: /* for messages that we don't deal with */
return DefWindowProc (hwnd, message, wParam, lParam);
}
return 0;
}
===========================================================
Here's my resource header file:
==================== resource.h ===============================
#define IDR_MENU 101
#define ID_FILE_OPEN 102
#define ID_FILE_PRINT 103
#define ID_FILE_EXIT 104
#define ID_EDIT_COPY 105
#define ID_EDIT_ANNOTATE 106
#define ID_BKMARK_DEFINE 107
#define ID_OPTION_ALWAYSONTOP_DEFAULT 108
#define ID_OPTION_ALWAYSONTOP_ENABLED 109
#define ID_OPTION_ALWAYSONTOP_DISABLED 110
#define ID_OPTION_SHOWHISTORY 111
#define ID_OPTION_FONTSIZE_SMALL 112
#define ID_OPTION_FONTSIZE_MEDIUM 113
#define ID_OPTION_FONTSIZE_LARGE 114
#define ID_OPTION_USESYSCOLORS 115
===========================================================
And finally the resource file itself:
===================== resource.rc =============================
#include "resource.h"
IDR_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open", ID_FILE_OPEN
MENUITEM SEPARATOR
MENUITEM "&Print", ID_FILE_PRINT
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Copy", ID_EDIT_COPY
MENUITEM SEPARATOR
MENUITEM "&Annotate", ID_EDIT_ANNOTATE
END
POPUP "&Bookmark"
BEGIN
MENUITEM "&Define", ID_BKMARK_DEFINE
END
POPUP "&Options"
BEGIN
POPUP "&Always on top"
BEGIN
MENUITEM "&Default", ID_OPTION_ALWAYSONTOP_DEFAULT, CHECKED
MENUITEM "&Enabled", ID_OPTION_ALWAYSONTOP_ENABLED
MENUITEM "D&isabled", ID_OPTION_ALWAYSONTOP_DISABLED
END
MENUITEM "&Show History...", ID_OPTION_SHOWHISTORY
POPUP "&Font Size"
BEGIN
MENUITEM "&Small", ID_OPTION_FONTSIZE_SMALL
MENUITEM "&Medium", ID_OPTION_FONTSIZE_MEDIUM, CHECKED
MENUITEM "&Large", ID_OPTION_FONTSIZE_LARGE
END
MENUITEM "&Use system colors", ID_OPTION_USESYSCOLORS
END
END
===========================================================
There's no error on compilation but the resulting .exe is menu-less.
I'd be very grateful if someone could help me.
|
|
From: Reid T. <Rei...@at...> - 2005-03-03 15:51:35
|
www.sqlite.org might be a good starting place also reid > -----Original Message----- > From: spiro harvey [mailto:spi...@gm...]=20 > Sent: Wednesday, March 02, 2005 5:59 PM > To: Dev-C++ mailing list > Subject: Re: [Dev-C++] data base >=20 >=20 > Some idiot called Braj Kishore <bra...@re...> wrote: >=20 > > I have downloaded Bloddshed Dev C++ yeasterday and was very=20 > > impressed. I want to learn c++ using this tool. I also=20 > want to know=20 > > that, is it possible to develop a database application=20 > using Dev c++,=20 > > if so kindly let me know the procedure giving some example.=20 > Right now=20 > > i am using Ms-Access on the back end. I shall be greatly=20 > obliged if=20 > > you help me in learning C++. >=20 > this forum isn't here to teach people how to code. Try buying=20 > a book, or reading a tutorial on the net. >=20 > as for your database needs, look into xbase for portable=20 > database files which you can bundle with your app, or learn=20 > SQL for talking to database servers. >=20 > but learn C++ first. >=20 >=20 >=20 > -- > "Here's a bucket, go and kick it." > -- Kill Yourself (Stormtroopers of Death) >=20 http://spiroharvey.blogspot.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick _______________________________________________ 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: <Mat...@Ve...> - 2005-03-02 23:08:10
|
OK,
Your terms are mixed up. In C/C++, opening a file means getting it ready to
be read and/or written from/into by your code.
Open does _not_ mean to execute a file. For executing a file, you need
system() which is in <cstdlib>.
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of daniel
Sent: Wednesday, March 02, 2005 2:59 PM
To: Dev...@li...
Subject: [Dev-C++] opening files in c
Hello,
I am writing a program which asks the user whether they want to
execute (open) a batch file or not.
I tried using the fopen function but it seems to only enable you to write to
a file or read from a file (e.g. calculate the number of words in a given
file).
What I want to do is open an external file. Is there a command for this?
___________________________________________________________________
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure. If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof. Thank you.
|
|
From: Guillermo G. <ggu...@ma...> - 2005-03-02 23:06:58
|
well, if you are doing a console application one thing you could try =
would be:
=20
system(" path\to\the\batchfile.bat");
=20
anything beyond that I would not be able to tell you about.
-----Original Message-----
From: dev...@li... =
[mailto:dev...@li...]On Behalf Of daniel
Sent: Wednesday, March 02, 2005 2:59 PM
To: Dev...@li...
Subject: [Dev-C++] opening files in c
Hello,
I am writing a program which asks the user whether they want to =
execute (open) a batch file or not.=20
I tried using the fopen function but it seems to only enable you to =
write to a file or read from a file (e.g. calculate the number of words =
in a given file).=20
What I want to do is open an external file. Is there a command for this? =
|