dev-cpp-users Mailing List for Dev-C++ (Page 48)
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: matheus r. <mfr...@gm...> - 2007-10-04 18:16:34
|
Ok, my bad here. Disregard my previous mail. The operator << evaluation happens from left to right. But probably, the compiler evaluates all parameters in the line first from right to left, then applies operator <<. Perhaps other people can help here, interesting question. 2007/10/4, matheus ribeiro <mfr...@gm...>: > The statement evaluation happens from right to the left, like all > others. But the ostream operator << acts like a stack. You evaluate > expression from right, push. Then at the end, everything added is > popped. > > So basically, you push 512, 256, 128. Then you pop 128, 256, 512. > > 2007/10/4, Franco Brancaccio <fbr...@gm...>: > > Dear Friends, > > > > I observed an irregular (I think) comportment of 'std::cout' > > reproduced by the simple test code below: > > > > > > #include <iostream> > > using namespace std; > > > > > > int myFunc(); // simple test function prototype > > > > > > // test program > > int main() > > { > > cout << myFunc() << endl // this block results > > << myFunc() << endl // in an inverted > > << myFunc() << endl << endl; // console output > > > > cout << myFunc() << endl; // this block results > > cout << myFunc() << endl; // in a correct > > cout << myFunc() << endl << endl; // console output > > > > system("PAUSE"); > > return 0; > > } > > > > > > // simple test function implementation > > int myFunc() > > { > > static int i = 1024; > > i /= 2; > > return i; > > } > > > > > > The console output for this code is: > > > > > > 128 > > 256 > > 512 > > > > 64 > > 32 > > 16 > > > > Press any key to continue... > > > > > > The questions: > > The two 'cout' blocks act in a different manner! (?) > > Why the first chained block results in an inverted output? > > Does not the insert operator '<<' act from left to right? > > > > Obs.: I'm using > > Dev-C++ 4.9.9.2 , > > Win XP 5.1, > > g++ (1/29/2005). > > > > > > TIA, > > Franco Brancaccio > > fbr...@gm... > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > 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: matheus r. <mfr...@gm...> - 2007-10-04 14:43:00
|
The statement evaluation happens from right to the left, like all others. But the ostream operator << acts like a stack. You evaluate expression from right, push. Then at the end, everything added is popped. So basically, you push 512, 256, 128. Then you pop 128, 256, 512. 2007/10/4, Franco Brancaccio <fbr...@gm...>: > Dear Friends, > > I observed an irregular (I think) comportment of 'std::cout' > reproduced by the simple test code below: > > > #include <iostream> > using namespace std; > > > int myFunc(); // simple test function prototype > > > // test program > int main() > { > cout << myFunc() << endl // this block results > << myFunc() << endl // in an inverted > << myFunc() << endl << endl; // console output > > cout << myFunc() << endl; // this block results > cout << myFunc() << endl; // in a correct > cout << myFunc() << endl << endl; // console output > > system("PAUSE"); > return 0; > } > > > // simple test function implementation > int myFunc() > { > static int i = 1024; > i /= 2; > return i; > } > > > The console output for this code is: > > > 128 > 256 > 512 > > 64 > 32 > 16 > > Press any key to continue... > > > The questions: > The two 'cout' blocks act in a different manner! (?) > Why the first chained block results in an inverted output? > Does not the insert operator '<<' act from left to right? > > Obs.: I'm using > Dev-C++ 4.9.9.2 , > Win XP 5.1, > g++ (1/29/2005). > > > TIA, > Franco Brancaccio > fbr...@gm... > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > 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: Franco B. <fbr...@gm...> - 2007-10-04 14:15:17
|
Dear Friends, I observed an irregular (I think) comportment of 'std::cout' reproduced by the simple test code below: #include <iostream> using namespace std; int myFunc(); // simple test function prototype // test program int main() { cout << myFunc() << endl // this block results << myFunc() << endl // in an inverted << myFunc() << endl << endl; // console output cout << myFunc() << endl; // this block results cout << myFunc() << endl; // in a correct cout << myFunc() << endl << endl; // console output system("PAUSE"); return 0; } // simple test function implementation int myFunc() { static int i = 1024; i /= 2; return i; } The console output for this code is: 128 256 512 64 32 16 Press any key to continue... The questions: The two 'cout' blocks act in a different manner! (?) Why the first chained block results in an inverted output? Does not the insert operator '<<' act from left to right? Obs.: I'm using Dev-C++ 4.9.9.2, Win XP 5.1, g++ (1/29/2005). TIA, Franco Brancaccio fbr...@gm... |
From: Siva C. <siv...@ya...> - 2007-10-04 07:48:17
|
Hello all, I am trying to understand on how to make a data structure thread safe. I will use a simple example to explain my problem. Consider a class Array which encapsulates a 1d array with the following definition: <code> class Array { public: ... ... int& operator[](int index); ... ... }; Array A(10); // a 10 element array </code> This array A can be accessed by two different threads simultaneously - one thread could be reading a[5], and another writing a[5]! How to protect my array from such read/write conflicts? I am looking for a solution which enables a user of the array class not to bother about such conflicts. Is such a thing possible? If yes, what is it? Thanks and regards, Siva Chandra ____________________________________________________________________________________ Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html |
From: Per W. <pw...@ia...> - 2007-10-03 22:06:18
|
I recommend that you spend some time on MSDN. http://msdn2.microsoft.com/en-us/library/ms646291.aspx /pwm On Wed, 3 Oct 2007, angel dario wrote: > Hi.... > > > I was wandering how to disable a BUTTON on a current window during runtim= e in Dev-C++; > > For example: > > I create a window that ask you for your e-mail address. > I also create a button that when clicked it should disable itself. > > If you input your e-mail in the current given textbox and then hit submit= , > then the submit button disables automatically until you close the program= =2E > > How do i do that? > _________________________________________________________________ > Help yourself to FREE treats served up daily at the Messenger Caf=E9. Sto= p by today. > http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=3DTXT_TAGLM_= OctWLtagline |
From: angel d. <sci...@ho...> - 2007-10-03 22:01:38
|
Hi.... =20 =20 I was wandering how to disable a BUTTON on a current window during runtime = in Dev-C++; =20 For example: =20 I create a window that ask you for your e-mail address. I also create a button that when clicked it should disable itself. =20 If you input your e-mail in the current given textbox and then hit submit, then the submit button disables automatically until you close the program. =20 How do i do that? _________________________________________________________________ Help yourself to FREE treats served up daily at the Messenger Caf=E9. Stop = by today. http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=3DTXT_TAGLM_Oc= tWLtagline= |
From: danilo\.ferrarotti\@libero\.it <dan...@li...> - 2007-10-03 15:28:57
|
Sorry, it's possible to have only the last counts in output and not the entire i= plementation of the wovels? thanks Danilo ---------- Initial Header ----------- >From : dev...@li... To : "Dev Cpp MailingLinst" dev...@li... Cc : Date : Sat, 21 Jul 2007 09:02:46 -0400 Subject : [Dev-C++] FW: Question > >>You wrote: > >>every output is equal to 0. I can't solve how to make the count of th= e > vocals and conconant. Do you have a solution > > Please make sure your code looks like this, and it should work. > > #include <iostream> > #include <ctype.h> > > using namespace std; > > int main() > { > char ch; > int aCnt =3D0, eCnt =3D0, iCnt =3D0, oCnt =3D0, uCnt =3D0, consonan= tCnt =3D0, > spaceCnt =3D0; > > while ( cin >> ch ) > { <- Note where I added the brackets one here.... > switch ( ch ) > { > case 'a': case 'A': > ++aCnt; > break; > case 'e': case 'E': > ++eCnt; > break; > case 'i': case 'I': > ++iCnt; > break; > case 'o': case 'O': > ++oCnt; > break; > case 'u': case 'U': > ++uCnt; > break; > case ' ': > ++spaceCnt; > default: > if ( isalpha( ch )) > ++consonantCnt; > break; > } > cout << " numero di a:" << aCnt << '\n'; > cout << " numero di e:" << eCnt << '\n'; > cout << " numero di i:" << iCnt << '\n'; > cout << " numero di o:" << oCnt << '\n'; > cout << " numero di u:" << uCnt << '\n'; > cout << " numero di consonanti:" << consonantCnt << '\n'; > cout << " numero di sapzi:" << spaceCnt << '\n'; > } <- The other bracket here..... > > return 0; > } > > -Adam Jones > > > > CONFIDENTIALITY NOTE: > This e-mail and its attachments contain confidential information and ar= e > intended solely for the use of the individual(s) named on this transmis= sion. > If you are not the intended recipient, you are notified that disclosing= , > copying, distributing or taking any action in reliance on the contents = of > this information is strictly prohibited. If you are not the intended > recipient of this e-mail please destroy this message immediately and ad= vise > the sender of the same. > > -----Original Message----- > From: dan...@li... [mailto:dan...@li...] = > Sent: Friday, July 20, 2007 8:47 AM > To: ajones > Subject: Re: [Dev-C++] Question > > I put the bracket as you said, and i solved the problem. Now appers ano= ther > one: > > with this initialization > > int aCnt =3D0, eCnt =3D0, iCnt =3D0, oCnt =3D0, uCnt =3D0, consonantCnt= =3D0, spaceCnt > =3D0; > > every output is equal to 0. I can't solve how to make the count of the > vocals and conconant. Do you have a solution > > Thanks > > Danilo > > ---------- Initial Header ----------- > > >From : dev...@li... > To : "dev-c++ devc++" dev...@li... > Cc : > Date : Thu, 19 Jul 2007 18:33:01 -0400 > Subject : Re: [Dev-C++] Question > > > > > > > > > The code you posted is listed below: > > > > >>#include <iostream> > > >>#include <ctype.h> > > >>using namespace std; > > >>int main() > > >>{ > > >> char ch; > > >> int aCnt =3D0, eCnt =3D0, iCnt =3D0, oCnt =3D0, uCnt =3D0, cons= onantCnt =3D0, > > spaceCnt =3D0; > > >> while ( cin >> ch ) > > >> switch ( ch ) > > >> { > > >> case 'a': case 'A': > > >> ++aCnt; > > >> break; > > >> case 'e': case 'E': > > >> ++eCnt; > > >> break; > > >> case 'i': case 'I': > > >> ++iCnt; > > >> break; > > >> case 'o': case 'O': > > >> ++oCnt; > > >> break; > > >> case 'u': case 'U': > > >> ++uCnt; > > >> break; > > >> case ' ': > > >> ++spaceCnt; > > >> default: > > >> if ( isalpha( ch )) > > >> ++consonantCnt; > > >> break; > > >> } > > >> cout << " numero di a:" << aCnt << '\n'; > > >> cout << " numero di e:" << eCnt << '\n'; > > >> cout << " numero di i:" << iCnt << '\n'; > > >> cout << " numero di o:" << oCnt << '\n'; > > >> cout << " numero di u:" << uCnt << '\n'; > > >> cout << " numero di consonanti:" << consonantCnt << '\= n'; > > >> cout << " numero di sapzi:" << spaceCnt << '\n'; > > >> return 0; > > >>} > > > > The problem with your code is that you do not enclose the switch stat= ement > > inside of your while loop. So what is happing is that the only line i= n > your > > program being executed is > > > > >> while ( cin >> ch ) > > > > You need to add the brackets after the while loop and enclose the swi= tch > > statement. Once you do that, it should work, > > > > while ( cin >> ch ) > > { <--Add this openning bracket here > > switch ( ch ) > > { > > case 'a': case 'A': > > . > > . > > . > > . > > } <-- Add closing bracket here. > > > > -Adam Jones > > > > -----Original Message----- > > From: dan...@li... [mailto:dan...@li...= ] > > Sent: Thursday, July 19, 2007 9:57 AM > > To: ajones > > Subject: Re: [Dev-C++] Question > > > > This is the source code > > > > many thanks > > > > Danilo > > > > ---------- Initial Header ----------- > > > > >From : dev...@li... > > To : "dev-c++ devc++" dev...@li... > > Cc : > > Date : Thu, 19 Jul 2007 08:59:23 -0400 > > Subject : Re: [Dev-C++] Question > > > > > > > > > > > > > > > > > >>Hello, > > > > > > >>I have a problem with this program: when a give the execute coman= d > > > >>the > > > *.exe window opens but after I give the characters to switch as You= > > > can see on the While comand : >>while ( cin >> ch ) I can't make th= e > > > execution of the program. > > > > > > >>There's a specific comand to give on the *.exe window for running= > > > >>the > > > execution after writing on it? > > > > > > >>Many Thanks > > > > > > >>Danilo > > > > > > Unfortunately I am not sure what you are asking. If the program is = not > > > large, post the source code. How do you know that the code is not > > running?? > > > Maybe it is running, but you haven't paused executive so you can se= e > > > the output. If you don't pause the executive the cin will get the > > > input, the program will do what it has to do and then close the con= sole > > window. > > > > > > -Adam Jones > > > > > > > > > > > > -------------------------------------------------------------------= --- > > > --- This SF.net email is sponsored by DB2 Express Download DB2 Expr= ess > > > C - the FREE version of DB2 express and take control of your XML. N= o > > > limits. Just data. Click to get it now. > > > http://sourceforge.net/powerbar/db2/ > > > _______________________________________________ > > > 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 > > > > > > > > > ------------------------------------------------------ > > Leggi GRATIS le tue mail con il telefonino i-modeT di Wind > > http://i-mode.wind.it/ > > > > > > > > ---------------------------------------------------------------------= ---- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > ------------------------------------------------------ > Scegli infostrada: ADSL gratis per tutta l'estate e telefoni senza cano= ne > Telecom > http://click.libero.it/infostrada > > > -----------------------------------------------------------------------= -- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > =0A=0A=0A------------------------------------------------------=0ALeggi= GRATIS le tue mail con il telefonino i-mode=99 di Wind=0Ahttp://i-mode.w= ind.it/=0A |
From: Per W. <pw...@ia...> - 2007-10-03 09:51:29
|
Interesting. You are interested in double indirection without knowing why. All your questions sounds exactly like the kind of questions you have to answer for a school assignment. Are you per chance trying to avoid doing your school work? /pwm On Wed, 3 Oct 2007, Muhammad Ammar wrote: > > Hello Everyone. > > Hope you will be good and fine. > > > Are the following declarations are same, and , if not than why, also i am= new to double pointers, can you provide a simple tutorial on double pointe= rs, why use double pointers( > > Scenarios in which they used) and their benefits. > > char **doubleList; > char *doubleList[]; > > > Best Regards, > > Muhammad Ammar > > > > _________________________________________________________________ > Windows Live Hotmail and Microsoft Office Outlook =96 together at last. = =A0Get it now. > http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=3DCL100= 626971033 |
From: Per W. <pw...@ia...> - 2007-10-03 09:51:26
|
Don't reply to me - reply to all, or at least to the list. Still html mail. Notice below what my mail client does with it. Very, very easy to read... You are also still claiming that Infobuf is a buffer. No, it is not. It is a pointer. A pointer doesn't store data. It stores the address to data. Notice that the LP in LPSOCKADDR stands for Large Pointer. The next funny thing is that the last parameter you send - then one that on input should specify the size of your buffer, and on output should contain the actually used size - is an int pointer. And you called it Buf. It should be an int variable, or more specifically a socklen_t variable. It should be named something like buffer_size. You should take the address of it and send as parameter. If the expected answer may be as large as a SOCKADDR, then you need a buffer at least as large as a SOCKADDR. The address of this buffer (and the sizeof() this buffer) may be used as parameters to getpeername(). Sending it an uninitialized pointer and saying that you can only accept an asnwer as large as a pointer will never manage you to get any results back. In this case, the OS is nice and catches your error. The OS could just as well have killed your application. This is an usage example - directly awailable from google. It is for Unix, but the important concents are the same. int s; struct sockaddr_in server, addr; socklen_t len; // make a socket s =3D socket(PF_INET, SOCK_STREAM, 0); // connect to a server server.sin_family =3D AF_INET; inet_aton("63.161.169.137", &server.sin_addr); server.sin_port =3D htons(80); connect(s, (struct sockaddr*)&server, sizeof server); // get the peer name // we know we just connected to 63.161.169.137:80, so this should print: // Peer IP address: 63.161.169.137 // Peer port : 80 len =3D sizeof addr; getpeername(s, (struct sockaddr*)&addr, &len); printf("Peer IP address: %s\n", inet_ntoa(addr.sin_addr)); printf("Peer port : %d\n", ntohs(addr.sin_port)); /pwm On Tue, 2 Oct 2007, angel dario wrote: > Can you give me a small example because i tried to point to the buffer wi= th no success: > > my function: > > sockaddr *Y_YGetPeerName(SOCKET Client){ LPSOCKADDR Infobuf; int = *Buf =3D (int*)sizeof(SOCKADDR*); if(getpeername(Client,Infobuf,Buf) !=3D= 0) { cout<<"GetPeerName error"<<endl; } else { cout<<"GetPeerNam= e Success"<<endl; } cout<<WSAGetLastError();} > > > > > > Date: Wed, 3 Oct 2007 01:52:59 +0200> From: pw...@ia...> To: s= cie...@ho...> CC: dev...@li...> Sub= ject: Re: [Dev-C++] Dev-cpp-users Digest, Vol 16, Issue 12> > First of all = - please avoid using HTML on the mailing list.> > Second - you should send = a pointer to a buffer to the function.> > You are sending a pointer, but th= at pointer does not point to any> buffer... Declare a variable of the corre= ct type and then use the> address-of operator.> > /pwm> > On Tue, 2 Oct 200= 7, angel dario wrote:> > >> > Any body knows how to use:> >> > getpeername(= ) function on dev-cpp???> >> > I tried it and WSAGetLastError() always retu= rn to 10014.> > _________________________________________________________________ > Boo!=A0Scare away worms, viruses and so much more! Try Windows Live OneCa= re! > http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=3Dwl_hot= mailnews |
From: Muhammad A. <amm...@ho...> - 2007-10-03 06:03:08
|
Hello Everyone. Hope you will be good and fine. Are the following declarations are same, and , if not than why, also i am n= ew to double pointers, can you provide a simple tutorial on double pointers= , why use double pointers( Scenarios in which they used) and their benefits. char **doubleList; char *doubleList[]; Best Regards, Muhammad Ammar _________________________________________________________________ Windows Live Hotmail and Microsoft Office Outlook =96 together at last. =A0= Get it now. http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=3DCL10062= 6971033= |
From: Per W. <pw...@ia...> - 2007-10-02 23:53:19
|
First of all - please avoid using HTML on the mailing list. Second - you should send a pointer to a buffer to the function. You are sending a pointer, but that pointer does not point to any buffer... Declare a variable of the correct type and then use the address-of operator. /pwm On Tue, 2 Oct 2007, angel dario wrote: > > Any body knows how to use: > > getpeername() function on dev-cpp??? > > I tried it and WSAGetLastError() always return to 10014. |
From: angel d. <sci...@ho...> - 2007-10-02 23:40:33
|
=20 Any body knows how to use: =20 getpeername() function on dev-cpp??? =20 I tried it and WSAGetLastError() always return to 10014. =20 10014 is:=20 Bad address.=20 The system detected an invalid pointer address in attempting to use a point= er argument of a call. This error occurs if an application passes an invali= d pointer value, or if the length of the buffer is too small. For instance,= if the length of an argument, which is a sockaddr structure, is smaller th= an the sizeof(sockaddr). =20 =20 This is my function: =20 void Y_YGetPeerName(SOCKET Client){ LPSOCKADDR Infobuf; int Buf =3D= sizeof(SOCKADDR); if(getpeername(Client,Infobuf,&Buf) !=3D 0) { cout= <<"GetPeerName Error"<<endl; } else { cout<<"GetPeerName Success"<<en= dl; } cout<<WSAGetLastError();} _________________________________________________________________ Climb to the top of the charts!=A0 Play Star Shuffle:=A0 the word scramble = challenge with star power. http://club.live.com/star_shuffle.aspx?icid=3Dstarshuffle_wlmailtextlink_oc= t= |
From: <ta...@fe...> - 2007-10-02 18:44:36
|
(Apologies for cross-posting.) ___________________________________________________________________ Mini-Symposium on Computational Bioimaging and Visualization Within the WCCM8 & ECCOMAS 2008 International Conference (http://www.iacm-eccomascongress2008.org) Venice, Italy, 30 June =96 5 July 2008 ___________________________________________________________________ Dear Colleague, The use of computational procedures based on medical images to model and visualize represented objects requires a high level of research = investment, due mainly to the strong demands of clinical partners. These procedures = can have different goals, such as shape reconstruction and visualization, segmentation, motion and deformation analyses, registration, simulation, etc. The main goal of this Mini-symposium is to promote the debate = between researchers involved in the related fields (Bio-medical Image = Acquisition, Analysis and Processing; Multi-scale Shape and Motion Reconstruction; Multi-scale Modeling and Analysis; Scientific Visualization, Bio-medical Software Libraries, Environments; etc.), in order to set the major lines = of developments for the near future. Mini-symposium Organizers: Jo=E3o Manuel R.S. Tavares (ta...@fe..., FEUP, Porto Portugal) Renato Natal Jorge (rn...@fe..., FEUP, Porto, Portugal) Thomas J.R. Hughes (tjr...@ho..., ICES, University of Texas at Austin, USA) Chandrajit Bajaj (ba...@cs..., ICES, University of Texas at = Austin, USA) IMPORTANT DATES Deadline for presenting a one page abstract: December 15th., 2007 Acceptance of the contributions: January 31th., 2008 Deadline for submitting the final abstract: February 28th., 2008 |
From: Per W. <pw...@ia...> - 2007-10-01 12:17:07
|
If you are not going to use the MFC classes, don't bother with the Win32 API. Look at wxWidgets instead. The wxWidgets site has a lot of sample code. /pwm On Mon, 1 Oct 2007, Joseph wrote: > Please can anyone send me the url where I can download e-books for making > windows using c++ but without using the mfc. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.488 / Virus Database: 269.13.33/1036 - Release Date: 9/28/2007 > 3:40 PM > > |
From: <ta...@su...> - 2007-10-01 12:12:14
|
Hi, I need used to type library for Outlook 2007 and MAPI in wx_dew. How can ?:) Thanks Ales I am sorry for my bad english. |
From: dr.one <dr...@gl...> - 2007-10-01 11:15:55
|
Joseph wrote: > Please can anyone send me the url where I can download e-books for > making windows using c++ but without using the mfc. One good book (using win32 api without mfc): C++ in Action http://www.relisoft.com/book/index.htm |
From: Joseph <jo...@jk...> - 2007-10-01 10:51:53
|
Please can anyone send me the url where I can download e-books for making windows using c++ but without using the mfc. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.13.33/1036 - Release Date: 9/28/2007 3:40 PM |
From: Lloyd <ll...@cd...> - 2007-10-01 06:40:01
|
Thanks Younes. I think the program crashes when I use it along with wxWidgets library (am not sure). When I tried the code alone it is not crashing! "Without commenting your implementation of a 3D Array," Why do you say this? Do you know a better way for dynamically growing (any dimension can grow) 3D array... Thanks, Lloyd On Sat, 2007-09-29 at 22:28 +0400, Younes Ouadi wrote: > Hi Llyod, > > Without commenting your implementation of a 3D Array, I don't see any > issue with the line of code you pointed in your e-mail. I have tried the > same piece of code under RedHat and it doesn't crash. > > Have a nice evening > > Younes > > > On Fri, 2007-09-28 at 13:53 +0530, Lloyd wrote: > > Hi , > > > > I have declared a structure like this... > > > > struct structSip > > { > > int32 sip; > > struct structDip > > { > > int32 dip; > > vector<SessionListRaw> sDetails; > > }; > > > > vector<structDip> vectDip; > > }; > > > > vector<structSip> vectSip; > > > > Then tried to insert some data like this > > > > SessionListRaw VectorNode; > > > > vectSip.reserve(1); > > vectSip[0].sip=11; > > vectSip[0].vectDip.reserve(1); > > vectSip[0].vectDip[0].dip=12; //here the program crashes with the > > error:- glibc detected corrupted doubly linked list > > vectSip[0].vectDip[0].sDetails.push_back(VectorNode); > > > > What could be the reason? can't I use a vector like this to form a > > 3dimensional array effect? > > > > Thanks, > > Lloyd > > > > > > ______________________________________ > > Scanned and protected by Email scanner > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ______________________________________ Scanned and protected by Email scanner |
From: Per W. <pw...@ia...> - 2007-10-01 04:04:50
|
Please - this has nothing to do with winsock. I repeat - this has nothing to do with winsock. You get a request. The request contains a path. You translate that path to something on the local file system. You open the translated file name. You send back the contents of that file. You either close the connection, or - if you and the client supports keep-connect - wait for more requests on the same connection. Have you started by printing out all HTTP header information you get from the client for different types of links? Have you spent time reading the HTTP protocol standard? There is no magic web folder to create. It is the web server (your code, not winsock or any other transport layer) that makes the translation from request path to local file system path. This can be a translation to a local directory tree, but that is not a requirement. All requests can be hard-coded to external files or to internal functions that builds pages/images on the fly. Not only must you process the request and figure out the path - you must also make sure that the web server only serves allowed files, i.e. that it can't be used to walk all over your computer, if the request contains .. or drive letters. But this too is your job - not something to do with winsock, or the server running on a Windows machine. /pwm On Sun, 30 Sep 2007, angel dario wrote: > > > > From: sci...@ho...To: pw...@ia...Subject: RE: = [Dev-C++] Anybody???Date: Sun, 30 Sep 2007 21:49:19 -0600 > > > none of those links works. either: http://ip/image.giforimage.gif doesn'= t work. why?Because, i don't know how to make a www folder using winsock, s= o i can drop images, html source and all that so that the web could be able= torequest them successfully. look what i do so that the images can work on= the server: This is just an example: (source code isn't real, is just a mo= del) if( GET \ image.gif HTTP/1.1){ send(image.gif)} If i don't use thi= s, when the browser tries to download the image form http://ip/images/the i= mage fails. And this is the only output the browsers can send. If only the = browser request for all of the imagesthen the server would work very fine. = For example: if( GET \ image.gif HTTP/1.1){ send(image.gif)} if( GET \ = image2.gif HTTP/1.1){ send(image2.gif)} if( GET \ image3.gif HTTP/1.1){= send(image3.gif)} I really understand who HTTP works and how servers w= ork. I just don't know how to make the www folder or the database or whatev= er name is that folder called, so that i can drop files there for the reque= sts. To give you an idea, i am building something like IIS. > > > Date: Mon, 1 Oct 2007 05:28:16 +0200> From: pw...@ia...> To: s= cie...@ho...> CC: dev...@li...> Sub= ject: Re: [Dev-C++] Anybody???> > Have you read up on the HTTP protocol?> >= If your server claim that it users a modern version of the HTTP protocol,>= then most web browsers will issue several requests on the same connect. If= > you claim that the server only supports standard 1.0, then the browsers> = will have to make new connects for each request.> > There are no magic invo= lved with winsock - your problems doesn't have> anything to do with winsock= , but with understanding the HTTP protocol, and> what a web server is expec= ted to do.> > A client should not know anything about c:\Dev-Cpp\images - y= our web> server should have a defined root directory, and should figure out= all> paths either based on that root directory or on individual path> tran= slations.> > You can also affect what requests the web browser makes by swi= tching> between absolute, relative and fully qualified image names.> > Some= possible links you might have in the served document:> <a href=3D"http://<= ip>/images/image1.gif">> <a href=3D"/images/image1.gif">> <a href=3D"images= /image1.gif">> > If you specify a relative path, then the client (the web b= rowser) must> perform it's request relative to the main document. With an a= bsolute path,> it is enough to use the same connect - or a new connect to t= he same> server. With a fully qualified URL, the web browser may connect to= any web> server to retrieve an image.> > /pwm> > On Sun, 30 Sep 2007, ange= l dario wrote:> > > Have anybody build a server using winsock2 and C++?> >>= > YES?> > Have you use port 80 to send html data?> >> > YES?> > What did y= ou used when the HTML code that you send to the browser had more than 1 pic= tured?> >> > What did you do when the browser tried to connect to http://yo= uripaddress/image.gif ?????> >> > .........................................= =2E....................................> >> > I tried to solve this problem= doing this:> >> > I waited for the browser to ask for the image:> >> > GET= /image.gif HTTP/1.1> >> > Then i send it, and it work...> >> > BUT....> >>= > Sometimes the browser just request for only 1 image, and the rest of the= images,> > the browser tries to download them, using the path http://youri= paddress/> >> > I still can't figure out how browsers can download some dat= a from servers without sending any request.....> >> > Is there a way, USING= WINSOCK2, to let the browser know that http://youripaddress/ is just, C:\D= ev-Cpp\images\?> >> > A source code will help better than a plain answer.> = >> > _________________________________________________________________> > C= onnect to the next generation of MSN Messenger > > http://imagine-msn.com/m= essenger/launch80/default.aspx?locale=3Den-us&source=3Dwlmailtagline> > > Connect to the next generation of MSN Messenger Get it now! > _________________________________________________________________ > Discover the new Windows Vista > http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQ= BRE |
From: angel d. <sci...@ho...> - 2007-10-01 03:51:15
|
From: sci...@ho...To: pw...@ia...Subject: RE: [D= ev-C++] Anybody???Date: Sun, 30 Sep 2007 21:49:19 -0600 none of those links works. either: http://ip/image.giforimage.gif doesn't = work. why?Because, i don't know how to make a www folder using winsock, so = i can drop images, html source and all that so that the web could be able t= orequest them successfully. look what i do so that the images can work on t= he server: This is just an example: (source code isn't real, is just a mode= l) if( GET \ image.gif HTTP/1.1){ send(image.gif)} If i don't use this,= when the browser tries to download the image form http://ip/images/the ima= ge fails. And this is the only output the browsers can send. If only the br= owser request for all of the imagesthen the server would work very fine. Fo= r example: if( GET \ image.gif HTTP/1.1){ send(image.gif)} if( GET \ im= age2.gif HTTP/1.1){ send(image2.gif)} if( GET \ image3.gif HTTP/1.1){ = send(image3.gif)} I really understand who HTTP works and how servers wor= k. I just don't know how to make the www folder or the database or whatever= name is that folder called, so that i can drop files there for the request= s. To give you an idea, i am building something like IIS. > Date: Mon, 1 Oct 2007 05:28:16 +0200> From: pw...@ia...> To: sci= enc...@ho...> CC: dev...@li...> Subje= ct: Re: [Dev-C++] Anybody???> > Have you read up on the HTTP protocol?> > I= f your server claim that it users a modern version of the HTTP protocol,> t= hen most web browsers will issue several requests on the same connect. If> = you claim that the server only supports standard 1.0, then the browsers> wi= ll have to make new connects for each request.> > There are no magic involv= ed with winsock - your problems doesn't have> anything to do with winsock, = but with understanding the HTTP protocol, and> what a web server is expecte= d to do.> > A client should not know anything about c:\Dev-Cpp\images - you= r web> server should have a defined root directory, and should figure out a= ll> paths either based on that root directory or on individual path> transl= ations.> > You can also affect what requests the web browser makes by switc= hing> between absolute, relative and fully qualified image names.> > Some p= ossible links you might have in the served document:> <a href=3D"http://<ip= >/images/image1.gif">> <a href=3D"/images/image1.gif">> <a href=3D"images/i= mage1.gif">> > If you specify a relative path, then the client (the web bro= wser) must> perform it's request relative to the main document. With an abs= olute path,> it is enough to use the same connect - or a new connect to the= same> server. With a fully qualified URL, the web browser may connect to a= ny web> server to retrieve an image.> > /pwm> > On Sun, 30 Sep 2007, angel = dario wrote:> > > Have anybody build a server using winsock2 and C++?> >> >= YES?> > Have you use port 80 to send html data?> >> > YES?> > What did you= used when the HTML code that you send to the browser had more than 1 pictu= red?> >> > What did you do when the browser tried to connect to http://your= ipaddress/image.gif ?????> >> > ...........................................= ...................................> >> > I tried to solve this problem doi= ng this:> >> > I waited for the browser to ask for the image:> >> > GET /im= age.gif HTTP/1.1> >> > Then i send it, and it work...> >> > BUT....> >> > S= ometimes the browser just request for only 1 image, and the rest of the ima= ges,> > the browser tries to download them, using the path http://youripadd= ress/> >> > I still can't figure out how browsers can download some data fr= om servers without sending any request.....> >> > Is there a way, USING WIN= SOCK2, to let the browser know that http://youripaddress/ is just, C:\Dev-C= pp\images\?> >> > A source code will help better than a plain answer.> >> >= _________________________________________________________________> > Conne= ct to the next generation of MSN Messenger > > http://imagine-msn.com/messe= nger/launch80/default.aspx?locale=3Den-us&source=3Dwlmailtagline>=20 Connect to the next generation of MSN Messenger Get it now!=20 _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=3Dwindows+vista&mkt=3Den-US&form=3DQBR= E= |
From: Per W. <pw...@ia...> - 2007-10-01 03:28:33
|
Have you read up on the HTTP protocol? If your server claim that it users a modern version of the HTTP protocol, then most web browsers will issue several requests on the same connect. If you claim that the server only supports standard 1.0, then the browsers will have to make new connects for each request. There are no magic involved with winsock - your problems doesn't have anything to do with winsock, but with understanding the HTTP protocol, and what a web server is expected to do. A client should not know anything about c:\Dev-Cpp\images - your web server should have a defined root directory, and should figure out all paths either based on that root directory or on individual path translations. You can also affect what requests the web browser makes by switching between absolute, relative and fully qualified image names. Some possible links you might have in the served document: <a href=3D"http://<ip>/images/image1.gif"> <a href=3D"/images/image1.gif"> <a href=3D"images/image1.gif"> If you specify a relative path, then the client (the web browser) must perform it's request relative to the main document. With an absolute path, it is enough to use the same connect - or a new connect to the same server. With a fully qualified URL, the web browser may connect to any web server to retrieve an image. /pwm On Sun, 30 Sep 2007, angel dario wrote: > Have anybody build a server using winsock2 and C++? > > YES? > Have you use port 80 to send html data? > > YES? > What did you used when the HTML code that you send to the browser had mor= e than 1 pictured? > > What did you do when the browser tried to connect to http://youripaddress= /image.gif ????? > > .........................................................................= =2E.... > > I tried to solve this problem doing this: > > I waited for the browser to ask for the image: > > GET /image.gif HTTP/1.1 > > Then i send it, and it work... > > BUT.... > > Sometimes the browser just request for only 1 image, and the rest of the = images, > the browser tries to download them, using the path http://youripaddress/ > > I still can't figure out how browsers can download some data from servers= without sending any request..... > > Is there a way, USING WINSOCK2, to let the browser know that http://youri= paddress/ is just, C:\Dev-Cpp\images\? > > A source code will help better than a plain answer. > > _________________________________________________________________ > Connect to the next generation of MSN Messenger=A0 > http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sou= rce=3Dwlmailtagline |
From: angel d. <sci...@ho...> - 2007-10-01 00:54:25
|
Have anybody build a server using winsock2 and C++? =20 YES? Have you use port 80 to send html data? =20 YES? What did you used when the HTML code that you send to the browser had more = than 1 pictured? =20 What did you do when the browser tried to connect to http://youripaddress/i= mage.gif ????? =20 ...........................................................................= ... =20 I tried to solve this problem doing this: =20 I waited for the browser to ask for the image: =20 GET /image.gif HTTP/1.1 =20 Then i send it, and it work... =20 BUT.... =20 Sometimes the browser just request for only 1 image, and the rest of the im= ages, the browser tries to download them, using the path http://youripaddress/ =20 I still can't figure out how browsers can download some data from servers w= ithout sending any request..... =20 Is there a way, USING WINSOCK2, to let the browser know that http://youripa= ddress/ is just, C:\Dev-Cpp\images\? =20 A source code will help better than a plain answer. =20 _________________________________________________________________ Connect to the next generation of MSN Messenger=A0 http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc= e=3Dwlmailtagline= |
From: Per W. <pw...@ia...> - 2007-09-30 17:37:35
|
Yes, every MinGW tool - on their own - will work in directories with spaces and with file names containing spaces, but every caller - and Makefiles etc - must specifically add break characters or quote paths and file names. There is no real difference from when using them on a Unix machine. /pwm On Sun, 30 Sep 2007, Jonathan Winterflood wrote: > Compiler toolchains have a historical limitation of ton accepting > whitespaces in filenames passed to them (options on the command-line are > seperated withe spaces), back from the times when whitespace was illegal in > filenames. > > This is why dev-cpp does not want you to have any spaces there. > I don't know if this limitation is still true about the compiler dev-cpp > uses... > I guess you could try moving it and see what happens > > HTH, > Jonathan > > On 9/30/07, Elliott Slaughter <ire...@gm...> wrote: > > > > The tilde is also a taboo character, and gets you the same error as white > > space. > > > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > > would prefer not to install it to C:\Dev-Cpp because I don't want random > > program subdirectories in the root directory. > > > > Are there any other options? > > > > I would like to comment to the makers of the install file that it should > > allow you to set the directory to any valid Windows directory without > > imposing limits on white space and such. While the default directory can be > > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > > space and such in names, there really shouldn't be arbitrary limits stopping > > users from doing so if they really want to. > > > > On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > > > > > Try *C:\progra~1* for *c:\Program Files* > > > > > > > > > > > > > > > > > > -----Original Message----- > > > *From:* dev...@li... [mailto: > > > dev...@li...] * On Behalf Of *Elliott > > > Slaughter > > > *Sent:* Sunday, September 30, 2007 6:02 AM > > > *To:* dev...@li... > > > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > > > > > > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > > > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > > > getting it to install into the directory I want it to. The default directory > > > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > > > directory. However, when I try to do this, I get an error saying > > > "Installation directory cannot contain ' '. Only letters, numbers, and > > > ':-_\' are allowed." which gets in the way of my installing it where I want > > > it. I could just install it in the default location, but I prefer to keep my > > > root directory clean of specific applications, or I could move it after > > > installing it, but I really don't want to go into the registry to fix > > > everything. So if I can't get it to install nicely I am more likely just use > > > MSVC instead. > > > > > > Thanks for all assistance in advance. > > > > > > -- > > > Elliott Slaughter > > > > > > "Any road followed precisely to its end leads precisely nowhere." - > > > Frank Herbert > > > > > > > > > > > -- > > Elliott Slaughter > > > > "Any road followed precisely to its end leads precisely nowhere." - Frank > > Herbert > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE > |
From: Per W. <pw...@ia...> - 2007-09-30 17:21:04
|
Do thank the installer writer for stopping you from installing the tool in directories that doesn't work. Command-line tools normally uses space as separator between file names - not as a valid character inside directories and file names. To use gcc or make or the other tools, every single file/directory with spaces must either use a break character before the spaces or put the names within quotes. Whenever you see special rules, you should always stop and spend some time figuring out _why_ they have spent extra time adding these special rules. It would have been a lot easier for them to accept any characters at all... However, a lot of MinGW and/or Dev-C++ users would then have been very, very sad and complained. /pwm On Sun, 30 Sep 2007, Elliott Slaughter wrote: > The tilde is also a taboo character, and gets you the same error as white > space. > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > would prefer not to install it to C:\Dev-Cpp because I don't want random > program subdirectories in the root directory. > > Are there any other options? > > I would like to comment to the makers of the install file that it should > allow you to set the directory to any valid Windows directory without > imposing limits on white space and such. While the default directory can be > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > space and such in names, there really shouldn't be arbitrary limits stopping > users from doing so if they really want to. > > On 9/30/07, Radu Siulea <ra...@tr...> wrote: > > > > Try *C:\progra~1* for *c:\Program Files* > > > > > > > > > > > > -----Original Message----- > > *From:* dev...@li... [mailto: > > dev...@li...] *On Behalf Of *Elliott > > Slaughter > > *Sent:* Sunday, September 30, 2007 6:02 AM > > *To:* dev...@li... > > *Subject:* [Dev-C++] Installing Dev-C++ on Windows XP > > > > > > > > I am attempting to install Dev-C++ on my Windows XP machine using the > > automatic installer (devcpp-4.9.9.2_setup.exe), and I am having problems > > getting it to install into the directory I want it to. The default directory > > is "C:\Dev-Cpp", but I would like it to install into the "C:\Program Files" > > directory. However, when I try to do this, I get an error saying > > "Installation directory cannot contain ' '. Only letters, numbers, and > > ':-_\' are allowed." which gets in the way of my installing it where I want > > it. I could just install it in the default location, but I prefer to keep my > > root directory clean of specific applications, or I could move it after > > installing it, but I really don't want to go into the registry to fix > > everything. So if I can't get it to install nicely I am more likely just use > > MSVC instead. > > > > Thanks for all assistance in advance. > > > > -- > > Elliott Slaughter > > > > "Any road followed precisely to its end leads precisely nowhere." - Frank > > Herbert > > > > > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - Frank > Herbert > |
From: Steven C. <ste...@gm...> - 2007-09-30 17:08:07
|
My best guess is that it's not the installer engine that's the problem. I don't have much (okay, any) experience with MinGW outside of DevCPP but in my experience paths with spaces muck up a lot of things. I would guess the installer is smart to not let the user install to a long path name because of limitations with either the compiler or one of the other tools associated with it. It's also just good practice on the Windows platform to keep it simple whether or not you have any intention of later using any legacy tools. But I'm with you on never installing anything at the root of %systemdrive%. On 30/09/2007, Elliott Slaughter <ire...@gm...> wrote: > > The tilde is also a taboo character, and gets you the same error as white > space. > > I guess I could install it to a new directory like C:\Bin\Dev-Cpp, but I > would prefer not to install it to C:\Dev-Cpp because I don't want random > program subdirectories in the root directory. > > Are there any other options? > > I would like to comment to the makers of the install file that it should > allow you to set the directory to any valid Windows directory without > imposing limits on white space and such. While the default directory can be > C:\Dev-Cpp, and while it might be a good idea in general to avoid white > space and such in names, there really shouldn't be arbitrary limits stopping > users from doing so if they really want to. > |