no document names in string for template warnings
void CDocTemplate::LoadTemplate()
{
if (m_strDocStrings.IsEmpty() &&
!m_strDocStrings.LoadString(m_nIDResource))
{
TRACE(traceAppMsg, 0, "Warning: no document names in string for template
#%d.\n",
m_nIDResource); <<<<<<<<<<<<<<<<<<<<<<<<<<<<< I get a warning
over here
}
if (m_nIDEmbeddingResource != 0 && m_hMenuEmbedding == NULL)
{
// load menu to be used while editing an embedding (as a server)
HINSTANCE hInst = AfxFindResourceHandle(
MAKEINTRESOURCE(m_nIDEmbeddingResource), RT_MENU);
m_hMenuEmbedding =
::LoadMenu(hInst, MAKEINTRESOURCE(m_nIDEmbeddingResource));
m_hAccelEmbedding =
::LoadAccelerators(hInst, MAKEINTRESOURCE(m_nIDEmbeddingResource));
}
if (m_nIDServerResource != 0 && m_hMenuInPlaceServer == NULL)
{
// load menu to be used while editing in-place (as a server)
HINSTANCE hInst = AfxFindResourceHandle(
MAKEINTRESOURCE(m_nIDServerResource), RT_MENU);
m_hMenuInPlaceServer = ::LoadMenu(hInst,
MAKEINTRESOURCE(m_nIDServerResource));
m_hAccelInPlaceServer = ::LoadAccelerators(hInst,
MAKEINTRESOURCE(m_nIDServerResource));
}
Thanks
Jack