Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strange PCH creation point error Pin
Daniel Turini3-Aug-02 11:37
Daniel Turini3-Aug-02 11:37 
GeneralRe: strange PCH creation point error Pin
nss3-Aug-02 11:41
nss3-Aug-02 11:41 
Generalcalling external .exe Pin
smooth3-Aug-02 11:09
smooth3-Aug-02 11:09 
GeneralRe: calling external .exe Pin
Chris Losinger3-Aug-02 11:23
professionalChris Losinger3-Aug-02 11:23 
Questionhow to add a database class into an existing MFC app? Pin
nss3-Aug-02 9:36
nss3-Aug-02 9:36 
AnswerRe: how to add a database class into an existing MFC app? Pin
Michael P Butler4-Aug-02 2:49
Michael P Butler4-Aug-02 2:49 
GeneralRe: how to add a database class into an existing MFC app? Pin
nss4-Aug-02 6:15
nss4-Aug-02 6:15 
Questioncompile error - windows.h defined twice? Pin
nss3-Aug-02 9:27
nss3-Aug-02 9:27 
I only have these files in my added class in an MFC project:

#import "C:\\Program Files\\Common Files\\SYSTEM\\ADO\\msado15.dll" \
		no_namespace \
		rename( "EOF", "adoEOF" )

#include "stdafx.h"
#include <ole2.h>


I get the compile error (for my added class:

c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>


What is missing or extra ?

Thanks,
ns
AnswerRe: compile error - windows.h defined twice? Pin
56789012343-Aug-02 21:46
56789012343-Aug-02 21:46 
GeneralRe: compile error - windows.h defined twice? Pin
nss4-Aug-02 6:12
nss4-Aug-02 6:12 
GeneralFTP using winsocks Pin
carrie3-Aug-02 8:28
carrie3-Aug-02 8:28 
QuestionHow to capture the "save" command in the MS office? Pin
max-z3-Aug-02 7:18
max-z3-Aug-02 7:18 
Questionhow to copy binary data? How to get its length? Pin
nss3-Aug-02 6:20
nss3-Aug-02 6:20 
AnswerRe: how to copy binary data? How to get its length? Pin
Daniel Turini3-Aug-02 11:46
Daniel Turini3-Aug-02 11:46 
AnswerRe: how to copy binary data? How to get its length? Pin
Daniel Turini3-Aug-02 11:46
Daniel Turini3-Aug-02 11:46 
GeneralDetect an open window and active it if not active Pin
youssef3-Aug-02 5:47
youssef3-Aug-02 5:47 
Questionhow to use valarray Pin
Anonymous3-Aug-02 4:57
Anonymous3-Aug-02 4:57 
GeneralDocument/View trouble Pin
carlos del piero3-Aug-02 4:32
susscarlos del piero3-Aug-02 4:32 
GeneralRe: Document/View trouble Pin
Ernest Laurentin3-Aug-02 6:33
Ernest Laurentin3-Aug-02 6:33 
GeneralRe: this is actually how the situation is Pin
carlos dp4-Aug-02 2:25
susscarlos dp4-Aug-02 2:25 
Generalerror 1189 in mfc app. Pin
nss3-Aug-02 4:25
nss3-Aug-02 4:25 
Generalall I have in my .h file is two includes and 1 import: Pin
nss3-Aug-02 4:30
nss3-Aug-02 4:30 
GeneralI have "automatic use of precompiled headers" Pin
nss3-Aug-02 4:35
nss3-Aug-02 4:35 
GeneralCRichEditCtrl MFC Pin
Anonymous3-Aug-02 1:58
Anonymous3-Aug-02 1:58 
GeneralRe: CRichEditCtrl MFC Pin
Pavel Klocek3-Aug-02 2:08
Pavel Klocek3-Aug-02 2:08 

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.