--------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFT00007 Date: 11/20/97 From: TIM HUTZLER Time: 11:30pm \/To: ALL (Read 2 times) Subj: passing class args to as Hi Y'all: ___ 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: EFT00008 Date: 11/22/97 From: TIM HUTZLER Time: 02:39pm \/To: S.J. (Read 2 times) Subj: Re: JPG GIF -=>Quoting Noah Porch to S.j. <=- NP>Did Mike Makarov send you a tool to put gifs and jpgs in C++ NP>if he did could I get it? I'm interested in an easy to use JPEG library... ___ 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: EFT00009 Date: 11/24/97 From: KURT KUZBA Time: 12:51am \/To: NOAH PORCH (Read 2 times) Subj: Bitmaps NP> Ok Does anybody know how to put bitmaps in a program? In what programming environment are you working? There is a description of the .BMP structure and heading in PCGPE. ( PC Game Programmer's Encyclopedia ) It is a commonly available file devoted to such things. Working with graphics will be heavily system dependent. > ] Remain calm and think. I will help you. - Kwai Chang CPUfan. --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFT00010 Date: 11/19/97 From: TOM TORFS Time: 10:25pm \/To: JONATHAN ROBERTS (Read 2 times) Subj: C++ Builder * Reply to a message in personal_mail. Jonathan Roberts wrote in a message to Tom Torfs: JR> RE: C++ Builder > And it's pretty cheap, too, imho (at least the standard edition). JR> Price tag? Here in Belgium between 4000-5000 BEF (which would be about 110-130 US$), but all compilers are more expensive here than in the USA so you can't really compare. greetz, Tom tomtorfs@mail.dma.be --- timEd/2 1.10+ * Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFU00000 Date: 11/24/97 From: JERRY JANKURA Time: 02:02pm \/To: FRANK ADAM (Read 2 times) Subj: Awareness ? FA>Hi, FA>Is it possible to make a class aware of another instance of itself ? FA>If it is, how would that be done ? FA>eg: FA>class foo FA>{ FA> foo() FA> { FA> if(we_re_not_alone) ... FA> else ... FA> } FA>}; Automatically? I think not. But, you can do what you're asking by careful definition of the class itself and by proper design of the constructors and destructors: class foo { private: static int HowMany: public: foo(); ~foo(); } foo::foo() { HowMany ++; } foo::~foo() { HowMany --; } The integer HowMany is owned by the class, and is not unique to each object. Let each constructor increment the counter. If the counter starts at zero, this means that the first instance of the object sets HowMany to one, the second instance sets it to two, etc. As you destroy instances, the counter is decremented. Thus, at any time, any instance of the object can inspect HowMany to determine if it is alone, or if any other instances exist. Hope this points the way for you. -- Jerry FA> Regards, Frank. Email: fadam@sensation.net.au. FA>--- Msged 4.00 FA> * Origin: The ticking point, Melbourne, Australia. (3:635/728.21) --- * OLXWin 1.00b * I'm in shape ... round's a shape isn't it? --- InterEcho 1.19 * Origin: PC-Ohio PCBoard * Cleveland, OH * 216-381-3320 (1:157/200) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFU00001 Date: 11/25/97 From: KURT KUZBA Time: 05:00am \/To: FRANK ADAM (Read 2 times) Subj: awareness ? FA> Is it possible to make a class aware of another instance FA> of itself ? If it is, how would that be done ? A class may contain a static variable. If your constructor increments that variable, and your destructor decrements it, you will always know how many instances of that class are currently extant. Have a look at this once... #include class AmIAlone { public: AmIAlone(); ~AmIAlone(); int HowMany(void) { return iHowMany; } private: static int iHowMany; }; AmIAlone::AmIAlone() { iHowMany++; } AmIAlone::~AmIAlone() { iHowMany--; } int AmIAlone::iHowMany = 0; int main(void) { char a; AmIAlone *One = new AmIAlone; cout << One->HowMany() << '\n' << flush; AmIAlone *Two = new AmIAlone; cout << One->HowMany() << '\n' << flush; AmIAlone *Three = new AmIAlone; cout << One->HowMany() << '\n' << flush; delete Two; cout << One->HowMany() << '\n' << flush; delete Three; cout << One->HowMany() << '\n' << flush; delete One; cin >> a; return 0; } > ] Nothing is absolute, save Grace, Harmony, and Balance....... --- * Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFW00000 Date: 11/25/97 From: TIM HUTZLER Time: 10:08pm \/To: ALEX WALKER (Read 2 times) Subj: Re: How to make a DOS sc AW>Hi All AW>Just wondering if anyone had any good ideas where I can find out AW>how to make a DOS screen saver? I'd like to blank the screen and AW>then run a little program I've created to look for Perfect AW>Numbers when ever there's no user input for... well just like a AW>screen saver. AW>Thanks for any ideas or code. C yaz Just curious... What makes a number, 'perfect?' --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFW00001 Date: 11/25/97 From: TIM HUTZLER Time: 10:08pm \/To: ALL (Read 2 times) Subj: Passing args to assemply Hi y'all; Passing C++ variables to assembley can be tricky. Calling a local variable is easy enough, and even accessing pointers is okay. But how does one access a class private data member? Right now, the only way I know how is as in the following: DataType *ArryPtr = &Array; asm MOV SI,ArryPtr asm MOV AX,[SI] Does anyone know a more elegant way? --- Maximus/2 3.01 * Origin: Madman BBS * Chico, California * 530-893-8079 * (1:119/88) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFW00002 Date: 11/24/97 From: ROSE Time: 03:29pm \/To: ALL (Read 2 times) Subj: Smicolon + Brackets. From Rosalie Buds: Well, here is the thing. In J++, it does not seam to make a difference weather you place a ; after a closings bracket, or not. Unless it's the closing Class bracket. Is this the same with Some ALL or NONE of the C++ compilers? Why is this? --- Platinum Xpress/Win/Wildcat5! v2.0 * Origin: Doctor On Board BBS: Niagara's Medical Host for Info (1:247/101) --------------- FIDO MESSAGE AREA==> TOPIC: 203 C++ Ref: EFW00003 Date: 11/25/97 From: PAUL WANKADIA Time: 11:26am \/To: DANIEL TROY (Read 2 times) Subj: 386 On 21 Nov 97, Daniel Troy wrote to All -- DT> How the hell am i meant to use extended registers with Turbo c++ v3.0 DT> huh? it seems it doesnt know anything about the 386 Maybe you should look at inline ASM. --- PPoint 2.00 * Origin: Junyer's Workshop (1:342/1022.2)