dev-cpp-users Mailing List for Dev-C++ (Page 558)
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: E L. <cr...@my...> - 2002-07-10 01:01:56
|
For small to medium sized apps its hard to beat fltk at www.fltk.org. It is a small, fast and is easy to use toolkit for Windows and Linux/unix. It comes with a very good GUI builder called "fluid" > I'm new to dev-cpp. I wonder whether designing a decent GUI really > requires writing it all down using hundrets/tousends of lines of code? > Is there any library like that available? |
|
From: Roberto R. <rob...@ar...> - 2002-07-10 00:25:53
|
Hi all, There are some editing tool to make some like a `grep` to do a source trace of declarations, variables, etc. ? I mean, I wish to see an separate copy over a code portion but interactively just like a filter, to see a variable circuits code, for example: my prog() int Test[20]; ... some code ... Test[wathever]++; .. .. more code .. if (Test[wathever] > 5) dosome(); ... ... more code ... Test[wathever] = ending_time; ... (maybe resalted in colours too, and so on) Thanks in advance Rob |
|
From: Hongli L. <h....@ch...> - 2002-07-10 00:01:06
|
On Wed, 2002-07-10 at 01:27, Daniel K. O. wrote: > Try using the Gtk 2.0 package for the GUI, and use wGLADE to design your > interface. > wGLADE uses Gtk 1.3, but you can compile most of the interfaces with the Gtk > 2.0 package. > The Gtk 1.3 files you can find at Tor's pages, at www.gimp.org, and the > wGLADE you can search on Sourceforge.net. > > > Suggestion to Hongli Lai: make a Gtk 1.3 package, so will be easier to port > Gtk programs from *nix that use the 1.3 version. > Why 1.3? 1.3 is the unstable version and have lots of bugs. The early versions were partially source compatible with 1.2 and the later versions were source compatible with 2.0. 2.0 is the final version. Eventually, everybody will port their 1.2 apps to 2.0, so I don't see the point in providing a package for 1.3 just to be compatible with 1.2. |
|
From: Daniel K. O. <dan...@ya...> - 2002-07-09 23:27:36
|
Try using the Gtk 2.0 package for the GUI, and use wGLADE to design your interface. wGLADE uses Gtk 1.3, but you can compile most of the interfaces with the Gtk 2.0 package. The Gtk 1.3 files you can find at Tor's pages, at www.gimp.org, and the wGLADE you can search on Sourceforge.net. Suggestion to Hongli Lai: make a Gtk 1.3 package, so will be easier to port Gtk programs from *nix that use the 1.3 version. Daniel K. O. mike wrote: Hello I'm new to dev-cpp. I wonder whether designing a decent GUI really requires writing it all down using hundrets/tousends of lines of code? Isn't there any library for doing this in a more-delphi [soory :)] way? I mean, I would not be happy if had to code every single keystroke down when want to place an edit field/list/whatever on the "form" - in the window. And that is the idea I've about dev-cpp now, is it wrong? Is there any library like that available? Thanks! Mike _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: mike <mz...@kk...> - 2002-07-09 21:00:11
|
Hello
I'm new to dev-cpp. I wonder whether designing a decent GUI really
requires writing it all down using hundrets/tousends of lines of code?
Isn't there any library for doing this in a more-delphi [soory :)]
way? I mean, I would not be happy if had to code every single
keystroke down when want to place an edit field/list/whatever on the
"form" - in the window. And that is the idea I've about dev-cpp now,
is it wrong?
Is there any library like that available?
Thanks!
Mike
---
Super promocyjna oferta dla mieszkancow Krakowa
http://www.promocja.kki.pl/radio.html
---
|
|
From: Ioannis V. <no...@ho...> - 2002-07-09 20:02:59
|
<http://run.to/noicys> -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of John Sent: Tuesday, July 09, 2002 10:05 PM To: Dev...@li... Subject: [Dev-C++] remove from list please remove me from the list. Thanks http://www.noicys.cjb.net/devcpp/ub.htm Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |
|
From: John <jo...@mu...> - 2002-07-09 19:05:10
|
please remove me from the list. Thanks |
|
From: Carlos d. M. <cg...@wo...> - 2002-07-09 18:59:19
|
I am learning windows, with a book after having read some tutorials, so I= cannot say much, but I don't remember any answer, so here are my two cents: In the Win32API reference (13MB) you can download at http://www.cs.virginia.edu/~lcc-win32/, there are some pages about rich e= dits, the introductory one (which does not explain anything) says this: A rich edit control is a window in which the user can enter and edit text= . The text can be assigned character and paragraph formatting, and can include embedded OLE objects. Rich edit controls provide a programming interface = for formatting text. However, an application must implement any user interfac= e components necessary to make formatting operations available to the user. I eyed the pages about rich edit controls very quickly, if I understood w= ell, you can use rich edit controls without OLE, although they support OLE. In your message it seems like you don't know the DrawText function, which= makes some wrapping of the text to the window (see below), and its prototype is= , pasted from the win32api reference: int DrawText( HDC hDC, // handle to device context LPCTSTR lpString, // pointer to string to draw int nCount, // string length, in characters LPRECT lpRect, // pointer to structure with formatting dimensions UINT uFormat // text-drawing flags ); lpRect is, of course, the rectangle defining the region of the window whe= re you want display the text. This would be the better alternative to rich edits than textout, if they'= re not available without OLE, since it makes a part of the work. Ramana Kumar escribi=F3: > Hi, > I would like to use a control in my win32 app written in C++ using ONLY > win32 API (i.e. not MFC) that lets me write text in different fonts or > colours to the screen, but is read only, i.e. is for output only, not i= nput. > > Before implementing the functionality of this control, i had made it a > simple edit control, because the simple edit control for my input windo= w is > working fine, but it seems this will not work for output as edit contro= ls > set their text all at once (i need to be able to send text to the contr= ol as > i need to, and have it appended) and edit controls cannot take text of = more > than one font. > > the next thing i thought of is to use the TextOut function, but i fear = this > will not be very easy, and may not be a complete solution, because i'll= need > the text to be scrollable after there is too much of it, and it needs t= o > word wrap to the size the user makes the window. > > what i have been looking at tonight is the richedit control, which may = do > the job, but i cannot find any information about how to use it using wi= n32 > api calls in c++. is richedit the way to go? if so, how do i use it? ca= n i > create one using CreateWindowEx and send it messages using SendMessage = or > specialised functions? > > this is what i would like: > HWND hOutput =3D CreateWindowEx(special edit control thingy details); > HFONT hFont =3D CreateFont(... whatever) > SendTextorSimilar(hOutput,hFont,char* text,etc...); > GetTextorSimilar(hOutput,&text,etc...); > > something along those lines. is there a control for me? is there > documentation? by control, obviously i mean a window which is going to = be a > child window of my app. also, all the functionality of the control has = to be > already written up so i can just call the functions, so does this mean = it > has to be a common control (i don't know how many of these there are)? = my > biggest fear right now is that there is no common rich text control (li= ke > there is no splitter control) and i'll have to write something myself l= ike i > wrote my splitter bar window, but it won't be so easy. > > so, anyone know how to use richedit in win32 api? > thanks > ramana > p.s. i will probably not reply to (nor receive) any replies to this mes= sage > for the next 14 days or so, because i'm going away so, yeah, (if anyone= is > interested lol) > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Carlos d. M. <cg...@wo...> - 2002-07-09 18:24:50
|
Some facts demonstrated: Every human has a language it has no language -------------------------- it is non human If it has language it knows express with right words it has no right words ---------------------------- it has no language If it is human it has to be respected But non human --------------------------- It has not to be respected. It has no language, bad words, not respect, not had to be respected... It is a parrot ! What does a parrot in this list? Well, the best definition of a person, and almost every human is a person (this is a very recent discovery by us, let's get the patent), is achieved in terms of his (I know in english the right way of saying general things is using male/female form, but let me use the spanish's rule of using simply the male form when the both male and female are involved) morality, which is not only the ethics but much more, it is the major side of the life; it is not all, of course, but let me have perfectly this side and my life will be fine, something impossible if I only lose this side. And either the morality is a matter of sensibility and intelligence, since intelligence has many sides: ethic,problem solving, social behaviour... You must understand the moral fundamentals of the life and either feel them, where feel has a deep meaning (don't misunderstand this, it is better you understand this feeling as a simple feeling rather than thinking I am saying this feeling is not a feeling but another thing I name with that word. Then say the feeling must not be despised.). The most important that a man must have is understanding and feeling all the moral content of the world and his own behaviour and actions, since they are the most deep basis which can make his life something authentic, rather than animal, say we in our lifes must everytime to choose between a personal life or an animal life. You don't necessarily have to pass days and hours thinking about those things, although of course you should do some times, the major part will be achieved by that feeling (which, say, can be trained), or by periconscious thinking (I prefer this word periconscious rather than subconscious or inconscious, which can lead to serious errors in thought). One of the things a person understands is that the respect is something important, it is always respect the others when speaking thoughts and actions, and address with them with sincere thought and arguments, examining them with patience and answering them with respect to the other and adjusting the words to an specific form of rigorous thought and reasons, and who says something in that way explains his reasons that way, with correct arguments (them can be wrong or right, but you can see the error is not in his intention, he simply starts from bad premises or wrong information). Because is personal the attitude of discussing reasonabily. But if those forms are not used, the words become awful, unrespecteful and unpleasant they reveal an automatic response, a "jumping" reaction (spanish parentheses: es una reacci=F3n autom=E1tica, es saltar en cuanto se ofrece el est=EDmulo) to an stimulus= , just as the Pavlov's dog, the words are not elaborated because they don't flow from the personal thought, it comes from a bark, the animal automatisms. What the man has reached is the surpassing of the animal automatisms, and everyone of us must choose for that overcoming, and we must fight for that be still that. And another thing about the moral of the man, is that the worst is cowardy, we must act against the evil, the error, and the bad people and events, so we cannot stay quiet while a were-animal is acting as it believes it shall be, all what them need is the passivity of the good real persons. Perhaps some reasons anybody can have for using a coarse language is a bad knowledge of the idion he is using, so the expressions and forms are not known or there is too many unknown words for the right expression, so it's possible to use some kind of rude expressions which say what one want say, better than a more polite forms but which will be misunderstood due to a bad construction. But I think that such cases would be more or less easily noticed. What can lead some body to speak in such a way?. I only can think in drugs as possible cause for such a rotting. Or mental illness. What age can he have? Whatever the answer, it is horrible! Depressing... Perhaps he was at first bad knowledgeable of this idiom and after he saw some kind of offence I cannot see? Or a brutal lack of sense of humor? (I hope this first plus a bit of this latter) Thank you all. |
|
From: Carlos d. M. <cg...@wo...> - 2002-07-09 18:19:25
|
Can I found those files somewhere? Are they in the Windows SDK downloadable from the msdn.microsoft.com site? It's a giant download, so I wouldn't like see they are not there after hours downloading. In a page about Borland C++ 5.5 I saw two links from where it was said you can download something for having ActiveX/COM/OLE (I believe afx are from activex, it sounds active[file]x) for Borland, but the links are broken and I found one which seems to be the same, but I didn't find the equivalent for the other. There were Microsoft Platform SDK (found) and "specially tools" (not found) |
|
From: Hongli L. <h....@ch...> - 2002-07-09 18:10:50
|
On Tue, 2002-07-09 at 19:28, Abhijit Shylanath wrote: > Just a small problem, but I like to report stuff, makes me feel like I'm > actually good for something :) > > http://devcpp.everfloyd.com/contact.html > > links to > > [mirror]/help > > while the actual 'Getting help' page is at > > [mirror]/help.html > Thanks, it's fixed now. |
|
From: Abhijit S. <mu...@gm...> - 2002-07-09 17:28:55
|
Just a small problem, but I like to report stuff, makes me feel like I'm actually good for something :) http://devcpp.everfloyd.com/contact.html links to [mirror]/help while the actual 'Getting help' page is at [mirror]/help.html -------------------------- Checked with NAV 2002 http://mudeth.tripod.com |
|
From: Bob W. <bo...@ph...> - 2002-07-09 13:00:46
|
How about cleaning up your act. If you do not agree with an idea it is = fine to let the person know you disagree without displaying a 13 year = old's knowledge of profanity.=20 ----- Original Message -----=20 From: Roc...@ao...=20 To: dev...@li...=20 Sent: Tuesday, July 09, 2002 5:09 AM Subject: [Dev-C++] Re:Idea Sucks No i just get these stupid emails all the time. And yes your idea, get another idea asshole bitch ass cocksucker. Kev=20 |
|
From: Mitchell, T. (HNA) <Tam...@hj...> - 2002-07-09 12:44:54
|
Now that wasn't even necessary. profanity is not teh way of the world. Some people need to grow up mister ROCKSTOCKXIIII -----Original Message----- From: Roc...@ao... [mailto:Roc...@ao...] Sent: Tuesday, July 09, 2002 6:09 AM To: dev...@li... Subject: [Dev-C++] Re:Idea Sucks No i just get these stupid emails all the time. And yes your idea, get another idea asshole bitch ass cocksucker. Kev |
|
From: Daniel G. <sp...@ho...> - 2002-07-09 11:17:38
|
If he's too thick to work out how to unsubscribe or let alone BLOCK dev-cpp emails, he DEFINATELY needs VC++'s wizards lol. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
|
From: Hongli L. <h....@ch...> - 2002-07-09 11:16:24
|
On Tue, 2002-07-09 at 11:49, Abhijit Shylanath wrote: > Is it possible for Dev-C++ to implement a plug-in system (DLLs)? This way > you can have the IDE itself handle only the basest of stuff and leave the > samba-swing thing to a plug-in (triple rhyme score, ding-ding... hey that's > four!) For example, code-completion can be implemented using a plug-in. If > this is not possible, how about a script language? Considering the audience > Dev-C++ is intended for, however, I think DLLs would be better. > > This is just an (abstract) idea, I haven't looked at the source code of Dev > (and I don't think it would help if I did... Delphi? Wassat? :) and I don't > know how easy it will be to implement it, but if you do manage to, it'll > ease development considerably. > It is possible, but to implement a good plugin system would require rewriting lots of code. The code architecture isn't modular enough. |
|
From: <Roc...@ao...> - 2002-07-09 10:09:35
|
No i just get these stupid emails all the time. And yes your idea, get another idea asshole bitch ass cocksucker. Kev |
|
From: Abhijit S. <mu...@gm...> - 2002-07-09 10:06:28
|
Which one? Mine or Andreas'? BTW, aren't you the guy who went 'Screw Dev, I'm on VC'? What brings you down here today? VC crashed? Or couldn't you find the right wizard to build your project? -------------------------- TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW http://www.noicys.cjb.net/devcpp/ub.htm Checked with NAV 2002 http://mudeth.tripod.com ----- Original Message ----- From: <Roc...@ao...> To: <dev...@li...> Sent: Tuesday, July 09, 2002 3:23 PM Subject: [Dev-C++] Idea Sucks > Your idea sucks > Regards > Kev |
|
From: <Roc...@ao...> - 2002-07-09 09:53:43
|
Your idea sucks Regards Kev |
|
From: Abhijit S. <mu...@gm...> - 2002-07-09 09:50:40
|
Is it possible for Dev-C++ to implement a plug-in system (DLLs)? This way you can have the IDE itself handle only the basest of stuff and leave the samba-swing thing to a plug-in (triple rhyme score, ding-ding... hey that's four!) For example, code-completion can be implemented using a plug-in. If this is not possible, how about a script language? Considering the audience Dev-C++ is intended for, however, I think DLLs would be better. This is just an (abstract) idea, I haven't looked at the source code of Dev (and I don't think it would help if I did... Delphi? Wassat? :) and I don't know how easy it will be to implement it, but if you do manage to, it'll ease development considerably. -------------------------- TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW http://www.noicys.cjb.net/devcpp/ub.htm Checked with NAV 2002 http://mudeth.tripod.com |
|
From: Andres R. <lo...@ho...> - 2002-07-08 22:48:36
|
Well, then.. I wonder, if it is possible to write bookmarks made in code to .dev file in order to not search/toggle again. I am using _multi_ sourcefile project and it is really annoying to always do the same thing, after dev-c++ or system crashes. I think it is possible, since atm there is 4 other variables defined for one code file, why not define other 1 to 10 variables? I am willing to sacrifice some space for convinience. It could go something like that: [Unit1] FileName=globals.c Open=1 Top=0 CursorCol=1 CursorRow=1 Book1=353 Book2=3412 Book3=.. Andres. |
|
From: <Ala...@mx...> - 2002-07-08 21:20:12
|
Well, What I need is to develop an aplication to back up files from a computer to another using dev c++ and Win NT 4.0. Therefore I'd like to know if dev c++ is affordable for this project, which libraries I can use or a little set of instrucctions for starting to investigate... Thanks!.... from Mexico. Hello Alan and all Dev-C++ users, Monday, July 8, 2002, 10:04:42 PM, Alan wrote as follows: AGmfc> Does somebody have information about compatibility between dev c++ and AGmfc> borland c++ or c++ Builder?.... Because I'm goint to develop a project about AGmfc> back up files in a LAN and I'd like to do this with dev c++.... I also AGmfc> need extra information about dev c++, example: a tutorial... Dude, what are you talking about?? Do you mean project files that are specyfic for certain IDEs or about extensions (i.e. Broland AnsiString) ??? Let me say this way - if you gonna make Win32 API project in DevC++ it for sure will work in Borland IDE... but I don't guarantee what with oposite... Borland has some straaaange extensions, just like M$... AGmfc> Thanks ! -- regards, Zodiaq |
|
From: <Ala...@mx...> - 2002-07-08 20:06:44
|
Does somebody have information about compatibility between dev c++ and
borland c++ or c++ Builder?.... Because I'm goint to develop a project about
back up files in a LAN and I'd like to do this with dev c++.... I also
need extra information about dev c++, example: a tutorial...
Thanks !
|
|
From: <h.r...@gm...> - 2002-07-08 16:58:52
|
> At 08.09 07/06/02 +0200, h.r...@gm... wrote:
> >...
> >At second:
> >In the following code is an error, but i cannot find it. Always if i type
> q
> >to finish the data entry i get a error message :
> >
> >testproj1.exe Fehler in Anwendung
> >Die Anweisung in "0x00401b21" verweist auf Speicher "0x00000000". Der
> >Vorgang "read konnte nicht auf dem Speicher durchgeführt werden...
> >
> >Codesnip:
> >
> >string SP(size_t n) {
> > string s(n, ' ');
> > return s;
> >}
> >
> >bool ReadDataKbd(const string &s) {
> > ofstream out(s.c_str());
> >
> > string ein;
> >
> > cout << "Sollwert:" << SP(6);
> > cin >> ein;
> > out << ein << endl;
> >
> > cout << "Untere Grenze: ";
> > cin >> ein;
> > out << ein << endl;
> >
> > cout << "Obere Grenze: ";
> > cin >> ein;
> > out << ein << endl;
> >
> > bool finished;
> > int cnt = 1;
> > size_t w = 5;
> >
> > do {
> > if (cnt > 99) w = 3;
> > else if (cnt > 9) w = 4;
> >
> > cout << "Messwert " << cnt << SP(w);
> > cin >> ein;
> > if (finished = (ein[0] == 'q')) break;
> > out << ein << endl;
> > cnt++;
> > } while (!finished);
> >
> > out.close();
> > return true;
> >}
> >
> >Thanks in advance
> >
> >greetings
> >Horst
>
>
> Hi,
>
> I've added the following function "main" to test your program:
>
> -------------
> int
> main()
> {
> ReadDataKbd("test.out");
> }
> ------------
>
> And found that the code works. i.e. I saw no extra output on the Dos box
> where I was running. My answers to the questions asked by your program
> were
>
> (sorry I could do no better since I do not understand the meaning of them
> :)
>
> Sollwert: aa
> Untere Grenze: bb
> Obere Grenze: cc
> Messwert 1 dd
> Messwert 2 ee
> Messwert 3 q
>
> and here is the output file
>
> test.out
> --------
> aa
> bb
> cc
> dd
> ee
> --------
>
> I use: Dev 4.9.3.0 (gcc 2.95) on Win98SE.
>
> --
> Luigi
> gi...@li...
>
thanks and sorry, but the error is on me, not in the code. I read some data,
try to calculate with it, but dont store them. The calculation function has
no data and gives the error. The correct function is:
string SP(size_t n) {
string s(n, ' ');
return s;
}
bool ReadDataKbd(const string &s) {
ofstream out(s.c_str());
string ein;
cout << "Sollwert:" << SP(6);
cin >> ein;
out << ein << endl;
cout << "Untere Grenze: ";
cin >> ein;
out << ein << endl;
cout << "Obere Grenze: ";
cin >> ein;
out << ein << endl;
bool finished;
int cnt = 1;
size_t w = 5;
do {
if (cnt > 99) w = 3;
else if (cnt > 9) w = 4;
cout << "Messwert " << cnt << SP(w);
cin >> ein;
if (finished = (ein[0] == 'q')) break;
out << ein << endl;
cnt++;
} while (!finished);
out.close();
return true;
}
and again, sorry for my stupid question
greetings
Horst
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
|
|
From: Frank W. <F.W...@wi...> - 2002-07-08 12:17:45
|
Hello,
I'm new to wxWindows programming and got the latest package form the
web recently.
I use Dev-C++ Beta 4.9.4.1 in combination with the Cygwin compiler
environment.
So I tried the following:
File -> New Project -> GUI - wxWindows.
Then I got two sourcefiles main.h and main.cpp and I tried to compile
it without writing any code by myself.
The first errormessage I got was that my compiler can't find wx.h so I
set the includepath in the project options to
c:\Programme\Dev-C++\include. But this is not the default for the
compiler the standard header files are in c:\cygwin\usr\include\g++-3
After that the wx.h was found by the compilor but I got several
messages of this type:
58 c:\Programme\Dev-C++\include\wx\string.h
In file included from c:/Programme/Dev-C++/include/wx/string.h
20 c:\Programme\Dev-C++\include\wx\memory.h
from c:/Programme/Dev-C++/include/wx/memory.h
20 c:\Programme\Dev-C++\include\wx\object.h
from c:/Programme/Dev-C++/include/wx/object.h
16 c:\Programme\Dev-C++\include\wx\wx.h
from c:/Programme/Dev-C++/include/wx/wx.h
5 C:\Programme\Dev-C++\main.cpp
from main.cpp
162 C:\cygwin\usr\include\stdio.h
type specifier omitted for parameter
Can someone explain what I must do to solve this problem?
Thanks in advance
Frank Wagner
Dipl.-Ing. (FH)
Systementwicklung
WIKA Alexander Wiegand GmbH & Co. KG
63911 Klingenberg/Germany
Tel. +49 9372 132-8995
Fax. +49 9372 132-217
|