Click here to Skip to main content
15,902,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionAdding popmenu to ListCtrl Pin
Sakhalean24-Jun-10 20:03
Sakhalean24-Jun-10 20:03 
AnswerRe: Adding popmenu to ListCtrl Pin
Stephen Hewitt24-Jun-10 20:13
Stephen Hewitt24-Jun-10 20:13 
GeneralRe: Adding popmenu to ListCtrl Pin
Sakhalean24-Jun-10 20:17
Sakhalean24-Jun-10 20:17 
AnswerRe: Adding popmenu to ListCtrl Pin
Niklas L24-Jun-10 21:42
Niklas L24-Jun-10 21:42 
GeneralRe: Adding popmenu to ListCtrl Pin
Sakhalean26-Jun-10 23:16
Sakhalean26-Jun-10 23:16 
Questioncode to install a package Pin
Subrat Patnaik24-Jun-10 19:03
Subrat Patnaik24-Jun-10 19:03 
AnswerRe: code to install a package Pin
rp_suman24-Jun-10 19:34
rp_suman24-Jun-10 19:34 
Questionfatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> Pin
lcryby24-Jun-10 16:33
lcryby24-Jun-10 16:33 
Hi, everyone

I want to use database in my application , but when I add #include <afxdb.h> to the stdafx.h, it give me the above error message.

When I change the position of the #include<afxdb.h>, it give me other error message,
error C2146: syntax error : missing ';' before identifier 'ConvertToWin32ALG_ID'


so what is the problem?

the following code is the the stdafx.h file

// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#if !defined(AFX_STDAFX_H__3D0D8E67_10EC_4002_9AE7_E8E9AE644C83__INCLUDED_)
#define AFX_STDAFX_H__3D0D8E67_10EC_4002_9AE7_E8E9AE644C83__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define STRICT
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
#define _ATL_APARTMENT_THREADED

#include <afxdb.h>
#include <atlbase.h>
//You may derive a class from CComModule and use it if you want to override
//something, but do not change the name of _Module
extern CComModule _Module;
#include <atlcom.h>

//used for token
#include <pkcs11/cryptoki.h>
#include <pkcs11/auxiliary.h>
#define PKCS_LIB_NAME "ST2pkcs11v10.dll"
#define ArraySize 1000
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#include <comdef.h>
AnswerRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Aescleal24-Jun-10 20:31
Aescleal24-Jun-10 20:31 
Questionmfc executable won't run on other machines Pin
b-rad31124-Jun-10 7:04
b-rad31124-Jun-10 7:04 
AnswerRe: mfc executable won't run on other machines Pin
rp_suman24-Jun-10 7:33
rp_suman24-Jun-10 7:33 
GeneralRe: mfc executable won't run on other machines Pin
b-rad31124-Jun-10 7:35
b-rad31124-Jun-10 7:35 
GeneralRe: mfc executable won't run on other machines Pin
rp_suman24-Jun-10 7:40
rp_suman24-Jun-10 7:40 
GeneralRe: mfc executable won't run on other machines Pin
b-rad31124-Jun-10 7:46
b-rad31124-Jun-10 7:46 
GeneralRe: mfc executable won't run on other machines Pin
rp_suman24-Jun-10 7:51
rp_suman24-Jun-10 7:51 
GeneralRe: mfc executable won't run on other machines Pin
bob1697224-Jun-10 8:17
bob1697224-Jun-10 8:17 
GeneralRe: mfc executable won't run on other machines Pin
Richard MacCutchan24-Jun-10 11:04
mveRichard MacCutchan24-Jun-10 11:04 
AnswerRe: mfc executable won't run on other machines Pin
Rajesh R Subramanian24-Jun-10 8:03
professionalRajesh R Subramanian24-Jun-10 8:03 
AnswerRe: mfc executable won't run on other machines Pin
El Corazon24-Jun-10 12:23
El Corazon24-Jun-10 12:23 
QuestionHow to removes Dividers between docked Toolbars? Pin
Ed The C24-Jun-10 7:03
Ed The C24-Jun-10 7:03 
AnswerRe: How to removes Dividers between docked Toolbars? Pin
Maximilien24-Jun-10 8:28
Maximilien24-Jun-10 8:28 
GeneralRe: How to removes Dividers between docked Toolbars? Pin
Ed The C24-Jun-10 9:15
Ed The C24-Jun-10 9:15 
QuestionWhat does mean "struct foo f = {0};"? Pin
ant-damage24-Jun-10 6:21
ant-damage24-Jun-10 6:21 
QuestionRe: What does mean "struct foo f = {0};"? Pin
Maximilien24-Jun-10 6:42
Maximilien24-Jun-10 6:42 
AnswerRe: What does mean "struct foo f = {0};"? Pin
rp_suman24-Jun-10 6:43
rp_suman24-Jun-10 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.