--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00004 Date: 12/28/97 From: ROBERT DAVIES Time: 10:31pm \/To: ALL (Read 2 times) Subj: starting to learn c++ Hello All. I've just got a copy of boland 5 c++ as a chrismas present, does anyone Know of any good books to start learning the c++ language I have two books on c but nothing on c++. Thanks in advance for any replies. Yours Spasm Robert. --- GEcho 1.11+ * Origin: (2:442/403.1) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00005 Date: 12/29/97 From: JOHN DUMAS Time: 03:54pm \/To: HANS BAKKER (Read 2 times) Subj: Re: I need C++ -=> Quoting Hans Bakker to Jake Modus <=- HB> Monday, December 22 1997 11:02, Jake Modus wrote to All: JM> Anybody that has c++ please upload it to this bbs. I really eant to JM> learn c++ but my parents wont purchase it for me. So please upload c++ ^^^^^ HB> Why not copy it from a friend of yours. or buy a "Crazy Bytes CD" or HB> other illegal CD. If you look at the US copy rite law there is an educational loophole big enough to drive a truck though. That is why the softaware companies make accademic versions of their software for far less than reg. prices. They are not just being nice guys. ... A long dispute means both parties are wrong (Voltaire) --- Blue Wave/DOS v2.20 [NR] * Origin: The Witch City BBS *Salem,MA [978]745-1689 *Hayes 28.8 (1:101/301) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00006 Date: 12/29/97 From: KURT KUZBA Time: 01:10pm \/To: TIM HUTZLER (Read 2 times) Subj: asm CALL doesn't work CM> Salut/Hi Tim Hutzler! CM> TH> I do a lot of inline assembly programming, but I haven't TH> found a way to use the CALL with my Borlans 3.0 compiler. TH> The error message is "undefined symbol" But the symbol is TH> there. TH> asm JMP sk_a TH> MyLabel: asm ... asm RET I somehow missed this question and only caught the reply. In Borland, you may not use labels within the asm block. The label must be outside of the block. void asm_retrace(void) { _asm { mov dx,3dah } retrace: _asm { in al,dx test al, 8 jz retrace } no_retrace: _asm { in al,dx test al, 8 jnz no_retrace } } A minor inconvenience, really. Apparently, the parser in the compiler requires nothing but code mnemonics to be in the asm blocks. You can put the labels in there, but the parser will ignore them unless they are outside of the code blocks. It IS some small advantage to code formatting, if that is of any small comfort, since it makes each labelled block of code as a separate asm{} block in your source. :) This particular bit of code was written in QuickC 2.5, and tested in QuickC and Borland C++ 3.1. --- > ] So far, nobody has ever wanted to ride the Unicorn twice.... --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00007 Date: 12/29/97 From: JERRY JANKURA Time: 01:29pm \/To: BOB STOUT (Read 2 times) Subj: I need c++ To: BOB STOUT Subject: I NEED C++ To: BOB STOUT Subject: I NEED C++ Bob: Interesting list of software Hans provided. In one breath he talks about the hobbyist, but then lists Netware as one of the software items he uses regularly. I don't know of many hobbyists that have several machines networked together. I Could be wrong, but I'd bet that he is a small businessman (or maybe a consultant) who is looking to rationalize a decision to use expensive software without paying for it. Like Hans, I feel that the prices on some of these items are stacked against the person who can least afford them. Large companies usually negotiate sweetheart site licenses that result in a "price per seat" which is much lower than Joe Hobbyist or Jill Consultant can afford. I can think of another solution which avoids the high cost, but still allows one to maintain his integrity and not mortgage the farm. BS> > Well, let's take a look at all the programs that Hans uses. BS> > C++ Fl 300,-- BS> > Win (2x) Fl 300,-- BS> > Novell Netware Fl 1000,-- BS> > BBS software Fl 500,-- BS> > Office Fl 700,-- I don't know how much this comes to in US DOLLARS, but let's take a look at what he could purchase instead: BCBuilder Standard Edition $99 Win'95 (Bundled with Computer) $ 0 OpenDOS Personal Netware $ 0 Word Perfect Suite 8 (Academic) $49 Telix + Script for BBS $89 Totals to about $237 US DOLLARS, and all of the software is legal. So, if he set his sights on purchasing affordable software, he could hang on to his integrity and still not mortgage the house. If more consultants and hobbyists followed this route rather than relying on only ONE manufacturer, I believe that the high priced vendors would have to follow suit (Remember MS-DOS at @ $69 vs CP/M-86 @ $350 or TurboPascal @$49 vs some of the other compilers of the day) Of course, the Europeans have one extra cost to deal with - their local distributors custom of jacking up the prices of US built software. I don't know what any of this really has to do with C++, except to indicate that Microsoft is not the ONLY vendor of C++ compilers and that perhaps one should evaluate the other vendors' offerings for suitability and cost. I think they'd be supervised? BTW, Bob. I remember that you championed Zortech C++ when Walter Bright was writing the compiler. What's your current favorite, and why? -- Jerry --- InterEcho 1.19 * Origin: PC-Ohio * Cleveland, OH * 216-381-3320 (1:157/200) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00008 Date: 12/29/97 From: LAURI NURMI Time: 08:01pm \/To: LEE KIRBY (Read 2 times) Subj: Extra bytes > I'm very new to C++, and can't figure out why I get two extra bytes when I > write this structure to a file: > The way I count, this structure should be only 190 bytes, but if I do a > sizeof( fMsg), it reports 192! You didn't tell your compiler, but I think the compiler adds so many extra bytes that size of the struct is divisible by 4. (4 bytes=32 bits) This somehow makes the programs faster. --- BBBS/2 v3.33 How * Origin: Looks expensive... (2:224/808.1) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00009 Date: 12/24/97 From: ANTHONY TIBBS Time: 12:00pm \/To: LEE KIRBY (Read 2 times) Subj: Extra bytes LK> outfile.write( msg, sizeof( fMsg ) ); LK> The way I count, this structure should be only 190 bytes, but if I do a LK> sizeof( fMsg), it reports 192! I added it all together, and the structure IS 192. Assumptions: ?short is two bytes, time_t is 4, and the strings are whatever you said. --- PointEd 2.0 * Origin: The Tibbs' Point - Ottawa, Ontario, Canada (1:163/215.38) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EGZ00010 Date: 12/30/97 From: KURT KUZBA Time: 04:25am \/To: BOB STOUT (Read 2 times) Subj: I need c++ BS> This person made a blanket statement that no hobbyist BS> uses legitimate compilers. This statement is what BS> triggered my admittedly volatile response. BS> It's demonstrably false, and evinces an attitude that BS> needs to be addressed. Where were you when the Wright Brothers were stealing canvas and baling twine for their aeronautical tinkering? ( Historical note: Wilbur and Orville were NOT thieves. ) FWIW, I own all my software outright. My VC++ compiler was only $100 with a student discount. The class in VC++ cost three times that much and was worth much more that that, aside from making the compiler cheap. It is very expensive, still, and perhaps I am foolish. I am not wealthy, and too old to be a poor student. Whatever choices you have made, may the deity of your choice speed you along on your chosen path. If our example is not honored, then our words must also be nothing more than the nervous rantings of the clueless. I believe I see the moderator near to pouncing, seeing as the entire issue of piracy is off-topic to C++. Something about not bringing dirty hands to the table. :) > ] Never ask for justice. Trust me... You won't like it........ --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EG^00000 Date: 12/27/97 From: ALEXEY MOKHOV Time: 09:46pm \/To: ALL (Read 2 times) Subj: screen blinking Hello, All! I begin to use OWL5.0 in my applications and have found already one interesting phenomena: One of my dialog contains a lot of buttons. The amount of buttons depend on data and is usually 100-200. I create these buttons in dialog-constructor by operator new. All is working properly I have no complains to data treatment. But screen is blinking during this constructor work (3-8 second). Allways desctop icons are blinking (also elements of Windows taskbar and MSOffice shortcut bar). Sometimes (not allways) my application frame window elements are blinking (I use MDI-interface) but never contents of active MDIChild window (it is erased at dialog-constructor start and painted again only afer it is finished). It looks like all screen is beeng repaint after generation of every new button. But who is generating WM_PAINT message (I am not experienced user and do not use WinSpector)? I have failed to understand also why this message is treated by desctop window. Probably somebody have met this problem before, understand what is happening and knows how to suppress blinking. I will be glad to get any advice. Thanks in advance, Sorry for my English, Alexey --- GoldED 3.00.Alpha4+ * Origin: St_1, St.Petersburg Russia (2:5030/155.19) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EG^00002 Date: 12/31/97 From: KURT KUZBA Time: 01:08am \/To: THOMAS MAEDER (Read 2 times) Subj: strcmpi error? TM> This means that strcmpi is not declared in string.h. strcmpi() is not an ANSI standard function. If one wishes to maintain ANSI compliance and use a string compare which is not case sensitive, then the toupper() or tolower() may be used to convert the strings to be compared to a similar default case. THEN the comparison is valid. As you say, though, the String class will have the correct function already in place, and allow the == operator also, which will make the code easily readable and less complex. > ] Bilbo ergo sum. I am, but only by force of Hobbit.......... --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EG^00003 Date: 12/30/97 From: MART ORUAAS Time: 08:35pm \/To: CHRISTIAN FELDE (Read 2 times) Subj: strcmpi error? Hi Christian! CF> I have a problem here. I use Linux as my main OS, and therefor do all my CF> c++ codeing in Linux too. I'm now using "Instant C++ Programming" by Ian CF> Wilks to learn c++, and in a program made after reading from that book, CF> shall use strcmpi(). there seems not to be the function strcmpi() present at least in my linux libraries and header files(rh 4.2). just try strcasecmp() instead of it. strcmpi is probably something borland-specific they have introduced in their own libraries. furthermore, strcasecmp() did first exist in some old BSD version, so it should be more widely accepted in the *NIX world. at least one of those old SunOS boxes i have access to knows what to do with that. ;) fazz --- GEcho 1.11+ * Origin: l'Ermite (FidoNet 2:490/18)