 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Laurent Rathle Guest
|
Posted: Sun Jan 11, 2004 9:49 am Post subject: error: virtual outside class declaration |
|
|
Je souhaiterai savoir si vous pourriez me donner une piste pour résoudre le
problème suivant. Je compile un programme qui contient les fichiers suivant
:
kdesalgdi.h
avec dans la partie public :
virtual const void* GetEmbedFontData( ImplFontData* pFont, const
sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo, long*
pDataLen );
kdesalgdi.cxx
avec :
virtual const void* KDESalGraphics::GetEmbedFontData( ImplFontData* pFont,
const sal_Unicode* pUnicodes, sal_Int32* pWidths, FontSubsetInfo& rInfo,
long* pDataLen )
{
return NULL;
}
Le compilateur me renvoie l'erreur "error: virtual outside class
declaration" .
Merci,
--
Laurent Rathle
[email]lrathle (AT) teaser (DOT) fr[/email]
|
|
| Back to top |
|
 |
Fabien LE LEZ Guest
|
Posted: Sun Jan 11, 2004 10:26 am Post subject: Re: error: virtual outside class declaration |
|
|
On Sun, 11 Jan 2004 10:49:08 +0100, Laurent Rathle <lrathle (AT) teaser (DOT) fr>
wrote:
| Quote: | virtual const void* KDESalGraphics::GetEmbedFontData( ImplFontData* pFont,
|
On ne doit pas répéter le "virtual" ici.
--
;-)
http://www.gotw.ca/gotw/063.htm
http://www.gotw.ca/gotw/067.htm#2
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|