[comp.sys.mac.programmer] Beginning Think Object C question

yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) (08/23/90)

I've used Think Vanilla C for quite awhile but now am just beginning
to look at the object oriented stuff. So I tried compiling the
starter project and in the file CStarterDoc.c on the line:

void CStarterDoc::IStarterDoc(CBureaucrat *aSupervisor, Boolean 
printable)
{
  CDocument::IDocument(aSupervisor, printable);
}

I get the compiler error message:
  Call of 'CDocument::IDocument' does not match prototype.

Does anybody know what I'm doing wrong? - Ross

>>> yahnke@macc.wisc.edu <<<

phils@chaos.cs.brandeis.edu (Phil Shapiro) (08/25/90)

In article <4244@dogie.macc.wisc.edu> yahnke@vms.macc.wisc.edu (Ross Yahnke, MACC) writes:

   starter project and in the file CStarterDoc.c on the line:

   void CStarterDoc::IStarterDoc(CBureaucrat *aSupervisor, Boolean 
   printable)
   {
     CDocument::IDocument(aSupervisor, printable);
   }

   I get the compiler error message:
     Call of 'CDocument::IDocument' does not match prototype.

It sounds like you applied the ThC 4.0{1,2} patch to the class library
but not to the demo code.  There is a separate script for the TCL demo
code that comes with the patch kit.  If you don't have the kit
anymore, you can ftp it from the info-mac archives at sumex.stanford.edu.


	-phil shapiro, symantec tech suport
--
Phil Shapiro
phils@chaos.cs.brandeis.edu