🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer.misc
Article #309

Re: C++ problem -- Over 30 people were unable to help me, can you?!

#309
From: S Bufton
Date: Sat, 17 Jan 1998 00:00
27 lines
1658 bytes
On Sat, 17 Jan 1998 00:51:46, NOSPAMsl@psycode.com (Gili) wrote:

::Hi,
::
::	I created a class called File() which inherites fstream() publically 
::(i.e. class File : public fstream)
::I'd like to call fstream()'s constructor whenever File()'s constructor
::is called. However, I have run into a major problem.
{cut...}
::Also, when I try using ::fstream() to call the constructor, the call 
::*seems* to work but my file does not open correctly (which it does 
::when fstream() is called from the constructor initialization.) Does 
::anyone have any idea how this problem could be solved?


Try

Inherited(args);

I'd never seen that construction until a few weeks ago, and have 
successfully used it in my code - but not in a constructor, so I don't
know if it will solve your problem. Try it and see... (I use Visual 
Age C++, I don't know if GNU does it.)


	Steve
Technical Details
Message-ID: <txMd4nVc5nI5-pn2-npRdDEYOIQGl@localhost>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <bWLoegW7sFse-pn2-d679pGp6mnys@portD23.Generation

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,8dafc9e0bf3f0357
X-Google-Attributes: gid11318c,public
X-Google-Thread: 10891a,8dafc9e0bf3f0357
X-Google-Attributes: gid10891a,public
X-Google-Thread: 11307a,8dafc9e0bf3f0357
X-Google-Attributes: gid11307a,public
From: sbufton@x.x (S Bufton)
Subject: Re: C++ problem -- Over 30 people were unable to help me, can you?!
Date: 1998/01/17
Message-ID: <txMd4nVc5nI5-pn2-npRdDEYOIQGl@localhost>
X-Deja-AN: 316805799
Content-Transfer-Encoding: 8bit
References: <bWLoegW7sFse-pn2-d679pGp6mnys@portD23.Generation
Header: new
Content-Type: text/plain; charset="us-ascii"
Organization: IBM.NET
MIME-Version: 1.0
Newsgroups: comp.os.os2.programmer.misc,gnu.gcc.help,comp.os.msdos.djgpp