Sv Community El Salvador
Soporte y Tecnología => Programación => C/C++ => Mensaje iniciado por: sicario en enero 08, 2008, 02:08:44 pm
-
tengo un proyecto que quiero compilar en Visual C++ y me dice lo siguiente:
stdafx.h(33) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
¿tal parece es una libreria no se... de donde descargo eso o como lo consigo?
gracias por su valiosa ayuda. :drinks:
-
************************************************************************
T h e O p e n F o u n d a t i o n C l a s s e s
------------------------------------------------------------------------
Filename : afxwin.h
Version : 0.60
Author(s) : William D. Herndon
--[ Description ]-------------------------------------------------------
This file is part of the OFC - Open Foundation Classes -.
It is MFC compatible.
This is the main include file for projects using OFC: all it really
does is include the other exported include files. It has the same name
as the main include file for MFC, so projects will not need to change.
--[ History ] ----------------------------------------------------------
cb = Carsten Breuer (Carsten.Breuer@breuer-software.de)
gv = Geurt Vos (geurt@users.sourceforge.net)
id = Ivan Deras (ideras@users.sourceforge.net)
tm = Tim Musschoot (timussch@users.sourceforge.net)
wdh = William D. Herndon (shadowdog@users.sourceforge.net)
mm-dd-yy ver who what
10-05-03 0.10 wdh Created.
10-12-03 0.20 wdh Changed from windef.h to windows.h to be MS compatible.
11-02-03 0.30 wdh Added CGdiObject*.h includes.
11-09-03 0.40 wdh Added ofcglobals.h and CObjFromHandle.h
11-25-03 0.50 wdh Added CCmdUI and CCmdTarget.
05-30-04 0.60 wdh Added CArchive, CWnd, CDocument, CDocTemplate, CView,
CFrameWnd, CWinApp and the CCommandLineInfo hack and CCreateContext.
--[ How to compile ]----------------------------------------------------
This file was developed under DevC++ 4
--[ License ] ----------------------------------------------------------
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
------------------------------------------------------------------------
Copyright (c) 2000-04 Open Foundation Classes
Copyright (c) 2003-04 William D. Herndon
/************************************************************************/
#ifndef __AFXWIN_H__
#define __AFXWIN_H__
#include <string.h>
#include <windows.h> // Standard Windows includes from CygWin or MS
#include <ofcglobals.h>
#include <CPoint.h>
#include <CSize.h>
#include <CRect.h>
#include <CString.h>
#include <CString_inline.h>
#include <CObject.h>
#include <CException.h>
#include <CFile.h>
#include <CArchive.h>
#include <CArchive_inline.h>
#include <CObjFromHandle.h>
#include <CGdiObject.h>
#include <CGdiObject_inline.h>
#include <CCmdUI.h>
#include <CCmdTarget.h>
#include <CCmdTarget_inline.h>
#include <CWnd.h>
#include <CWnd_inline.h>
#include <CDocument.h>
#include <CDocument_inline.h>
#include <CDocTemplate.h>
#include <CDocTemplate_inline.h>
#include <CView.h>
#include <CView_inline.h>
#include <CFrameWnd.h>
#include <CFrameWnd_inline.h>
#if 1 // Quick hack
class CCommandLineInfo {
public:
int m_iGarbage;
};
class CCreateContext {
public:
CCreateContext(CRuntimeClass* pViewClass,CDocument* pDoc,
CDocTemplate* pNewDocTemplate)
{
m_pNewViewClass = pViewClass;
m_pCurrentDoc = pDoc;
m_pNewDocTemplate = pNewDocTemplate;
};
CRuntimeClass* m_pNewViewClass;
CDocument* m_pCurrentDoc;
CDocTemplate* m_pNewDocTemplate;
};
#endif
#include <CWinApp.h>
#include <CWinApp_inline.h>
#endif // __AFXWIN_H__
Fuente:
http://www.koders.com/cpp/fidCD9093403C97780D43BB41EB5974725FE938EFA1.aspx?s=afxwin.h (http://www.koders.com/cpp/fidCD9093403C97780D43BB41EB5974725FE938EFA1.aspx?s=afxwin.h)
-
osea que lo puedo crear con ese codigo? ... o somo?
-
ese codigo es el archivo de cabecera q andas buscando, copialo, guardalo como afxwin.h y no se te olvide incluirlo en los archivos de cabecera.
-
osea que lo puedo crear con ese codigo? ... o somo?
estos archivos son simples archivos de texto con extension .h solo lo copias lo pegas en tu editor de texto y le pones el nombre afxwin.h luego lo colocas en la carpeta include del IDE que estas utilizando para que el encuentre la libreria
-
ahora me hace falta el windows.h .... pero no lo encuentro en tu pagina. :embarassed:
-
/*
windows.h - main header file for the Win32 API
Written by Anders Norlander <anorland@hem2.passagen.se>
This file is part of a free library for the Win32 API.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef _WINDOWS_H
#define _WINDOWS_H
#if __GNUC__ >=3
#pragma GCC system_header
#endif
/* translate GCC target defines to MS equivalents. Keep this synchronized
with winnt.h. */
#if defined(__i686__) && !defined(_M_IX86)
#define _M_IX86 600
#elif defined(__i586__) && !defined(_M_IX86)
#define _M_IX86 500
#elif defined(__i486__) && !defined(_M_IX86)
#define _M_IX86 400
#elif defined(__i386__) && !defined(_M_IX86)
#define _M_IX86 300
#endif
#if defined(_M_IX86) && !defined(_X86_)
#define _X86_
#elif defined(_M_ALPHA) && !defined(_ALPHA_)
#define _ALPHA_
#elif defined(_M_PPC) && !defined(_PPC_)
#define _PPC_
#elif defined(_M_MRX000) && !defined(_MIPS_)
#define _MIPS_
#elif defined(_M_M68K) && !defined(_68K_)
#define _68K_
#endif
#ifdef RC_INVOKED
/* winresrc.h includes the necessary headers */
#include <winresrc.h>
#else
#include <stdarg.h>
#include <windef.h>
#include <wincon.h>
#include <winbase.h>
#if !(defined NOGDI || defined _WINGDI_H)
#include <wingdi.h>
#endif
#ifndef _WINUSER_H
#include <winuser.h>
#endif
#ifndef _WINNLS_H
#include <winnls.h>
#endif
#ifndef _WINVER_H
#include <winver.h>
#endif
#ifndef _WINNETWK_H
#include <winnetwk.h>
#endif
#ifndef _WINREG_H
#include <winreg.h>
#endif
#ifndef _WINSVC_H
#include <winsvc.h>
#endif
#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#include <imm.h>
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#include <shellapi.h>
#include <winperf.h>
#ifndef NOGDI
#include <commdlg.h>
#include <winspool.h>
#endif
#if defined(Win32_Winsock)
#warning "The Win32_Winsock macro name is deprecated.\
Please use __USE_W32_SOCKETS instead"
#ifndef __USE_W32_SOCKETS
#define __USE_W32_SOCKETS
#endif
#endif
#if defined(__USE_W32_SOCKETS) || !(defined(__CYGWIN__) || defined(__MSYS__) || defined(_UWIN))
#if (_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
/*
* MS likes to include mswsock.h here as well,
* but that can cause undefined symbols if
* winsock2.h is included before windows.h
*/
#else
#include <winsock.h>
#endif /* (_WIN32_WINNT >= 0x0400) */
#endif
#ifndef NOGDI
#if !defined (__OBJC__)
#if (__GNUC__ >= 3) || defined (__WATCOMC__)
#include <ole2.h>
#endif
#endif /* __OBJC__ */
#endif
#endif /* WIN32_LEAN_AND_MEAN */
#endif /* RC_INVOKED */
#ifdef __OBJC__
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
but undefining it causes trouble as well if a file is included after
windows.h
*/
#undef BOOL
#endif
#endif
-
ahora me hace falta el windows.h .... pero no lo encuentro en tu pagina. :embarassed:
Todo te hace falta!!!!. Uno de los archivos principales... volve a instalar tú entorno de programación, porque estas MUY mal!