Couldn't work with DAO 3.6 using MFC in a static library
Posted on 2002-06-12
I have a application which uses "MFC in a static library".
When I tried to work with Access 2000, a "invalid format" error message occurs.
I've tried to add this follow line to my app's InitInstance function.
"AfxGetModuleState()->m_dwVersion = 0x0601;"
"AfxGetStaticModuleState()->m_dwVersion = 0x0601;"
=> No result
When i build my project, an error occurs telling "m_dwVersion is not a member of AFX_MODULE_STATE class" or something like that.
I believe that "m_dwVersion" member is only available whether MFC is used as a dynamic library (_AFXDLL must be defined).
So, How do i work whith DAO 3.6 using MFC in a static library ?