Solved

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

Posted on 2008-06-10
4
507 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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. …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
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.

791 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