Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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 78
Expand data scrubbing tool 13 32
Detect file exist or not 3 153
Updating statistics with error notification email in SQL server 4 94
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 …

813 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

10 Experts available now in Live!

Get 1:1 Help Now