?
Solved

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

Posted on 2008-06-10
4
Medium Priority
?
519 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Expert Comment

by:marcodalzotto
ID: 21749071
0
 
LVL 44

Accepted Solution

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

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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.

770 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