dev-cpp-users Mailing List for Dev-C++ (Page 641)
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: <tho...@ya...> - 2001-12-06 09:06:54
|
i wrote some code with embedded sql including <sqlext.h>, but the compiler seems not recognize functions as "SQLConnect" or "SQLAllocEnv", compilation error is: undefined reference to 'SQLAllocStmt@4'. some suggestions? regards ____________________________________________________________ Nokia 5510 insolito ma geniale. Vai a http://it.promotions.yahoo.com/nokia/ scoprilo e vincilo. Il concorso termina il 16 dicembre 2001. |
|
From: Kevin W. <ke...@me...> - 2001-12-06 01:06:57
|
I notice the style of the member variable, are you using MS Visual C++ ? If so, and the CString is a MS Foundation Classes CString, you use either m_Edit1.getBuffer( ) or cast the CString to a const char* : (const char*)m_Edit1 both of which return a pointer to a null-terminated character string. Kev. ----- Original Message ----- From: Christian Wallukat <Chr...@vo...> To: CPP-Maillinglist (E-Mail) <dev...@li...> Sent: Wednesday, December 05, 2001 3:09 PM Subject: [Dev-C++] (no subject) > Hi List, > > > I want to sent an UDP Datagram via TCP... > > The send and recive function works properly in a console app... > > Now i want to make a GUI for that... > > > > The problem is that the editfield in my application is a cstring (m_Edit1), > but my app needs a nullterminated string... > > If I convert the CString to a nullterminated string I get nothing ... > > If I write strcpy(szSendString, "hjsdfhs\0"); it works .... > > > > > I have many things tryed but nothing work... > > > Did you have an Idea ??? > > What can I do ? > > > > > Kind regrads > > > Christian > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Luigi S. <gi...@li...> - 2001-12-05 23:41:57
|
Hi, Danny If your program is a console application, what I'll say should work, if instead your dealing with Windows applications, I can't help you. I'll also assume that Windows is your OS. Your question is: given source files, how do I build the binary file?. There are two ways I can think of: one uses Dev-C++ (so it is a GUI method) and the other is the classic CLI method resorting to makefiles. -Using Dev-C++: 1- use Explorer to make a new folder (say c:\test) and move (or copy) the source files of your program (dynarray.h, dynarray.cpp and your main which I'll name test.cpp) to it; 2- start Dev-C++, from the "File" menu select new project, then select "console application" and give a name to your project (the obvious choice would be "test", so that "test.dev" would be created, but then Dev-C++ will not allow you to add the file "test.cpp" to the project, so I suggest you use "test_prj"), also save your project file to "c:\test" (so that everything is stored in one folder); 3- close the "Untitled1" window, and remove the "Untitled1" file from the project (by left clicking on "Untitled1" in the project manager window and then choosing "remove from project"); 4- left click on "test_prj" in the project manager window and choose "add to project", then select the three source files you have in the directory "c:\test"; 5- from the "Execute" menu, select "compile", this will build the binary file named "test_prj.exe" (if your code is error free! (-; ), you can now run it from inside Dev-C++ in the usual way (i.e selecting "run" from the "Execute" menu). -Using a makefile: this approach is a bit longer to describe and probably you are not interested, so I'll say nothing about it, I just mentioned it so that one knows the method exists (actually makefiles are nice tools when your OS has no GUI). If instead you are interested let me know and I'll try to explain an easy way to put up a simple makefile and to use it to build/update your binary file. I hope the above helps. At 21.32 04/12/01 -0500, Danny wrote: >Hola, >I am trying to find out how to properly compile a program when there are >user-written classes involved. I have 3 files- a header file (dynarray.h), >an implementation file (dynarray.cpp), and my main program. Using Dev C++, >what is the proper method and order to correctly compile? This is my first >program where I have had to implement a class, and I can't find information >on how to use Dev C++ to do this. Thanks! > >Danny -- gisan gi...@li... |
|
From: St0fF 6. <st...@gm...> - 2001-12-05 22:36:58
|
Hi Stein. I have an idea how to make a window "unresizable". Either just don't define a resize-function (I guess, this would be the wrong way) or instead of using the resize-parameters you always use the same values for defining the "resized" viewport. If this doesn't work - I wouldn't have another idea ... St0fF. ----- Original Message ----- From: "Stein Nygård" <ste...@ge...> To: "DevCpp" <dev...@li...> Sent: Monday, November 19, 2001 12:40 AM Subject: [Dev-C++] NO resize! > Hey there... > > In DevCpp, I have my OpenGL window. How do I make it unsizeable, so that one > can't change the windowsize while it's running? > Oh, and one more question! How the "/%(/¤ do I implement the scroll button > in my apps? > > Thanks! > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jason H. <jas...@bt...> - 2001-12-05 19:51:56
|
Which method are you using for displaying the double? Is it printf or cout?
For cout then you need to change the value of precision it used, as you have
noticed it defaults to 6.
The ios member function precision(15); should do the trick. i.e.
cout.precision(15);
I think I got that right. There are other ways of doing the same, but I'll
let you look them up. I/O manipulators and flags (ios class).
With printf then you have to modify the format specifiers a little i.e.
printf("My double value is: %1.15f\n", MyDouble);
I don't use printf often so it's up to you to make sure it is right. The
first number after the % specifies the minimum number of digits displayed,
the number after the decimal point is the precision and then the f says you
want to display a floating point value.
I recommend you get a good reference book to allow you to look up stuff like
this, which is what I did. I suppose I had the advantage of knowing where to
look :)
Jason.
----- Original Message -----
From: "Horst Roessner" <hr...@un...>
To: <dev...@li...>
Sent: Wednesday, December 05, 2001 7:17 PM
Subject: [Dev-C++] precision of double
> Hi List,
>
> If I print a double variable I get
> only 6 decimals. How can I get all
> decimal (15) ?
>
> Thanks
> Horst
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Jason H. <jas...@bt...> - 2001-12-05 19:32:14
|
When you refer to CString are you talking about a class of some kind or are you mixing up the C++ class String with a c "style" string? A c style string is in fact a null terminated string, and when you write "Hello World!" (note no need for \0) you are just declaring a null terminated string. If you are useing the C++ String class then to use it as a C string you have to use it's member function c_str(); which returns a pointer to a temporary c style string. Note that you shouldn't try to modify the string through this function. Regards, Jason. ----- Original Message ----- From: "Christian Wallukat" <Chr...@vo...> To: "CPP-Maillinglist (E-Mail)" <dev...@li...> Sent: Wednesday, December 05, 2001 3:09 PM Subject: [Dev-C++] (no subject) > Hi List, > > > I want to sent an UDP Datagram via TCP... > > The send and recive function works properly in a console app... > > Now i want to make a GUI for that... > > > > The problem is that the editfield in my application is a cstring (m_Edit1), > but my app needs a nullterminated string... > > If I convert the CString to a nullterminated string I get nothing ... > > If I write strcpy(szSendString, "hjsdfhs\0"); it works .... > > > > > I have many things tryed but nothing work... > > > Did you have an Idea ??? > > What can I do ? > > > > > Kind regrads > > > Christian > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Jason H. <jas...@bt...> - 2001-12-05 19:32:13
|
The way that most compilers work is that they will compile each individual cpp file into an object file (.o). All these object files are then passed through a linker program which connects then together, mainly making the function calls in one cpp file point to the relevant function in another cpp. The linker will output the executable code (.exe). You shouldn't ever need to include a .cpp file into any other cpp file or header, you only include the header (.h) file if you happen to need a function from one of the other cpp's (or libraries). In fact it is considered bad practice to include a cpp into another. This is only a quick explanation of the process. Before IDE's you would have edited all the code in a text editor of some kind and then typed in the commands like gcc MyCPP.cpp, link MyCPP.o etc... (that may be wrong) To produce a program in Dev-C++ at the moment you need to put all the CPP files in to a project, making sure that if any one cpp uses a function from another to #include the header of that cpp at the top. Then click on compile and the rest of the work is done for you. If it's successful then you will be given the option of executing it, otherwise you will be presented with a list of errors, that you can double click on to take you to the relevant section (most of the time). If you are editing the headers aswell then it is safe to add them to the project also, as one of the faults with Dev-CPP at the moment is that it won't let you edit a file that isn't part of the project without closing the project. Remember that most linker errors occur because the .o or .a (library) file wasn't given to the linker program. Undefined reference or first occurance type errors are usualy because you either failed to declare a function prototype or variable, didn't include the relevant header, or you mistyped a name somewhere. Hope this helps. Regards, Jason. ----- Original Message ----- From: "carlos GARCÍA DEL MONTE" <cg...@wo...> To: <dev...@li...> Sent: Wednesday, December 05, 2001 6:35 PM Subject: [Dev-C++] Re:I need a basic [...] compiling classes > > > Daniel Anderson escribió: > > > Hola, > > I am trying to find out how to properly compile a program when there are > > user-written classes involved. I have 3 files- a header file (dynarray.h), > > an implementation file (dynarray.cpp), and my main program. Using Dev C++, > > what is the proper method and order to correctly compile? This is my first > > program where I have had to implement a class, and I can't find information > > on how to use Dev C++ to do this. Thanks! > > > > Danny > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > Include them in a project, that's all. And #include "file.h" in > file.cpp, and > #include "file.h" > #include "file.cpp" in your main.cpp. > But if that doesn't work (I think you ask because that doesn't work, but > I say > it, so if not, you know now), I imagine you would must write all the > code in > the same file... > Well, but I am a so unexperienced about programming, perhaps there would > be > other solutions... Perhaps writing a makefile? (I have no idea about > makefiles)... Or perhaps your copy of the program is a wrong one > (perhaps it > got downloaded badly) and you'll need download it again. (?) > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Williams, T. W. <TIM...@sa...> - 2001-12-05 19:25:43
|
add cout.precision(15) prior to cout'ing it.
ie.
double n;
n = 0.2343434343434;
cout.precision(15);
cout << n;
--tim
> -----Original Message-----
> From: Horst Roessner [mailto:hr...@un...]
> Sent: Wednesday, December 05, 2001 2:17 PM
> To: dev...@li...
> Subject: [Dev-C++] precision of double
>
>
> Hi List,
>
> If I print a double variable I get
> only 6 decimals. How can I get all
> decimal (15) ?
>
> Thanks
> Horst
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Horst R. <hr...@un...> - 2001-12-05 19:17:18
|
Hi List, If I print a double variable I get only 6 decimals. How can I get all decimal (15) ? Thanks Horst |
|
From: Jason H. <jas...@bt...> - 2001-12-05 18:44:14
|
I wouldn't try and count the amount of memory available as you would get a missleading figure. Memory addresses don't directly map to the real addresses used by the system and Windows makes up for lack of physical RAM by using Virtual Memory (a swap file). Also trying to access memory not assigned to you will cause access violations to occur. After a quick look in the Win32API Reference I found the function GlobalMemoryStatus(); which can be used to obtain various memory usage details, including the amount of physical RAM in the system. A quick summary: #include <windows.h> #include <iostream> ... MEMORYSTATUS meminfo; meminfo.dwLength = sizeof(MEMORYSTATUS); GlobalMemoryStatus(&meminfo); cout << "Amount of Physical RAM = " << meminfo.dwTotalPhys << endl; ... This is an untested segment, but should work OK. Check out the Win32API Reference for more information. Jason. ----- Original Message ----- From: "Ian Weston" <lak...@ho...> To: <dev...@li...> Sent: Wednesday, December 05, 2001 5:11 PM Subject: [Dev-C++] Memory > Hello everybody. i was wondering, does anyone know the code that will count > the amount of memory in you PC. > > thanks in advance to anyone that can help. > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: carlos D. M. <cg...@wo...> - 2001-12-05 18:35:01
|
Daniel Anderson escribió: > Hola, > I am trying to find out how to properly compile a program when there are > user-written classes involved. I have 3 files- a header file (dynarray.h), > an implementation file (dynarray.cpp), and my main program. Using Dev C++, > what is the proper method and order to correctly compile? This is my first > program where I have had to implement a class, and I can't find information > on how to use Dev C++ to do this. Thanks! > > Danny > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Include them in a project, that's all. And #include "file.h" in file.cpp, and #include "file.h" #include "file.cpp" in your main.cpp. But if that doesn't work (I think you ask because that doesn't work, but I say it, so if not, you know now), I imagine you would must write all the code in the same file... Well, but I am a so unexperienced about programming, perhaps there would be other solutions... Perhaps writing a makefile? (I have no idea about makefiles)... Or perhaps your copy of the program is a wrong one (perhaps it got downloaded badly) and you'll need download it again. (?) |
|
From: Luigi S. <gi...@li...> - 2001-12-05 17:44:56
|
Hi, chromatonus 712 Mr. Hardman gave you the hints you asked for and his code is close to your approach, instead what I'm sending you relies on pointers though still using your idea of an array to store elements. I did not use the "conio" library but only standard I/O operations. You will not find too many comments because the code is fairly simple, I also have the stack not deal with singular events (such as pushing on a full stack or popping from an empty one), because I can't think of any approach that is different from terminating execution (too abrupt) or throwing an exception (not sure how to do that yet); instead I let the client check if these events are about to occur. Probably you will find my code too simple for your needs, but I hope you will appreciate it. At 02.28 30/11/01 +0000, chromatonus 712 wrote: >hi, may I know how to display elements and count the number of elements in >a stack defined below, without destruction? thank you very much! >... -- gisan gi...@li... |
|
From: Ian W. <lak...@ho...> - 2001-12-05 17:11:20
|
Hello everybody. i was wondering, does anyone know the code that will count the amount of memory in you PC. thanks in advance to anyone that can help. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: Christian W. <Chr...@vo...> - 2001-12-05 15:07:39
|
Hi List, I want to sent an UDP Datagram via TCP... The send and recive function works properly in a console app... Now i want to make a GUI for that... The problem is that the editfield in my application is a cstring (m_Edit1), but my app needs a nullterminated string... If I convert the CString to a nullterminated string I get nothing ... If I write strcpy(szSendString, "hjsdfhs\0"); it works .... I have many things tryed but nothing work... Did you have an Idea ??? What can I do ? Kind regrads Christian |
|
From: Norbert K. <An...@ro...> - 2001-12-05 10:21:23
|
Hey! Nobody answer Mike's letter? I am interesting also in this topic... AnChoR ===== _______________________ AnChoR of Therapy & CDI _____Code & Music______ an...@ro... __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com |
|
From: Daniel G. <sp...@ho...> - 2001-12-05 09:42:16
|
<html><div style='background-color:'><DIV> <P>I found Andre LaMothe's book Windows Game Programming for Dummies helped me, the DirectX is a bit outdated but it has a whole section on how to do windows in Windows.<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: freak901010 <FRE...@PS...> <DIV></DIV>>To: Dev...@so... <DIV></DIV>>Subject: Re: [Dev-C++] RE: Windows apps? <DIV></DIV>>Date: Mon, 03 Dec 2001 22:32:58 -0500 <DIV></DIV>> <DIV></DIV>>Thanks, but that site didn't really help. Thanks for trying though. <DIV></DIV>> <DIV></DIV>>Mike Shoup | Freak901010 | Fre...@ps... <DIV></DIV>> <DIV></DIV>>Julio Lajara wrote: <DIV></DIV>> > <DIV></DIV>> > http://www.gamedev.net has links to other websites and <DIV></DIV>> > tutorials on this; look for stuff on Win32. <DIV></DIV>> > <DIV></DIV>> > -----ORIGINAL MESSAGE------------------------------ <DIV></DIV>> > FROM: mike shoupDATE: 12/03/2001 12:48:39SUBJECT: <DIV></DIV>> > [Dev-C++] Windows apps? Hello. I just finished <DIV></DIV>> > learning the C programming language from a book. The <DIV></DIV>> > book did not include any idea as to how to write <DIV></DIV>> > Windows programs, just the <DIV></DIV>> > little text based ones. I am curious as to if someone <DIV></DIV>> > could point me to a <DIV></DIV>> > good book or online tutorial that describes how to do <DIV></DIV>> > this. <DIV></DIV>> > <DIV></DIV>> > Thanks <DIV></DIV>> > <DIV></DIV>> > Mike S. | Freak901010 | <EMAIL: PROTECTED> <DIV></DIV>> > <DIV></DIV>> > _________________________________________________________________ <DIV></DIV>> > Get your FREE download of MSN Explorer at <DIV></DIV>> > http://explorer.msn.com/intl.asp <DIV></DIV>> > <DIV></DIV>> > _______________________________________________ <DIV></DIV>> > Dev-cpp-users mailing list <DIV></DIV>> > <EMAIL: PROTECTED> <DIV></DIV>> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > ===== <DIV></DIV>> > Julio <DIV></DIV>> > <DIV></DIV>> > __________________________________________________ <DIV></DIV>> > Do You Yahoo!? <DIV></DIV>> > Buy the perfect holiday gifts at Yahoo! Shopping. <DIV></DIV>> > http://shopping.yahoo.com <DIV></DIV>> > <DIV></DIV>> > _______________________________________________ <DIV></DIV>> > Dev-cpp-users mailing list <DIV></DIV>> > Dev...@li... <DIV></DIV>> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV>> <DIV></DIV>>_______________________________________________ <DIV></DIV>>Dev-cpp-users mailing list <DIV></DIV>>Dev...@li... <DIV></DIV>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Daniel A. <bt...@ca...> - 2001-12-05 02:28:20
|
Hola, I am trying to find out how to properly compile a program when there are user-written classes involved. I have 3 files- a header file (dynarray.h), an implementation file (dynarray.cpp), and my main program. Using Dev C++, what is the proper method and order to correctly compile? This is my first program where I have had to implement a class, and I can't find information on how to use Dev C++ to do this. Thanks! Danny |
|
From: Julio L. <ju2...@ya...> - 2001-12-04 22:29:02
|
I forgot to say that it was supposed to output the data in the class variables to file, or at least that is what my book said, and then read them back into the member variables of another class object of that type, but it seems to be doing neither... ===== Julio __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com |
|
From: Charles <cha...@at...> - 2001-12-04 22:28:59
|
Andre -
-------------------------------------
I just tested the solution that Ricardo Lopez Ruiz sent: replace
fflush(stdout) with fflush(sdtin) that finally seems to work fine.
So I suppose that I make a mistake somewhere else in the program. Please
let me know if you find it. Here is the full source:
#include <stdio.h>
main()
{
int i,n,som;
i = 0;
n = 0;
som = 0;
printf("\n==== Somme des n premiers multiples de 3 ====\n\nEntrez la
valeur de n : "); scanf("%d",&n); n=n*3;
while(n>i)
{
i+=3;
som=som+i;
}
printf("La somme est : %d\n",som);
printf("Taper ENTREE pour continuer...");
fflush(stdout);
getchar();
}
-------------------------------------
Well, this is interesting. I can see the problem but I don't know the
solution. If you comment out only the scanf("% d",&n); line, the problem
goes away. It appears that something is being left in the input buffer by
scanf. When getchar() goes looking there a few lines later, it sees
whatever is there and closes the program without waiting for a new entry.
fflush(stdin); before the getchar() clears the input buffer for you but it
doesn't work on my configuration.
By the way, the fflush(stdout); clears the output buffer and is there to
ensure that "Taper ENTREE pour continuer..." is sent to the screen.
Chuck
|
|
From: <jd...@da...> - 2001-12-04 21:43:57
|
why when i try to compile a program with the #import directive I obtain this
error?
undefined or invalid # directive.
How can I import functions stored in a dll?
Im trying to use
this:
#import "c:\Programmi\File Comuni\System\ADO\msado15.dll" \
no_namespace rename("EOF", "EndOfFile").
Please forgive me for bad english, I'm Italian!
|
|
From: <ad...@Ho...> - 2001-12-04 17:37:27
|
Well, I suppose my message was not precise enough.
The problem I encountered was that the Dos windows closed without
waiting me to hit the return key. It did with the 'system("pause")'
instruction.
I just tested the solution that Ricardo Lopez Ruiz sent: replace
fflush(stdout) with fflush(sdtin) that finally seems to work fine.
So I suppose that I make a mistake somewhere else in the program. Please
let me know if you find it. Here is the full source:
#include <stdio.h>
main()
{
int i,n,som;
i =3D 0;
n =3D 0;
som =3D 0;
printf("\n=3D=3D=3D=3D Somme des n premiers multiples de 3 =
=3D=3D=3D=3D\n\nEntrez la
valeur de n : "); scanf("%d",&n); n=3Dn*3;
while(n>i)
{
i+=3D3;
som=3Dsom+i;
}
printf("La somme est : %d\n",som);
printf("Taper ENTREE pour continuer...");
fflush(stdout);
getchar();
}
--
Andr=E9 Duc-Taffe ad...@ho...
:::::::::::::::::::::::::::::::::::::::::::::::::
http://www.lescastro.fr.st
http://www.exempligratia.net
|
|
From: Nirmit K. <nir...@ho...> - 2001-12-04 14:55:04
|
RESPECTED SIR, Please remove me from the mailing list. I am no longer interested in getting mailings from DevC++ . So kindly bring this this to your notice and remove me from the mailing list. respectfully yours Nirmit _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |
|
From: staale <st...@le...> - 2001-12-04 13:31:00
|
Hi there, I'm trying to use the wxWindows library with dev-c but have som problems = with the include files / dev-c configuration.=20 I would like to compile, test and learn form the wxWindows samples but = gets lots of linker errors. Anyone who could point me in a direction? Best regards Staale Flock |
|
From: dx F. <vin...@ed...> - 2001-12-04 12:10:41
|
You are right. Some other applications leave the extended styles to 0. And it still is an application window. And also, excluding the windows with WS_CHLD and WS_POPUP styles still leaves a lot of windows which I cant really switch to.
You said that there must be another way... There has to be! How does the windows taskbar do this! Ive tried searching the internet but it yielded so many search results that I was too lazy to browse all of them.
THERE HAS TO BE ANOTHER WAY! anyone! does anyone know how to get around with this?
---- Original Message -----
From: "Kevin Wood" <ke...@me...>
To: <dev...@li...>
Subject: Re: [Dev-C++] Win32 shell programming
Date: Sat, 1 Dec 2001 20:16:17 -0000
I don't think you are doing anything wrong. I have spent a few hours
experimenting with this and think that the problem is that most applications
don't set the WS_EX_APPWINDOW
extended style. Look at the Dev C++ template file - the parameter is set to
zero. If you set this parameter in your program code then print a list of
windows with that style, (using the code you have written) your program will
be listed.
Perhaps you could test the other styles and reject windows with the
WS_CHILD and WS_POPUP styles. However, this still leaves quite a few windows
that you can't switch to. Note that testing for the visible style leaves out
windows that are minimised to the task bar.
There must be another way!
Kev.
----- Original Message -----
From: dx FX <vin...@ed...>
To: Dev-C++ mailing list <dev...@li...>
Sent: Saturday, December 01, 2001 4:08 AM
Subject: [Dev-C++] Re: Re: Re: Win32 shell programming
> Ok. now Ive done it... but still am getting a zero count on application
windows. Anybody knows what Im doing wrong? the following is a test code.
Note that the code wasnt optimized for speed for it still is a test.
>
> #include <string>
> #include <windows.h>
> #include <iostream.h>
>
> BOOL IsAPPWINDOW(HWND);
> BOOL IsVISIBLE(HWND);
> int i = 0;
>
> BOOL CALLBACK AppGetWindows(HWND hwnd, LPARAM lParam) {
> if (IsAPPWINDOW(hwnd)) {
> // APPWINDOW...
> cin >> str2;
> if (IsVISIBLE(hwnd)) {
> // VISIBLE. Adding...
> i = i + 1;
> }
> }
> return true;
> }
>
> BOOL IsAPPWINDOW(HWND hwnd) {
> if ((GetWindowLong(hwnd,GWL_EXSTYLE) &
WS_EX_APPWINDOW)==WS_EX_APPWINDOW) {
> // the window referenced by the handle has a WS_EX_APPWINDOW style
> return true;
> } else {
> // no it doesnt
> return false;
> }
> }
>
> BOOL IsVISIBLE(HWND hwnd) {
> if ((GetWindowLong(hwnd,GWL_STYLE) & WS_VISIBLE)==WS_VISIBLE) {
> // the window referenced by the handle has a WS_VISIBLE style
> return true;
> } else {
> // no it doesnt
> return false;
> }
> }
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
lpCmdLine, int cmdShow) {
> if (EnumWindows(*AppGetWindows, 0)) {
> // print out the number of windows
> cout << i;
> } else {
> cout << "EnumWindows Failed!";
> }
> string str;
> cin >> str;
> }
>
>
> The program is suposed to detect the current windows with the WS_VISIBLE
and WS_EX_APPWINDOW styles and then count them. The output is the number of
windows that met the criteria. As one of you all said... the windows taskbar
only enumerates windows with the afformentioned styles. Take note that the
code is not yet optimized for it is still a test code. Any help on
optimizing the code would be a great help.
>
> Back to the problem... Did I do something wrong again??? I have other
applications running and it is supposed to output the number of the windows
available in the taskbar. Anybody! Help!
>
>
> __________________________________
> www.edsamail.com
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
__________________________________
www.edsamail.com
|
|
From: daniel <da...@op...> - 2001-12-04 05:53:13
|
read the program below and the question.i am not able to understand how it is
happening.your help is appreciated.
#include <stdio.h>
int main()
{int n[5][2]={
{0,1},
{2,3},
{4,5},
{6,7},
{8,9}
};
printf("\n%u",&n[1][0]);
printf("\n%u",n+1);
printf("\n%u",*(n+1));
system("PAUSE");
return 0;
} /*QUESTION) while it is apparent that n+1 will give
the address of n[1][0] but how come *(n+1) also
gives the address of n[1][0]
instead of n+1 & *(n+1) u can take n+i & *(n+i)
for i=0 to i=4 */
-------------------------------------------
The Fastest Browser on Earth.
Get your FREE download of Opera at http://www.opera.com/download/
-------------------------------------------
|