dev-cpp-users Mailing List for Dev-C++ (Page 464)
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: Marshall B. <mlb...@ho...> - 2002-12-30 01:03:54
|
"Goran Kavrecic" <go...@em...> wrote: >Anyone has some idea or procedure how to install and setup DevC++ 4(preferably 5) in order to work with wxW? > Hi Goran, After many hours of frustration I've come to the conclusion that the default wxWindows 2.2.9 package will not work with Dev-C++ 4.7.9.x/gcc 3.2. I believe you have two choices: 1) Use Dev-C++ 4.7.9.x/gcc 2.9.5. A fresh installation will allow for a build of the provided example. Should you install the upgrade for v4.7.9.1, be sure to copy and paste the "Compiler" flags to the "C++ compiler" list box (under Project Options->Compiler->Compiler Options). 2) If you want to use the gcc 3.2 version, I could find only one solution: build a new wxWindows lib from the source provided at the official wxWindows web site (located at http://www.wxwindows.org/dl_msw2.htm). This was actually a frighteningly straight-forward procedure, except that that a debug build of the library will not work -- an executable linked against such will report a library mismatch. I used the 2.3.4 snapshot and built a Unicode release-level static lib and all appears well. Be sure to remove the existing wxWindows package and perhaps even the "Image Library" package as the wxWindows source includes that for libpng, libjpeg, libtiff, and libzlib. Otherwise, watch out for lib conflicts... In addition, you'll have to perform the aforementioned compiler flag copy. Good luck to you. If you need any further help, I'll be happy to provide it. Regards, Marshall |
|
From: Charles K. <ch...@ke...> - 2002-12-30 00:27:46
|
In the linker options, where one adds libraries, I have this: C:/Dev-Cpp/lib/libws2_32.a for my winsock2 projects ----- Original Message ----- From: "Manoj Sharma" <sha...@ro...> To: "Dev-C++" <dev...@li...> Sent: Sunday, December 29, 2002 7:13 PM Subject: RE: [Dev-C++] Trouble compiling winsock programs. > Hi, > > Thanks for your prompt responses! > > I should have mentioned in my earlier that I did try adding the -lwsock32 > option to the linker command line.I tried it once again though and the > result was the same as before.The undefined reference error to WSAStartup > error still shows up. > > Also I would like to run this a stand alone file (not a project). Any > suggestions? > Thanks in advance once again for your help. > > Regards, > Manoj. > http://manoj_sharma0.tripod.com > > > -----Original Message----- > From: Abhijit Shylanath [mailto:mu...@gm...] > Sent: Sunday, December 29, 2002 2:57 PM > To: Manoj Sharma; Dev-C++ > Subject: Re: [Dev-C++] Trouble compiling winsock programs. > > > Greets, Manoj. > > > 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. > > Just because a file is present in the `lib' directory, doesn't mean that > it'll be linked in. You need to add it to your the list of libraries the > linker must add. Add `-lwsock32' to the linker command-line. Any lib by the > name `libfoo.a' in the `lib' directory has to/can be linked in using -lfoo. > > HTH. > > ___________________________________________________________ > > 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 > > |
|
From: Manoj S. <sha...@ro...> - 2002-12-30 00:13:44
|
Hi, Thanks for your prompt responses! I should have mentioned in my earlier that I did try adding the -lwsock32 option to the linker command line.I tried it once again though and the result was the same as before.The undefined reference error to WSAStartup error still shows up. Also I would like to run this a stand alone file (not a project). Any suggestions? Thanks in advance once again for your help. Regards, Manoj. http://manoj_sharma0.tripod.com -----Original Message----- From: Abhijit Shylanath [mailto:mu...@gm...] Sent: Sunday, December 29, 2002 2:57 PM To: Manoj Sharma; Dev-C++ Subject: Re: [Dev-C++] Trouble compiling winsock programs. Greets, Manoj. > 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. Just because a file is present in the `lib' directory, doesn't mean that it'll be linked in. You need to add it to your the list of libraries the linker must add. Add `-lwsock32' to the linker command-line. Any lib by the name `libfoo.a' in the `lib' directory has to/can be linked in using -lfoo. HTH. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
From: Palamino <am...@ur...> - 2002-12-29 20:19:01
|
Just add "c:\Dev-c++\Lib\libwsock32.a" (supposing you have Dev-c++ installed on drive C) in the project options, under "Further object files or linker options". ----- Original Message ----- From: "Manoj Sharma" <sha...@ro...> To: "Dev-C++" <dev...@li...> Sent: Sunday, December 29, 2002 10:14 PM Subject: [Dev-C++] Trouble compiling winsock programs. > 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 > > > > ------------------------------------------------------- > 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 > |
|
From: Abhijit S. <mu...@gm...> - 2002-12-29 20:00:10
|
Greets, Manoj. > 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. Just because a file is present in the `lib' directory, doesn't mean that it'll be linked in. You need to add it to your the list of libraries the linker must add. Add `-lwsock32' to the linker command-line. Any lib by the name `libfoo.a' in the `lib' directory has to/can be linked in using -lfoo. HTH. ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |
|
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....=
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/
|