Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C/C++: Для новичков > CFile


Автор: Grok 4.3.2008, 17:41
Привет всем...

у меня проблемка в работающий код пробую добавить CFile fileIni;

вылетают ошибки:
...\test.cpp(84): error C2065: 'CFile' : undeclared identifier
...\test.cpp(84): error C2065: 'fileIni' : undeclared identifier
...\test.cpp(84): error C2146: syntax error : missing ';' before identifier 'fileIni'

stdafx.h
Код


#pragma once

#define WIN32_LEAN_AND_MEAN        

#define WINVER            0x0400
#define _WIN32_WINDOWS    0x0410
#define _WIN32_WINNT    0x0400

#define COUNTOF(x) (sizeof(x)/sizeof(x[0]))

#include <windows.h>
#include <tchar.h>

#include <atlstr.h>
#include <atlfile.h>
#include <atlserr.h>
#include <atlpath.h>
#include <atlsync.h>
#include <atlutil.h>
#include <atlbase.h>
#include <atlstr.h>
#include <atlcoll.h>
#include <atlpath.h>

#include <map>
#include <set>
#include <iostream>
#include <string>

#include <WinInet.h>

#include <io.h>
#include <assert.h>
#include <crtdbg.h>
#define TRACE        ATLTRACE
#define ASSERT        ATLASSERT
#define VERIFY(x)    ATLVERIFY(x)
#define NIWinMain()    _tWinMain(HINSTANCE, HINSTANCE, LPSTR, int)

#include <commctrl.h>
#include <wininet.h>
#include <winsock2.h>

#include <shlwapi.h>
#include <shellapi.h>
#include <iphlpapi.h>

#include <time.h>
#include <malloc.h>

#include <strsafe.h>
#include <atlsimpcoll.h>




заранее спасибо ....

Автор: jonie 4.3.2008, 23:41
Requirements
Header: afx.h

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)