Solved

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

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

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 30

Expert Comment

by:Zoppo
ID: 7074774
You're welcome,

have a nice day,

regards,

ZOPPO
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 45
lucky13 challenge 11 112
no14 challenge 14 57
sumHeights2  challenge 7 78
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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