Solved

Problem when building a project using  "use MFC in Static library" setting

Posted on 2008-06-10
4
509 Views
Last Modified: 2013-12-14
hi,
  i have an application in MFC and i am using following code

                   AfxGetModuleState()->m_dwVersion = 0x0601;
                  CDaoDatabase db;
                  db.Create(glblDBName,dbLangGeneral,0x40);        
                  db.Close();

to create a database, when i building this  project using  "use MFC in Static library" setting it display an error "m_dwVersion' : is not a member of 'AFX_MODULE_STATE"

but when building this project using  "use MFC in shared  library" setting it is working properly .  i need to build it using  "use MFC in Static library" setting

so please tell me how it will possible
 
0
Comment
Question by:rajnish1579
4 Comments
 
LVL 5

Expert Comment

by:marcodalzotto
ID: 21749071
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 21749078
http://support.microsoft.com/kb/236991

This tells you how to do it for a static build
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

679 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