Thread: Re: [Dev-C++] (no subject) (Page 11)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: <gen...@ya...> - 2004-03-25 12:49:38
|
well, since the matter came up, identifiers like IDOK, etc usually aren't defined by the resource compiler. a lot of times i found i've had to include windows.h in a resource file to make it work. maybe 'cos i used to use msvc, but i happend to have done the same in mingw with no harmful results. ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now http://uk.messenger.yahoo.com/download/index.html |
From: Malcolm N. <m.n...@wa...> - 2004-03-25 12:18:57
|
Hello Oladipo, Thursday, March 25, 2004, 12:02:24 PM, you wrote: OO> hope siteresources won't flood the list seeing he's OO> from floodcity :D anyhow, i think the problem is he OO> didn't include windows.h in his resource file. correct OO> me if i'm wrong. besides, he's not told us EXACTLY OO> what went wrong. He doesn't need to. See my earlier post (which went directly to Siteresource instead of the list), which I have resent, now to the list. I managed to use only his code and get a working program. -- Best regards, Malcolm |
From: Site R. <sit...@fl...> - 2004-03-25 21:13:17
|
Ha, nevermind! You were exactly right, I needed to include windows.h. I = never knew you needed to do that before. Well I guess just since the = style part of the dialog definition needed those constants from = windows.h. It works now! The only way I came across that was because on the resources tab, it = said "parse error on line 6", which was where the style thing was. = Thanks! Brandon -- Site Resources=20 How to get your web host screaming "NoMoreHits"=20 More Site Traffic - Don't Touch My Ads ----- Original Message -----=20 From: Oladipo Odumosu=20 To: dev...@li...=20 Sent: Thursday, March 25, 2004 6:02 AM Subject: [Dev-C++] (no subject) hope siteresources won't flood the list seeing he's from floodcity :D anyhow, i think the problem is he didn't include windows.h in his resource file. correct me if i'm wrong. besides, he's not told us EXACTLY what went wrong. cheers ___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping"=20 your friends today! Download Messenger Now=20 http://uk.messenger.yahoo.com/download/index.html ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system = administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli= ck _______________________________________________ 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: Site R. <sit...@fl...> - 2004-03-25 22:47:46
|
you wrote: Hello guys. It is always better to include winresrc.h instead of windows.h. You'll = see... Can you please give any reasons how that is so? I don't notice any = difference in size or anything. Thanks. |
From: <tr...@mx...> - 2004-03-26 17:27:58
|
The fact is that both Mingw's and MSVC's windows.h includes winresrc.h when compiling as resource, but it is suggested (I think I have read that at the msdn) for code portability. Many programmers (myself included) uses rather winresrc because of its name. But if you are not going to share the code you can use anyone. --- Jan Ringos, Tr...@mx... http://tringi.mx-3.cz > > you wrote: > > Hello guys. > > It is always better to include winresrc.h instead of windows.h. You'll see... > Can you please give any reasons how that is so? I don't notice any difference in size or anything. > > Thanks. |
From: Site R. <sit...@fl...> - 2004-03-26 20:30:26
|
Dev C++ seems to disagree, lol. In airplane.h, the header to the = resource file, I include winresrc.h. I try to compile the entire = project, and it gives 13 errors, many from winuser.h. It says that this = and that thing isn't defined... This is all from dialogs.h which = includes airplane.h, (for the IDS of the resources), then another = include, then includes windows.h. But if dialogs.h includes windows.h = before airplane.h, then there are no problems. Why is this so? Brandon |
From: <tr...@mx...> - 2004-03-26 22:59:23
|
Airplane.h??? Then it is better to use windows.h. But I have never had = any problems using winresrc.h. Maybe it is because I use my own defined identifiers ...except IDOK, = IDCANCEL and so on. --- Jan Ringos, Tr...@mx... http://tringi.mx-3.cz senior programmer-analyst n.v.t. MX-3, www.mx-3.cz ----- Original Message -----=20 From: Site Resources=20 To: dev...@li...=20 Sent: Friday, March 26, 2004 9:30 PM Subject: Re: [Dev-C++] (no subject) Dev C++ seems to disagree, lol. In airplane.h, the header to the = resource file, I include winresrc.h. I try to compile the entire = project, and it gives 13 errors, many from winuser.h. It says that this = and that thing isn't defined... This is all from dialogs.h which = includes airplane.h, (for the IDS of the resources), then another = include, then includes windows.h. But if dialogs.h includes windows.h = before airplane.h, then there are no problems. Why is this so? Brandon |
From: <gen...@ya...> - 2004-03-30 08:11:07
|
that's because a lot of stuff gets #defined or typedefed in headers #included by windows.h. for instance, unicode-related stuff is in winnt.h. even in MSVC++, if you try to include headers in a particular order, it might ask for a lot of undefined symbols. for instance, i personally like including headers in alphabetical order. but when compiling Woe32 (got this from GNU.org sources and site :D) programs using common controls, you have to include windows.h before commctrl.h, or woe betide you. :D nuff said ___________________________________________________________ WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards www.yahoo.co.uk/internetcafes |
From: Vivek J. <viv...@ya...> - 2004-03-27 18:26:10
|
I am working on a project to build a library in C++ that will enable users to write programs with the ease of BASIC. Check it out at http://ezbasic.sourceforge.net/ , I am looking for people who would like to join and help build the project. It compiles for Mingw and would like to add support for dev-cpp --------------------------------- Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. |
From: Erika B. <eri...@st...> - 2004-03-25 13:32:38
|
Hi,it's me again! My problems with Dev-cpp have not finished. So I want to ask you if you k= now a=20 web site where I can learn a bit more about input and output functions (c= in=20 and cout, for example) and classes. I have already read a book by Helbert= =20 Schildt, but I keep misunderstanding the point. I don't want to buy anoth= er=20 book, as they cost too much, but I want a suggestion for a web site. Than= k you=20 very much Erika |
From: <fa...@uc...> - 2004-05-25 18:26:22
|
Hi, I just downloaded dev-c++ I wrote a helloworld program. When I tried compiling It gave me the message unable to run. I checked compiling options and I was told to include the location of my binaries. I don't know where they are located. Could I get some help with finding my binaries. |
From: Alf C S. <al...@st...> - 2004-05-25 18:53:38
|
On Tue, 25 May 2004 fa...@uc... wrote: > > Hi, > I just downloaded dev-c++ I wrote a helloworld program. > When I tried compiling It gave me the message unable to run. > I checked compiling options and I was told to include the location of my > binaries. I don't know where they are located. > Could I get some help with finding my binaries. > Do a search for gcc and set that location in your Dev-C++ --- Regards, Alf Stockton www.stockton.co.za Art is either plagiarism or revolution. -- Paul Gauguin |
From: dirty d. <dir...@ms...> - 2004-06-21 19:45:19
|
can someone please explain the significance of the second if statement? thnx pete if((number>=10000 && number <100000)) { if (((number/10000) == (number%10)) && (((number/1000)%10) == ((number/10) %10))) cout<<number<<" is a palindrome"<<endl; else cout <<number<<" is not palindrome"<<endl; } else{ cout<<"You did not enter a 5-digit number!"<<endl; _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ |
From: Jesse H. <jes...@gm...> - 2004-06-21 19:58:41
|
Provided number is an integer, number / 10000 =3D=3D 1st digit (55255 / 10000 =3D 5) number % 10 =3D=3D 5th digit (55255 % 10 =3D 5) if (number/10000) =3D=3D (number%10)) checks if the first and last digits a= re equal. (number/1000)%10 =3D=3D 2nd digit (number/10)%10) =3D=3D 4th digit if (number/1000)%10 =3D=3D (number/10)%10 checks if the second and fourth digits are equal. The third digit can be ignored... Cheerio! On Mon, 21 Jun 2004 15:45:12 -0400, dirty dragon <dir...@ms...> w= rote: >=20 > can someone please explain the significance of the second if statement? > thnx pete >=20 > if((number>=3D10000 && number <100000)) >=20 > { > if (((number/10000) =3D=3D (number%10)) && (((number/1000)%10) =3D=3D ((n= umber/10) > %10))) >=20 > cout<<number<<" is a palindrome"<<endl; > else > cout <<number<<" is not palindrome"<<endl; >=20 > } > else{ > cout<<"You did not enter a 5-digit number!"<<endl; >=20 > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar =96 get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ >=20 > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.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 >=20 --=20 Jesse Hallam University of Waterloo Freshman |
From: Nancy A. <nai...@ho...> - 2004-06-25 01:31:12
|
<html><div style='background-color:'><DIV class=RTE>Hi</DIV></div><br clear=all><hr>MSN Amor <a href="http://g.msn.com/8HMAES/2752??PS=47575">Busca tu ½ naranja</a> </html> |
From: PETER C. <pca...@cc...> - 2004-07-04 19:48:19
|
cpp freshman asks for help again...i want this program to request the user for 20 numbers within the range 10<x<100 and print the 20 numbers. if the numbers have any duplicates the numbers must be re-entered. i have a parse error at the end of the program. i've read thru the program a few times but can't find it. **David, i am trying to think more about my programs and what i want them to do. i made a flow chart for this one. another question, is it possible to use rand()/rand_max in anyway in this program? thanx again everyone panos.....GO GREEECE EURO 2004:) #include <iostream> using namespace std; int main(){ int numbs; int num[20]; for (int i=0; i<20; i++){ cout << "what are the numbers? "; cin >> numbs; num[i] = numbs; if (num[i] = num[i]) { cout << "you have entered a duplicate. Try again. "; cin >> numbs; num[i] = numbs; } else if (numbs <= 10 || numbs >= 100) { cout << "you have entered a value out of range. try again. "; cin >> numbs; num[i] = numbs; } else cout << "the numbers are" << num[i] << endl; return 0; } ______________ ______________ ______________ ______________ ccny.cuny.edu |
From: Per W. <pw...@ia...> - 2004-07-04 22:30:35
|
You have forgotten then end brace for your for() statement. Note that you shouldn't use the for statement like that, since you don't want to run it for 20 times, but until you have 20 accepted numbers. If a user enters an incorrect number, the for loop should run for more than 20 times. With your current structure, you do one retry if the entered number iswrong - however, you don't make a new check that the number is ok. If you instead did the i++ increment only when you are satisfied with the number, you may run the for loop as many times as is needed. You should add a new loop (for j = 0; j < i; j++) to verify that the entered number isn't a duplicate value. By the way: Please specify a subject when you mail to this list. /Per W On Sun, 4 Jul 2004, PETER CAMPOS wrote: > cpp freshman asks for help again...i want this program to request the user for 20 numbers within the range 10<x<100 and print the 20 numbers. if the numbers have any duplicates the numbers must be re-entered. > i have a parse error at the end of the program. i've read thru the program a few times but can't find it. **David, i am trying to think more about my programs and what i want them to do. i made a flow chart for this one. another question, is it possible to use rand()/rand_max in anyway in this program? > > thanx again everyone > panos.....GO GREEECE EURO 2004:) > > #include <iostream> > using namespace std; > > int main(){ > int numbs; > int num[20]; > for (int i=0; i<20; i++){ > cout << "what are the numbers? "; > cin >> numbs; > num[i] = numbs; > > if (num[i] = num[i]) > { > cout << "you have entered a duplicate. Try again. "; > cin >> numbs; > num[i] = numbs; > } > > else if (numbs <= 10 || numbs >= 100) > { > cout << "you have entered a value out of range. try again. "; > cin >> numbs; > num[i] = numbs; > } > else > cout << "the numbers are" << num[i] << endl; > > > return 0; > } > > > ______________ ______________ ______________ ______________ > ccny.cuny.edu > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.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: <tay...@dd...> - 2004-07-06 03:08:42
|
Hi, a) Does anybody know of a place where I can get toolbars to replace the standard MS toolbar.bmp? b) and where to get sample code and instructions to build a custom toolbar into a C++ program? Thanks for the tips. Jorge --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ |
From: Dane E. <DE...@pa...> - 2004-08-11 21:44:08
|
Hi all, =20 Thank you in advance for any help that you can offer.=20 Im working on a basic program with a 'students class' When I try to compile my crude code to ensure I have my basic files built, I get this error: =20 9 C:\Documents and Settings\densign\Desktop\Students\students.h 'string' is used as a type, but is not defined as a type. =20 I have 3 files that Im using. They are: main.cpp, students.h, and students.cpp. Here is their code: =20 //main.cpp #include <string> #include <iostream> #include <stdlib.h> #include <vector> #include "students.h" =20 using namespace std; =20 //Functions void DaneHeader(); =20 int main(int argc, char *argv[]) { DaneHeader(); =20 system("PAUSE");=20 return 0; } =20 void DaneHeader() { cout << "\nDane Ensign" << "\nStudents App." << "\n**********\n\n"; _____________________ //students.h class students { public: students(); =20 private: string fname; string lname; int scoreWin, scoreWord, scoreExcel, scoreAccess, scorePoint;=20 }; ________________________ //students.cpp #include <string> #include <iostream> #include <stdlib.h> using namespace std; #include "students.h" =20 // default constructor students::students() { fname =3D "First"; lname =3D "Last"; scoreWin =3D 0; scoreWord =3D 0; scoreExcel =3D 0; scoreAccess =3D 0; scorePoint =3D 0; =20 } _________ =20 |
From: Michal M. <mi...@mo...> - 2004-08-11 22:17:05
|
Dane Ensign wrote: > //students.h > class students > { > public: > students(); > > private: > string fname; > string lname; > int scoreWin, scoreWord, scoreExcel, scoreAccess, scorePoint; > }; std::string fname; std::string lname; or put using namespace std; before #include "students.h" -- Regards, Michal |
From: Mark L. W. <ma...@al...> - 2004-08-13 17:15:40
|
Hello all! I have recently upgraded my Dev-C++ to version 4.9.9.0. I am having trouble with the gdb (source debugger). It works "most" of the time, but often just "hangs" (the program does not appear to be executing anymore... however I am able to set and remove breakpoints). Anyone else having problems with this debugger? Are there any other options for a good (free) source debugger system? Thanks! Mark |
From: <sp...@po...> - 2004-08-13 17:23:28
|
Mark, it definitely shouldn't hang - can you please provide a detailed description, perhaps a sample project and write a bug report here? http://sf.net/projects/dev-cpp/bugs Thanks, Marek Mark L. Wise wrote: >Hello all! > >I have recently upgraded my Dev-C++ to version 4.9.9.0. > >I am having trouble with the gdb (source debugger). It works "most" of the >time, but often just "hangs" (the program does not appear to be executing >anymore... however I am able to set and remove breakpoints). > >Anyone else having problems with this debugger? > >Are there any other options for a good (free) source debugger system? > >Thanks! > >Mark > > |
From: <con...@ya...> - 2004-08-20 23:34:25
|
_________________________________________________________ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx |
From: Andre M. B. <ab...@cp...> - 2004-08-31 12:52:02
|
Dear Users, I need to link in my project file one lib called winmm.lib (Windows Multimedia Library).=20 -Does Mingw offer some equivalent? What is its name and where can I=20 download it? -If don=B4t do you know if it works I copy this lib from MSVC++ and ad= d it in my dev-cpp lib directory?=20 Regards Andre |
From: Per W. <pw...@ia...> - 2004-08-31 13:27:11
|
libwinnm.a and is liked with -lwinnm /Per W On Tue, 31 Aug 2004, Andre Macario Barros wrote: > > Dear Users, > > I need to link in my project file one lib called winmm.lib (Windows > Multimedia Library). > > -Does Mingw offer some equivalent? What is its name and where can I > download it? > -If don=B4t do you know if it works I copy this lib from M |