Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Joke[OT] Re: Help with Mouse Button and counter Pin
David Crow31-Mar-09 3:26
David Crow31-Mar-09 3:26 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:09
sitebuilderLuc Pattyn31-Mar-09 5:09 
GeneralRe: Help with Mouse Button and counter Pin
Rajesh R Subramanian31-Mar-09 20:56
professionalRajesh R Subramanian31-Mar-09 20:56 
GeneralRe: Help with Mouse Button and counter Pin
Member 23626231-Mar-09 4:06
Member 23626231-Mar-09 4:06 
GeneralRe: Help with Mouse Button and counter Pin
Luc Pattyn31-Mar-09 5:12
sitebuilderLuc Pattyn31-Mar-09 5:12 
AnswerRe: Help with Mouse Button and counter Pin
Iain Clarke, Warrior Programmer31-Mar-09 1:46
Iain Clarke, Warrior Programmer31-Mar-09 1:46 
GeneralRe: Help with Mouse Button and counter Pin
Member 2362621-Apr-09 3:06
Member 2362621-Apr-09 3:06 
Questionfatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h></windows.h> Pin
Le@rner30-Mar-09 23:41
Le@rner30-Mar-09 23:41 
Hi all,

i receive this error please help me how can i solve this.

my stdafx.h looks like this.

// 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__1EAE1E61_6C55_4340_B919_9DA4E2BE11F0__INCLUDED_)
#define AFX_STDAFX_H__1EAE1E61_6C55_4340_B919_9DA4E2BE11F0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

//-------------------------------------------------------------------------------//

//#define _WTL_NO_CSTRING
//
#include <atlbase.h>
#include <atlstr.h>
#include <atlapp.h>
extern CAppModule _Module;
#include <shellapi.h>
#include <atlwin.h>
#include <atlframe.h>
#include <atlctrls.h>
#include <atlctrlx.h>		// WTL enchanced common controls
#include <atldlgs.h>
#include <atlcrack.h>		// WTL enhanced msg map macros
#include <atlcoll.h>		// ATL collections
#include <atlddx.h>			// WTL DDX support

#import ".\MSO.DLL" \
	rename( "RGB", "MSORGB" )

using namespace Office;

#import ".\VBE6EXT.OLB"

using namespace VBIDE;

#import ".\EXCEL.EXE" \
	rename( "DialogBox", "ExcelDialogBox" ) \
	rename( "RGB", "ExcelRGB" ) \
	rename( "CopyFile", "ExcelCopyFile" ) \
	rename( "ReplaceText", "ExcelReplaceText" )
//-------------------------------------------------------------------------------//

#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxsock.h>		// MFC socket extensions


please help for this

To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.

AnswerRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:07
professionalStuart Dootson31-Mar-09 0:07 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:51
Le@rner31-Mar-09 0:51 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 0:57
professionalStuart Dootson31-Mar-09 0:57 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Le@rner31-Mar-09 0:59
Le@rner31-Mar-09 0:59 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Stuart Dootson31-Mar-09 1:06
professionalStuart Dootson31-Mar-09 1:06 
GeneralRe: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include Pin
Rajesh R Subramanian31-Mar-09 2:34
professionalRajesh R Subramanian31-Mar-09 2:34 
QuestionHow to create a listbox in win32 with checkbox style Pin
nbugalia30-Mar-09 22:52
nbugalia30-Mar-09 22:52 
AnswerRe: How to create a listbox in win32 with checkbox style Pin
Iain Clarke, Warrior Programmer30-Mar-09 23:14
Iain Clarke, Warrior Programmer30-Mar-09 23:14 
GeneralRe: How to create a listbox in win32 with checkbox style Pin
nbugalia30-Mar-09 23:40
nbugalia30-Mar-09 23:40 
GeneralRe: How to create a listbox in win32 with checkbox style Pin
Stephen Hewitt30-Mar-09 23:50
Stephen Hewitt30-Mar-09 23:50 
QuestionRe: How to create a listbox in win32 with checkbox style Pin
David Crow31-Mar-09 3:33
David Crow31-Mar-09 3:33 
Questionreading html file in c++/vc++ Pin
siddunelogi30-Mar-09 22:41
siddunelogi30-Mar-09 22:41 
AnswerRe: reading html file in c++/vc++ Pin
Rajesh R Subramanian30-Mar-09 22:48
professionalRajesh R Subramanian30-Mar-09 22:48 
AnswerRe: reading html file in c++/vc++ Pin
Iain Clarke, Warrior Programmer30-Mar-09 23:19
Iain Clarke, Warrior Programmer30-Mar-09 23:19 
QuestionRetrive data from SQL database & store it in Excel file Pin
diptipanchal30-Mar-09 22:31
diptipanchal30-Mar-09 22:31 
AnswerRe: Retrive data from SQL database & store it in Excel file Pin
Purish Dwivedi30-Mar-09 23:12
Purish Dwivedi30-Mar-09 23:12 
GeneralRe: Retrive data from SQL database & store it in Excel file Pin
diptipanchal31-Mar-09 0:10
diptipanchal31-Mar-09 0:10 

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.