cvs.gedasymbols.org/archives/browse.cgi | search |
From: | Endlisnis <s257m AT unb DOT ca> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: C++ problem |
Date: | Mon, 28 Sep 1998 19:48:09 -0300 |
Organization: | BrunNet |
Lines: | 18 |
Message-ID: | <36101229.C4659B15@unb.ca> |
References: | <6udqfn$sdk$1 AT inf6serv DOT rug DOT ac DOT be> <360A8B31 DOT 53CF31E9 AT earthlink DOT net> |
NNTP-Posting-Host: | usr4fton13.brunnet.net |
Mime-Version: | 1.0 |
X-Mailer: | Mozilla 4.04 [en] (Win95; U) |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Martin Ambuhl wrote: > void SetMode(int mode) { > if (mode == 0) > PrintPtr = &PrintMode0; > if (mode == 1) > PrintPtr = &PrintMode1; > } This is wrong. It would take the address of the variable containing the address of the function.-- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlisnis AT BrunNet DOT Net
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |