Message 1 of 8
Using resource defined in MFC DLL project from ARXProject
Not applicable
06-18-2008
07:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
We use AutoCad Architect 2009 with ObjectARX 2009 and Visual Studio 2005 SP1.
We define in an ARX Project the function below :
void CSendingCommandsApp::AdskSendingCommands_TEST1(void)
{
CAcModuleResourceOverride temp;
CDisplay a;
a.Display();
}
In this function, we want to display a resource define in a MFC extension DLL.
void CDisplay::Display()
{
CString cs;
cs.LoadStringW(IDS_Hello);
AfxMessageBox(cs);
}
When we execute our command TEST1 in Autocad, we have an Assert in AfxWin1.inl :
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
Thank you for your help,
We use AutoCad Architect 2009 with ObjectARX 2009 and Visual Studio 2005 SP1.
We define in an ARX Project the function below :
void CSendingCommandsApp::AdskSendingCommands_TEST1(void)
{
CAcModuleResourceOverride temp;
CDisplay a;
a.Display();
}
In this function, we want to display a resource define in a MFC extension DLL.
void CDisplay::Display()
{
CString cs;
cs.LoadStringW(IDS_Hello);
AfxMessageBox(cs);
}
When we execute our command TEST1 in Autocad, we have an Assert in AfxWin1.inl :
_AFXWIN_INLINE HINSTANCE AFXAPI AfxGetResourceHandle()
{ ASSERT(afxCurrentResourceHandle != NULL);
return afxCurrentResourceHandle; }
Thank you for your help,