Did I forget to attach the cpp file? I'm sorry. I will attach it to this message. Also, I THINK that I may have tracked down where the problem might be occuring, but I cannot figure out why. Look in the following code....
Code:
BOOL AFXAPI _AfxCheckDialogTemplate(LPCTSTR lpszResource, BOOL bInvisibleChild)
{
ASSERT(lpszResource != NULL);
HINSTANCE hInst = AfxFindResourceHandle(lpszResource, RT_DIALOG);
HRSRC hResource = ::FindResource(hInst, lpszResource, RT_DIALOG);
if (hResource == NULL)
{
if (DWORD_PTR(lpszResource) > 0xffff)
TRACE(traceAppMsg, 0, _T("ERROR: Cannot find dialog template named '%s'.\n"),
lpszResource);
else
TRACE(traceAppMsg, 0, "ERROR: Cannot find dialog template with IDD 0x%04X.\n",
LOWORD((DWORD_PTR)lpszResource));
return FALSE;
}
whenever the code hits the HRSRC hResource, it returns a null value. The only reason that could be is because of the hInst value. When I try to step into the AfxFindResourceHandle function, I get a message that "There is no source code available in the current location". The AfxFindResourceHandle function is located in dllinit.cpp which is located in the mfc/src folder within .NET. The folder is being accessed because the program steps into other .cpp files in the same folder. Why would it not step into the AfxFindResourceHandle function????? Any ideas.
Thanks,
Kendal