Solved

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

Posted on 2002-06-12
3
481 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rewrite URL With Encoded Characters 6 75
Macro to save highlighted rows as a separate file 5 41
unable to delete all specified values regedit 38 278
changeXy challenge 13 67
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now