Link to home
Start Free TrialLog in
Avatar of Jonmy
Jonmy

asked on

Couldn't work with DAO 3.6 using MFC in a static library

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;"
                   or
"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 ?

Thanks



ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jonmy
Jonmy

ASKER

Thanks Zoppo.
You're welcome,

have a nice day,

regards,

ZOPPO