Resource management during loading/unloading(internationalization and
localization of project)
Hi
I have an project , working with english language. I need to provide
chinese language support to it. hence i create resource Dll
( containing similiar resource but with chinese text, but ID's are
same). after loading the dll , static dialogue are getting open
without any error,but run time Views are not getting open(program is
being crashed).
program is getting crashed while executing OpenDocumentFile() function
in following program.this is a MFC function.Views are being created on
run time.
this function is running successfully in english version
void CConfigSysApp::OpenDocumentView(int iNumRecord)
{
CDocTemplate* pTemplate = 0;
POSITION pos = 0;
int iIndex = 0;
if((pos = GetFirstDocTemplatePosition()) != 0)
{
pTemplate = GetNextDocTemplate(pos);
while((pos) && (iIndex < iNumRecord))
{
pTemplate = GetNextDocTemplate(pos);
iIndex++;
}
if(iIndex == iNumRecord)
{
/// Open doc/view
pTemplate->OpenDocumentFile(NULL);
}
}
}
you could also reply at
himanshu.pathak@hcl.in