Solved

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

Posted on 2002-06-12
3
485 Views
Last Modified: 2013-11-20
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



0
Comment
Question by:Jonmy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
Zoppo earned 75 total points
ID: 7073029
Hi Jonmy,

take a look at:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q236991
there you'll find how to workaround this
problem with MFC static library.

hope this helps,

ZOPPO
0
 

Author Comment

by:Jonmy
ID: 7073122
Thanks Zoppo.
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 7074774
You're welcome,

have a nice day,

regards,

ZOPPO
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Whole sheet autoscrub still needed 19 53
Process filename extension 3 208
fizzArray2 challenge 1 102
I could not set window to top 4 43
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question