From: "A. Jans-Beken" Newsgroups: comp.os.msdos.djgpp Subject: Allegro: How to wrap "..." argumentlist Date: Fri, 18 Jun 1999 21:42:43 +0200 Organization: World Access Lines: 30 Message-ID: <376AA133.6417AC69@wxs.nl> NNTP-Posting-Host: vl0152-1.dial.wxs.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader3.wxs.nl 929734589 2663897 195.121.200.152 (18 Jun 1999 19:36:29 GMT) X-Complaints-To: abuse AT wxs DOT nl NNTP-Posting-Date: 18 Jun 1999 19:36:29 GMT X-Mailer: Mozilla 4.04 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I am working on a C++ wrapper for Allegro. I have created a class BOB and within this class I wrap all the functions I need for my program. An example is this: class BOB { private: BITMAP * bob; } void rect(const int x1, const int y1, const int x2, const int y2, const int c) { ::rect(bob, x1, y1, x2, y2, c); } This works all fine. But now I want to wrap this function... void textprintf(BITMAP *bmp, FONT *f, int x, y, color, char *fmt, ...); I do not understand how to do this. The C++ primer that I have (old edition) is inconclusive. A gues would be: void textprintf(int x, y, color, char *fmt, ... ) { ::textprintf(bob, font, x, y, color, fmt, ... ); } But the compiler doesn't like this at all. Please help.