LoadString overwrite
- From: "GeH" <geh@xxxxxxxxxxxx>
- Date: 11 Sep 2006 03:42:56 -0700
Hello,
we are just trying to migrate our application from VC6.0 to VC2005.
In our application we have overloaded CString::LoadString (by making
sure that the linker uses our function before linking MFC42.lib) for
doing some special string replacements.
This means that we have tags in the string resources which are replaced
at runtime.
In MFC 8.0 the CString class is a template class and I couldn't figure
out a possibility to overwrite CString::LoadString(UINT nID).
Overloading it, you get a C2084 (explicit specialization; 'template'
has already been instantiated) error message, and there is no chance to
define the function before the template instatiation (which is done in
afxstr.h).
Any idea?
Thanks,
Gerhard.
.
- Follow-Ups:
- Re: LoadString overwrite
- From: GeH
- Re: LoadString overwrite
- From: Doug Harrison [MVP]
- Re: LoadString overwrite
- From: Joseph M . Newcomer
- Re: LoadString overwrite
- From: David Webber
- Re: LoadString overwrite
- From: Tom Serface
- Re: LoadString overwrite
- Prev by Date: Debug output cleared
- Next by Date: Re: Debug output cleared
- Previous by thread: Debug output cleared
- Next by thread: Re: LoadString overwrite
- Index(es):
Relevant Pages
|