--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00024 Date: 04/17/98 From: MIKE DELEONARDIS Time: 05:57pm \/To: HERMAN SCHONFELD (Read 3 times) Subj: Re: Pixel MD>Does anyone know how to put a red pixel at location 10,30? MD>am i not being able to do it because graphics.h is screwed up? HS> Are you using the bgi? If so, don't try custom code. Use the functions HS> it provides. If, however, you want to do custom graphics. Here are som HS> functions. HS> I hope you have a 32bit compiler handy. HS> #ifdef __DJGPP__ HS> char *vga = NULL; HS> #endif HS> #ifdef __WATCOM__ HS> char *vga = (char *) 0x0A0000; HS> #endif HS> void setmode(unsigned char mode) HS> { HS> #ifdef __WATCOM__ HS> union REGS r; HS> r.h.al = mode; HS> r.h.ah = 0x0; HS> int86(0x10, &r, &r); HS> #endif HS> #ifdef __DJGPP_ HS> __dpmi_regs r; HS> r.h.al = mode; HS> r.h.ah = 0x0; HS> __dpmi_int(0x10, &r); HS> __djgpp_nearptr_enable() HS> vga = (char *)(0xA0000 + djgpp_conventional_base); HS> #endif HS> }; HS> void putpixel(int x, int y, int c) HS> { HS> vga[y*320+x]=c; HS> }; HS> int getpixel(int x, int y) HS> { HS> return vga[y*320+x]; HS> }; hm. I'm inquiring from the source that I need DJGPP i want the equivelant of this in Qbasic. pset(10,30),10 in C++ borland ver3 for DOS. ... "I've smoked since I was five; mother insisted." -- Gomez Addams --- Telegard v3.09.g1/mL * Origin: INFINITE DARKNESS NODE 2 - Fort Lauderdale, FL (1:369/23) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00025 Date: 04/18/98 From: MARK HOOVER Time: 01:19am \/To: ALL (Read 3 times) Subj: Interrupt Based Programmi Anybody here know something about interrupt based programming with some routines hopefully to back it up? Looking to doing some comm port programming for Doors and such.... CMPQwk 1.42 1960 Mirage Net Lie #3: Netmail is highly PRIVATE and Sysops --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00026 Date: 04/21/98 From: TIM HUTZLER Time: 07:50pm \/To: RENE HERMAN (Read 3 times) Subj: Re: Default constructor -=>Quoting Rene Herman to All <=- RH>Hello All ... RH>According to ANSI C++, will a constructor with nothing but default RH>arguments do as a default constructor? It *is* the default constructor. RH>I'm learning C++, and my textbook (Mastering Borland C++ 5 by Tom RH>Swan) declares a TTime class providing two constructors: RH>When I however add a "-1" default argument for "m" in the second RH>constructor and delete the first constructor, Borland 5 doesn't RH>seem to have a problem recognizing it as a default constructor. RH>That is, "TTime Time;" and "TTime Time[SIZE];" compile just fine, RH>calling TTime(-1, -1, -1, - 1, -1) as their constructor. Rene; Every class MUST have a default constructor. But, if a default constructor (no args) is not specified in your code, the compiler will create one for you. That's why there was no error. ___ Blue Wave/QWK v2.12 --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00027 Date: 04/21/98 From: TIM HUTZLER Time: 07:56pm \/To: DARIN MCBRIDE (Read 3 times) Subj: Re: Default constructor -=>Quoting Darin Mcbride to Rene Herman <=- DM>A quick paraphrase of my understanding of default constructor is DM>one that does not require any explicit arguments. That is, if you DM>can create an object of type foo as foo f, the constructor called DM>is the default constructor. Correct. DM>Now, in practical terms, this means that there are two types of DM>default constructors: - those with no actual arguments, and - DM>those with all default arguments. Incorrect. There is only one default constructor - no arguments. It doesnt even have to be specified in the source code. The compiler will create one automatically. If all the default constructor does is create a simple instance, then you don't even have to key it in. Any other constructors (and there can me many of them) are simply called "constructors". DM>If the book is calling this an "instance", mentally switch it to DM>"object". ..or variable, which is waht we called them in the 'old' days. [grin] DM>I've found that, personally, terminology has made the switch to DM>object orientation much easier to grasp. By realizing that this DM>object encapsulates a real object (in this case, an abstract DM>object that I mistakenly believe I understand ), I've made my DM>switch to clean (I think ) OO code. Without the "right" DM>terminology, technical people like ourselves could get confused DM>both in understanding the concepts and how to apply them, but also DM>in communicating with other technical people. Groovy... [grin] ___ Blue Wave/QWK v2.12 --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00028 Date: 04/23/98 From: TIM HUTZLER Time: 08:22pm \/To: JEREMY DAVIS (Read 3 times) Subj: Re: so... JD>so, does anyone know a good place to LEARN C/C++?? Yea, in front of your computer with a good text by your side. [grin] Most community colleges have courses in C++. You might consider that option. But, there's no better teacher than learning by doing. ___ Blue Wave/QWK v2.12 --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00029 Date: 04/19/98 From: ROGER SCUDDER Time: 10:59pm \/To: DARIN MCBRIDE (Read 3 times) Subj: reading input from stdin Hello Darin. 08 Apr 98 07:58, Darin McBride wrote to Mark Hoover: MH>> Just out of curiosity.....is there anyway to set the array base to base MH>> 1? I have no intention of doing this, but I know it can sometimes be MH>> done in other languages such as Basic.... DM> Note that "other languages" cannot change either - in BASIC, it is ALWAYS DM> 1-based, you can't "sometimes" have it one-based... No, he was right. QuickBasic and QBasic have an OPTION BASE statement that is used to set the base value for arrays. There are two possible values for OPTION BASE, 0 or 1. The default is 0. I know this is offtopic, OTOH, I'm sure you don't want to go around giving out false information. -Roger --- Msged/2 4.10 * Origin: New Potato Caboose BBS, Upper Darby, PA, USA (1:273/404@fidonet) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00030 Date: 04/19/98 From: ROGER SCUDDER Time: 11:25pm \/To: MARK HOOVER (Read 3 times) Subj: Need More Memory Hello Mark. 08 Apr 98 02:38, Mark Hoover wrote to Roger Scudder: RS>> Don't try to get the whole FidoNet nodelist. It's unlikely that MH> I didn't have too much of a choice....all the XMS code I got looked too MH> difficult for me to understand... RS>> Instead process the nodelist in smaller chunks. MH> Well, it all had with the way I wanted to process it. Figured if the IM MH> nodelist compiler could do it, then I could.... It may appear to you that the entire nodelist is being loaded into a buffer at once, but it's not. Even under a solid 32 bit OS like OS/2, it wouldn't be wise to try to use that much physical memory for one process. There is no operation that would be performed on a nodelist that would require the entire list in a buffer at once. What exactlly does your program do? -Roger --- Msged/2 4.10 * Origin: New Potato Caboose BBS, Upper Darby, PA, USA (1:273/404@fidonet) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00031 Date: 04/21/98 From: MARK HOOVER Time: 12:56am \/To: TIM HUTZLER (Read 3 times) Subj: Need More Memory "Bother," said Pooh to Tim Hutzler about Need More Memory. TH>Don't know about that. I got an evaluation copy, but didn't check TH>that out, since I don't an OS2 machine. I don't either....I run under DOS and/or Windows machines, but like I said I've got two friends who'd like native code....can't blame them I guess.... CMPQwk 1.42 1960 Mirage Net Lie #7: I know the echo rules by heart. --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00032 Date: 04/21/98 From: MARK HOOVER Time: 12:56am \/To: KURT KUZBA (Read 3 times) Subj: Interrupt Based Programmi "Bother," said Pooh to Kurt Kuzba about Interrupt Based Programmi. KK>MH> Anybody here know something about interrupt based KK>MH> programming with some routines hopefully to back it up? KK>MH> Looking to doing some comm port programming for Doors and KK>MH> such.... KK> Or you could just skip inventing your own wheel and look for KK> ODOOR or RS232. Either is available as source for a fee. Know where to find them? CMPQwk 1.42 1960 Mirage Net: We will add your biological and technical s --- MirageNet HQ! * Origin: InnerSpace Mail Systems, Inc. (1:275/104) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: F5G00033 Date: 04/20/98 From: NEIL HELLER Time: 09:31pm \/To: DARIN MCBRIDE (Read 3 times) Subj: GREP Do you have access to a version of GREP compiled specifically for OS/2. I keep Snippets on an HPFS partition and sometimes like to GREP through the whole collection to see if there's something I might have missed. I also don't have an OS/2 compiler. * KWQ/2 1.2i * --- FLAME v1.1 * Origin: Port Chicago's Loading Dock - 510-676-5359 (1:161/204)