dev-cpp-users Mailing List for Dev-C++ (Page 2)
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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(4) |
2
(4) |
3
(4) |
4
(9) |
5
(17) |
6
(25) |
7
(15) |
8
(12) |
9
(16) |
10
(22) |
11
(13) |
12
(19) |
13
(13) |
14
(8) |
15
(6) |
16
(19) |
17
(11) |
18
(7) |
19
(6) |
20
(10) |
21
(5) |
22
(2) |
23
(11) |
24
(12) |
25
(3) |
26
(13) |
27
(10) |
28
(16) |
29
(7) |
30
(12) |
31
(13) |
|
|
|
|
From: Manoj S. <sha...@ro...> - 2002-12-29 19:14:03
|
Hi, I am trying to compile a simple winsock program using Dev-C++ and get the following error [Linker error] undefined reference to WSAStartup@8. I tried generating my own libwsock32.a library using the wsock32.dll on my system with the help of the dllwrap utility and linking it to my program by copying the generated .a file to the lib directory but the error stayed the same. I also tried using an older version of wsock32.dll (since I have the latest version of the dll) and it may not be compatible with the header files as supplied by Dev-C++. But this gave me the same undefined reference error. As a last resort I tried using the header files supplied by the Microsoft SDK instead of the include directory header files as supplied by Dev-C++. I get a target architecture must be defined error. An attempt to #define _M_IX86 which is the macro that needs to be defined leads to further errors, so I would prefer not to go down that path further. Can anyone suggest what else can be done to get a very simple winsock program to work. I have the XP OS on a Pentium machine. Regards, Manoj. http://manoj_sharma0.tripod.com |
From: Ioannis V. <no...@ho...> - 2002-12-29 17:00:44
|
Oh well, OK.=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys =0D =0D =0D -------Original Message-------=0D =0D From: OROSZI Bal=E1zs=0D Date: =CA=F5=F1=E9=E1=EA=DE, 29 =C4=E5=EA=DD=EC=E2=F1=E9=EF=F2 2002 12:40= :32 =EC=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] float to string=0D =0D Hello Ioannis!=0D =0D Your backgrounds are very nice in your HTML mail, but please don't use th= em on =0D mailing lists, especially not on programming mailing lists (like dev-cpp)= =2E=0D =0D Thank you.=0D =0D --=0D Regards=0D Bal=E1zs=0D =0D =0D =0D -------------------------------------------------------=0D This sf.net email is sponsored by:ThinkGeek=0D Welcome to geek heaven.=0D http://thinkgeek.com/sf=0D _______________________________________________=0D Dev-cpp-users mailing list=0D Dev...@li...=0D TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm=0D https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 |
From: <or...@vp...> - 2002-12-29 10:17:58
|
Hello Ioannis! Your backgrounds are very nice in your HTML mail, but please don't use them on mailing lists, especially not on programming mailing lists (like dev-cpp). Thank you. -- Regards Balázs |
From: Sebastien M. <seb...@te...> - 2002-12-29 04:16:05
|
The command is getcwd() under linux. On Thu, Dec 26, 2002 at 09:23:21PM -0500, Ger...@ne... wrote= : > Message: 1 > From: "Danny Roelofs" <dro...@ho...> > To: <dev...@li...> > Date: Thu, 26 Dec 2002 02:36:28 +0100 > Subject: [Dev-C++] rookie question... Getting the current directory >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_0014_01C2AC87.978DF2E0 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > Hi, >=20 > Just started today picking my programming hobby after 10 years when i =3D > used an amiga and a whole different programming > enviroment, i feel like a rookie again in the world of programming with= =3D > c++ with dev4 & windows..... >=20 > Can someone tell me how to get the current directory, i think it would = =3D > be something like this: >=20 > string test; >=20 > void main(void) > { >=20 > test =3D3D GetCurrentDir(); >=20 >=20 >=20 > return 0; > } >=20 > But ofcourse, this doesnt work.... someone.. enlighten me.. >=20 > i tryed all kinds of material but couldn't find something that worked =3D > with dev4 and i dont know where i have to find the problem. >=20 > thanks for your help >=20 > Danny. >=20 > //i dont know if its valid in C++, but with C, please do not void man()= ... > //it should return integer. otherwise, the behaviour is undefined. :) >=20 >=20 > Message: 7 > Date: Thu, 26 Dec 2002 10:48:25 -0500 > To: "Tri Nguyen" <tr...@ge...>, dev...@li...urceforge.= net> > From: Matthews <dematthews@uwaterloo.c> > Subject: Re: [Dev-C++] Win exe files do not run / Ansi C or pure C >=20 > If I understand your problem corrrectly, you are unable to see the "Hel= lo > world." message that is supposed to print out. To rectify this, add > #include <stdlib.h> and in the line preceeding the return 0 command add > system("PAUSE"); >=20 > Also, I do not understand why you #included windows.h. There's no reas= on > to at all. >=20 > At 12:52 PM 26/12/2002 +0100, Tri Nguyen wrote: > Hej all, > I would like to learn C and make win exe. > I'm using Win98 SE and DevC++ version 4 (not the newest). > The installed dir is C:\dev-C++ with Ming compile system (incl. in the > package) > My problem is I can not se whether the exe file runs or not. > There are no error message after compiling. > The c files are just a "Hello world" print out. > All the files are in 2 zip files, one for proj03 and the second for pro= j04. >=20 > The second question is the different between Ansi C and C and which is = most > suitable with DevC++. >=20 > Thanks a lot >=20 > TriMy, > --- > //for your second question, on ANSI C. Actually the pure C your referin= g to=20 > //is the ANSI C. It is the standard from which all implementations of t= he=20 > //language is based. Borland, GCC, LCC, and MS VC++ supports this stand= ards > //however lame or strong their implementations is. And of course, they = also=20 > //have their own extensions of the language. >=20 > __________________________________________________________________ > The NEW Netscape 7.0 browser is now available. Upgrade now! http://chan= nels.netscape.com/ns/browsers/download.jsp=20 >=20 > Get your own FREE, personal Netscape Mail account today at http://webma= il.netscape.com/ >=20 >=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://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >=20 --=20 Time remaining: 26 weeks 2 days 2 hours 43 minutes "Ceux qui sont mari=E9s sont nombreux et ceux qui se repentent de s'=EAtr= e mari=E9s ne le sont pas moins." [ Proverbe Espagnol ] |
From: Per W. <pw...@ia...> - 2002-12-29 03:51:02
|
/* Note 1 - remember to free() string after use. */ /* Note 2 - start is zero-relative. */ char* substr(const char* s,size_t start,size_t len) { char *p; size_t slen; if (s == NULL) return NULL; slen = strlen(s); if (start >= slen) { start = slen; len = 0; } if (start + len > slen) len = slen - start; p = (char*)malloc((len+1)*sizeof(char)); strncpy(p,s+start,len); p[len] = '\0'; return p; } /Per W On Sat, 28 Dec 2002, Danny Roelofs wrote: > Hi, > > Another problem to solve.. i wish to make a routine which gives me a substring or trimmed down on the following > conditions that i can start from anypoint in the string untill the offset is reached. so for example > > mytext = "this is a test"; > result = substring(mytext,6,2); > > result would now have to contain the 2nd word "is"... > > thats my goal.. i couldn't figure out a single function for it, if someone knows a solution.. would be great.. > > or if you know how to "build" a new string, which in my thought has to go like this: > > mytext = "this is a test"; > > mytext ++ ( 5 times) to set a pointer somehow to the 5th char in the string. > > subtext = subtext + pointer to mytext > > mytext ++ (1 time) to go to the next char in the string > > subtext = subtext + point to mytext > > which will give me "is" in the subtext... > > > > I could find decent material while searching the internet.. normaly, in my pas i always had the benefit of functions called substr > and trimstr but they dont exist as far as i know for cpp.. > > > thanks for any help.. > > danny > > |
From: <cg...@wo...> - 2002-12-28 23:10:09
|
#include <stdlib.h> char* gcvt(double your_value, int number_of_digits, char* buffer); Go to www.cplusplus.com and search in the reference for it. |
From: Zodiaq <zo...@ac...> - 2002-12-28 22:57:18
|
Hello Magda and all Dev-C++ users, Saturday, December 28, 2002, 11:19:33 PM, Magda wrote as follows: MB> How to convert float to string LOL! first: for such questions you should use genereal discussion groups, this one is dedicated for DevC++... if you are form Poland (tak jak ja) then use this one: pl.comp.lang.c second: I use this simple method: char strInfo[ 100 ]; float fPi = 3.1415926; sprintf( strInfo, "%f", fPi ); remember to include <stdio.h> and if you really want to use string class then do this similar to this: strstream input; input << fPi; string strInfo( input.c_str( )); //or smth like this... MB> thanx -- regards, Zodiaq |
From: Magda B. <mb...@wp...> - 2002-12-28 22:19:39
|
How to convert float to string thanx |
From: Abhijit S. <mu...@gm...> - 2002-12-28 20:24:06
|
Greets, Thom. > Hi, > > I just downloaded the Dev-C++ package (most recent version) and > installed it on my computer. When I tried to run the program the file > shfolder.dll could not be found and consequently it did not run. I'm not > an expert on Windows but I guess something is missing that has to do > with my Windows installation (am I right?). I am running Windows 98 and > wonder if anyone has got a hint on what I must do to be able to run > Dev-C++? A google search found downloads here: http://community.wow.net/grt/shfolder.zip http://www.teammukippe.hg.pl/Packages/Components/ShFolder.zip Try the Micro$oft web-site if these don't work. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
From: Abhijit S. <mu...@gm...> - 2002-12-28 20:14:14
|
Greets, Danny. ----- Original Message ----- From: Danny Roelofs To: dev...@li... Sent: Sunday, December 29, 2002 12:26 AM Subject: [Dev-C++] trim / sub string Hi, Another problem to solve.. i wish to make a routine which gives me a substring or trimmed down on the following conditions that i can start from anypoint in the string untill the offset is reached. so for example mytext = "this is a test"; result = substring(mytext,6,2); result would now have to contain the 2nd word "is"... -------------------------------- You can use pointer arithmetic to reach characters. For example, mytext + 5 will access the string from `is' onwards (uptil the NULL character). To copy it into another buffer, you need to copy from the above location until the number of characters specified have been exhausted. For example, char *substring(const char *orig, char *buf, int offset, int len) { for(unsigned i = 0; i < len; ++i) buf[i] = orig[i + offset]; buf[i] = 0; // NULL terminator return buf; // For convenience } This is a zero-based function, so mytext = "this is a test"; substring(mytext, result, 5, 2); Would give a resultant buffer containing `is'. HTH. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
From: Thomas B. <tho...@te...> - 2002-12-28 19:49:10
|
Hi, I just downloaded the Dev-C++ package (most recent version) and installed it on my computer. When I tried to run the program the file shfolder.dll could not be found and consequently it did not run. I'm not an expert on Windows but I guess something is missing that has to do with my Windows installation (am I right?). I am running Windows 98 and wonder if anyone has got a hint on what I must do to be able to run Dev-C++? /thom |
From: Goran K. <go...@em...> - 2002-12-28 19:47:07
|
As a result of past years experience and current demmands I came to a decision to use DevC++ and wxWindows to have a multi platform development environment. I had some problems using DevC++.4 I added some defines(like -D__WXMSW__) patched some *.h files (I know it's not the supposed procedure) in order to make some projects run. But it become almost imposible when I came to the point of using wxWindows. When if finally mannaged to compiled it failed to link(wx32.lib) It failed also with BCC5.5 because was no wx32.lib on the disk. After that I tried to recompile wxW but failed on some parser.y file. Then I gave up. I tried on W2k and later on a plain Win98. I also downloaded DevC++5(4.9.7.0 with gcc 3.2), but this doesn't compile even added examples. Another try was Detlev Reymann's page "wxWindows and Dev-C++" - failure again (not blaimming Reymann anyhow). Currently the machine has installed DevC++ 4 and 5, Borland C++ 5.5, mini IDE, small IDE, VIDE, Chimera IDE, Mingw 2.0 with gcc 3.2. Anyone has some idea or procedure how to install and setup DevC++ 4 (preferably 5) in order to work with wxW? Regards, Goran |
From: Charles K. <ch...@ke...> - 2002-12-28 19:10:47
|
Using the 4.9.7.1 Devc++ with the gcc3.2 version. I have a .cpp file that has: const char foo[2] =3D {1,0} ; Later, I have a file that does the following: extern const char foo[2] ; And then uses foo. I get linker errors about undefined symbol foo. Anyone else see this issue? Charles |
From: Danny R. <dro...@ho...> - 2002-12-28 18:56:28
|
Hi, Another problem to solve.. i wish to make a routine which gives me a = substring or trimmed down on the following conditions that i can start from anypoint in the string untill the = offset is reached. so for example mytext =3D "this is a test"; result =3D substring(mytext,6,2); result would now have to contain the 2nd word "is"... thats my goal.. i couldn't figure out a single function for it, if = someone knows a solution.. would be great..=20 or if you know how to "build" a new string, which in my thought has to = go like this: mytext =3D "this is a test"; mytext ++ ( 5 times) to set a pointer somehow to the 5th char in the = string. subtext =3D subtext + pointer to mytext mytext ++ (1 time) to go to the next char in the string subtext =3D subtext + point to mytext which will give me "is" in the subtext... I could find decent material while searching the internet.. normaly, in = my pas i always had the benefit of functions called substr and trimstr but they dont exist as far as i know for cpp..=20 thanks for any help.. danny |
From: <cg...@wo...> - 2002-12-27 20:47:35
|
Me idiot!!! Remember Mr Rockstock XXIII? I say all that to myself and many more, I Jerk!!!!! Stupid!!! (Now I'm kicking my forehead) I used the pointers in a function inside the constructor I called before initializing the array!!! AAaarggggh!!!! (I wanted put it in another function that I used.) |
From: <cg...@wo...> - 2002-12-27 19:33:28
|
>typedef void (classname::*funny)(void**); //I tried either void > >Well it depends on what arguments you want. All them are void func(void**); The comment is continued in the next line, I forgot taking into account the posible wrapping of the text. Anyway I know the alternative I was citing is wrong. >funny *function; OR funny function[19]; > >funny is a pointer to function type so if you want an array of >pointers to functions on the free store, you must use the "funny >*function" stuff. funny *function stuff? Does it means say funny *function; and then function = new funny[number]? I do it. (No spam) >Then inside another function: >int cuantos = rand() % 19; >(this->*function[cuantos])(NULL); >NULL is deprecated in C++. Also you forgot some parenthesis. You should do: > >(this->*classname::function[cuantos])(0); The parenthesis are there. I didn't say all functions are private. I used the modifications you pointed, still access violation, when calling the function. ... cout << "Here!" << endl; (this->*(classname::)cion[index])(param); ... The output: ... Here! Program.exe has generated errors, it will be closed by windows, you'll have to restart it. I tried some compiler options (-vtable-gc, and other) but no resul. |
From: <or...@vp...> - 2002-12-27 13:39:32
|
Hello! > Windows uses GetCurrentDirectory() Well, you have to be careful with this function, because it not always gives the directory, where the program executable is! Whenever you press enter (or double-click) on a file, which is associated to your program, then the current directory will be the dir, where the associated file is, NOT the dir of your exe! This can be annoying, when you want to write config-files. To retrieve your programs path, use __argv[0]. This contains the path to your program (for example: "C:\myprog\myprog.exe"). The other __argv[] elements contain the command-line arguments. Hope that helps. -- Regards Balázs |
From: <cg...@wo...> - 2002-12-27 11:20:58
|
Hi: I am trying to use the title of the message. I declare: class{ ... typedef void (classname::*funny)(void**); //I tried either void (classname::*function[19])(void**); funny *function; OR funny function[19]; }; Then class::class(){ function = new funny[19]; function[0] = &class::function1_name; : function[18] = &class::function19_name; } Then inside another function: int cuantos = rand() % 19; (this->*function[cuantos])(NULL); ^-- Or &void_pointer_*, or void_pointer_**, or (void**)int_pointer_**, set to NULL or not initialized or initialized. I read this is the correct way for doing this, and (this->*function[cuantos]) is the only syntax the compiler accepts. When it's time to use the function it crashes. Right now all the functions are: void class::functionx(void** tas){ cout << "functionx" << endl; } What I see in my code is done as "Thinking in C++" says it must be done. |
From: Abhijit S. <mu...@gm...> - 2002-12-27 09:29:11
|
Greets, Brenden and Danny. ----- Original Message ----- > Try getcwd(): > http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?getcwd+3 > Note that this is POSIX, Windows has their own non-portable API for directory and file operations. ---------------------------- Windows uses GetCurrentDirectory() ------- From docs --------- The GetCurrentDirectory function retrieves the current directory for the current process. DWORD GetCurrentDirectory( DWORD nBufferLength, // size, in characters, of directory buffer LPTSTR lpBuffer // address of buffer for current directory ); Parameters Return Value If the function succeeds, the return value specifies the number of characters written to the buffer, not including the terminating null character. If the function fails, the return value is zero. To get extended error information, call GetLastError(). If the buffer pointed to by lpBuffer is not large enough, the return value specifies the required size of the buffer, including the number of bytes necessary for a terminating null character. ------- End extract --------- PS: Please, no HTML mail. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
From: Abhijit S. <mu...@gm...> - 2002-12-27 09:29:02
|
Namaskara, Bhaskar. > Hi, > > I just downloaded and installed dev C++ for my windows XP machine. I > opened the hello project (hello world) and tried to compile it. But the > compiler is giving lots of errors saying that iostream.h is not available. > All the header files are there but the system is not able to recognize it. > Do I have to set some environment variables or something?? What do I need > to do? Your kind inputs in this regard would be appreciated. > > --Bhaskar <iostream.h> is deprecated. The latest C++ standard specifies using <iostream> along with namespaces. cout, cin, cerr, all standard library functions are in the `std' namespace. To access them, you would say std::cout, or std::cin. So your hello program would be ------- Start ------- #include <iostream> int main() { std::cout << "Hello, world.\n"; return 0; } ------- Stop ------- However, when you run it directly from the IDE, or from Windows explorer, you won't see any output. Run the program from a console, or see the FAQ. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
From: Eric E. <eng...@ya...> - 2002-12-27 02:48:55
|
I just found out about this project a week ago. I would like to use Dev-C++ with a GNU C compiler to target 68hc12 embedded processors. Has anyone done anything like this already? I'm a Delphi programmer and I can probably port the Dev-C++ version 4 source code for this purpose. But I don't have Delphi 6, so I can't use the newest sources. Eric Engler __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: <Ger...@ne...> - 2002-12-27 02:23:39
|
Message: 1 From: "Danny Roelofs" <dro...@ho...> To: <dev...@li...> Date: Thu, 26 Dec 2002 02:36:28 +0100 Subject: [Dev-C++] rookie question... Getting the current directory This is a multi-part message in MIME format. ------=_NextPart_000_0014_01C2AC87.978DF2E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Just started today picking my programming hobby after 10 years when i = used an amiga and a whole different programming enviroment, i feel like a rookie again in the world of programming with = c++ with dev4 & windows..... Can someone tell me how to get the current directory, i think it would = be something like this: string test; void main(void) { test =3D GetCurrentDir(); return 0; } But ofcourse, this doesnt work.... someone.. enlighten me.. i tryed all kinds of material but couldn't find something that worked = with dev4 and i dont know where i have to find the problem. thanks for your help Danny. //i dont know if its valid in C++, but with C, please do not void man()... //it should return integer. otherwise, the behaviour is undefined. :) Message: 7 Date: Thu, 26 Dec 2002 10:48:25 -0500 To: "Tri Nguyen" <tr...@ge...>, dev...@li...> From: Matthews <dematthews@uwaterloo.c> Subject: Re: [Dev-C++] Win exe files do not run / Ansi C or pure C If I understand your problem corrrectly, you are unable to see the "Hello world." message that is supposed to print out. To rectify this, add #include <stdlib.h> and in the line preceeding the return 0 command add system("PAUSE"); Also, I do not understand why you #included windows.h. There's no reason to at all. At 12:52 PM 26/12/2002 +0100, Tri Nguyen wrote: Hej all, I would like to learn C and make win exe. I'm using Win98 SE and DevC++ version 4 (not the newest). The installed dir is C:\dev-C++ with Ming compile system (incl. in the package) My problem is I can not se whether the exe file runs or not. There are no error message after compiling. The c files are just a "Hello world" print out. All the files are in 2 zip files, one for proj03 and the second for proj04. The second question is the different between Ansi C and C and which is most suitable with DevC++. Thanks a lot TriMy, --- //for your second question, on ANSI C. Actually the pure C your refering to //is the ANSI C. It is the standard from which all implementations of the //language is based. Borland, GCC, LCC, and MS VC++ supports this standards //however lame or strong their implementations is. And of course, they also //have their own extensions of the language. __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |
From: <cg...@wo...> - 2002-12-26 23:04:39
|
Thank you, I tried it over my complete files and works fine. I use MinGW 2.0.0-2 separately from Dev, too. In my code there was nothing more than that movement between files, I'll=20 try to rebuild it and see what happens now. I neither tried yet to enter=20 your test inside my project. I'll do it one of these couple days. Thanks again. Abhijit Shylanath escribi=F3: >Greets, Carlos. > > =20 > >> Happy new year tewnty three (hurra for the Empire!) >> =20 >> > >A Happy New Year to everyone. > > =20 > >>I need make an operation over a huge amount of files, basically I >>fstream.getline(buffer, 255); and then I do whatever. The problem is in >>all the files one line is treated badly: >> >>original: >> >>3.429 145.1683002 5.4 0.908401 43.66 >>3.629 174.13 5.28 0.9093 42.86 >>3.859 175.61 5.14 0.909673 41.9 >>4.172 177.08 5.01 0.909293 40.8 >>4.649 178.56 4.91 0.908071 39.57 >> =20 >> > > =20 > >>However remains the question, why can it happen? >> =20 >> > >I tried a simple test program, it works fine with your input (FC returns= no >differences). I'm running GCC 3.2. See if this program works with source= .txt >being the above values. > >----------- Start ------------ >#include <iostream> >#include <fstream> > >int main() >{ > using std::cout; > using std::cerr; > using std::endl; > > const int BUF_SIZE =3D 256; > char buf[BUF_SIZE]; > > std::ifstream in_file; > std::ofstream out_file; > > in_file.open("source.txt"); > if(!in_file) > { > cerr << "Couldn't open source.txt\n"; > return 1; > } > out_file.open("dest.txt"); > > while(!in_file.eof()) > { > in_file.getline(buf, BUF_SIZE); > out_file << buf << endl; > cout << buf << endl; > } > > return 0; >} > >---------- Stop ------------ > >Tell me what you get. If you get the error (or even if you don't), try >upgrading to the latest MinGW with GCC 3.2. The URL I used is >http://osdn.dl.sourceforge.net/sourceforge/mingw/MinGW-2.0.0-2.exe. > >It may be out-dated now. Check the MinGW website. > >___________________________________________________________ > >Abhijit Shylanath > >E-mail: mu...@gm... || ibr...@bi... >Web-site: http://mudeth.tripod.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://www.noicys.cjb.net/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > =20 > |
From: Brenden T. <br...@rc...> - 2002-12-26 21:15:14
|
Try getcwd(): /#include/ /<unistd.h>/ /#include/ /<io.h> // <stdio.h> is standard but MinGW uses io.h/ /main()/ /{/ /char/ /*cwd;/ /if/ /((cwd/ /=/ /getcwd(NULL,/ /64))/ /==/ /NULL)/ /{/ /perror("pwd");/ /exit(2) <http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?exit+2>;/ /}/ /(void)printf("%s\n",/ /cwd);/ /free(cwd);/ /return(0);/ /}/ The man page is at: http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?getcwd+3 Note that this is POSIX, Windows has their own non-portable API for directory and file operations. Good luck! Danny Roelofs wrote: > Hi, > > Just started today picking my programming hobby after 10 years when i > used an amiga and a whole different programming > enviroment, i feel like a rookie again in the world of programming > with c++ with dev4 & windows..... > > Can someone tell me how to get the current directory, i think it would > be something like this: > > string test; > > void main(void) > { > > test = GetCurrentDir(); > > > > return 0; > } > > But ofcourse, this doesnt work.... someone.. enlighten me.. > > i tryed all kinds of material but couldn't find something that worked > with dev4 and i dont know where i have to find the problem. > > thanks for your help > > Danny. > > |
From: <muh...@fa...> - 2002-12-26 21:14:03
|
I just downloaded Devcpp4, all the files: upgrade, devcpp4.exe, devcpp401,devcpp4.src and installed all. You may want to check if this software is compatible with your OS. I installed the Devcpp on my NT and followed the same instruction from www.cprogramming.com today as a test and it works. You may have to reinstall again to make sure everything is done correctly. Let me know what the outcome is. MR dev...@li...ur ceforge.net To: dev...@li... Sent by: cc: dev...@li...urce Subject: Dev-cpp-users digest, Vol 1 #1188 - 1 msg forge.net 12/26/2002 03:00 PM Please respond to dev-cpp-users Send Dev-cpp-users mailing list submissions to dev...@li... To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/dev-cpp-users or, via email, send a message with subject or body 'help' to dev...@li... You can reach the person managing the list at dev...@li... When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-cpp-users digest..." Today's Topics: 1. Dev C++ on Windows XP (Bhaskar Subramanian) --__--__-- Message: 1 Date: Thu, 26 Dec 2002 12:52:06 -0700 (MST) From: Bhaskar Subramanian <bh...@un...> To: dev...@li... Subject: [Dev-C++] Dev C++ on Windows XP Hi, I just downloaded and installed dev C++ for my windows XP machine. I opened the hello project (hello world) and tried to compile it. But the compiler is giving lots of errors saying that iostream.h is not available. All the header files are there but the system is not able to recognize it. Do I have to set some environment variables or something?? What do I need to do? Your kind inputs in this regard would be appreciated. --Bhaskar --------------------------------------------------------- A Man is what his deep driving desire is. As his deep, driving desire is, so is his Will. As his Will is, so is his Deed. As his Deed is, So is his Destiny. ---- Katho Upanishad http://www.unm.edu/~bhaskar Email: bh...@un... Ph:1 505 243 1934 --------------------------------------------------------- --__--__-- _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users End of Dev-cpp-users Digest |