Премини към съдържанието
  • Добре дошли!

    Добре дошли в нашите форуми, пълни с полезна информация. Имате проблем с компютъра или телефона си? Публикувайте нова тема и ще намерите решение на всичките си проблеми. Общувайте свободно и открийте безброй нови приятели.

    Моля, регистрирайте се за да публикувате тема и да получите пълен достъп до всички функции.

     

Архивирана тема

Темата е твърде стара и е архивирана. Не можете да добавяте нови отговори в нея, но винаги можете да публикувате нова тема, в която да продължи дискусията. Регистрирайте се или влезте във вашия профил за да публикувате нова тема.

Galin Ivanov

Грешка при компилиране

Препоръчан отговор


Как да оправя тая грешка?

1>c:program filesmicrosoft visual studio 10.0vcatlmfcincludeafxv_w32.h(35): fatal error C1017: invalid integer constant expression
ето кода на този файл той е някъв вграден пък ми дава грешка
// This is a part of the Microsoft Foundation Classes C++ library.// Copyright (C) Microsoft Corporation// All rights reserved.//// This source code is only intended as a supplement to the// Microsoft Foundation Classes Reference and related// electronic documentation provided with the library.// See these sources for detailed information regarding the// Microsoft Foundation Classes product.// afxv_w32.h - target version/configuration control for Win32#pragma once#ifdef _WINDOWS_	#error WINDOWS.H already included.  MFC apps must not #include <windows.h>#endif// STRICT is the only supported option (NOSTRICT is no longer supported)#ifndef STRICT#define STRICT 1#endif// WinSDKVer.h contains the definition for _WIN32_WINNT_MAXVER (and other maximums).#include <winsdkver.h>#ifndef _WIN32_WINNT#ifdef WINVER#define _WIN32_WINNT WINVER#else#pragma message("_WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)")#define _WIN32_WINNT _WIN32_WINNT_MAXVER#endif#else#if _WIN32_WINNT < 0x0400;#error MFC requires _WIN32_WINNT to be #defined to 0x0400 or greater#endif#endif// SDKDDKVer.h will set any of WINVER, NTDDI_VERSION and _WIN32_IE that are yet unset.#include <sdkddkver.h>// certain parts of WINDOWS.H are necessary#undef NOKERNEL#undef NOGDI#undef NOUSER#undef NODRIVERS#undef NOLOGERROR#undef NOPROFILER#undef NOMEMMGR#undef NOLFILEIO#undef NOOPENFILE#undef NORESOURCE#undef NOATOM#undef NOLANGUAGE#undef NOLSTRING#undef NODBCS#undef NOKEYBOARDINFO#undef NOGDICAPMASKS#undef NOCOLOR#undef NOGDIOBJ#undef NODRAWTEXT#undef NOTEXTMETRIC#undef NOSCALABLEFONT#undef NOBITMAP#undef NORASTEROPS#undef NOMETAFILE#undef NOSYSMETRICS#undef NOSYSTEMPARAMSINFO#undef NOMSG#undef NOWINSTYLES#undef NOWINOFFSETS#undef NOSHOWWINDOW#undef NODEFERWINDOWPOS#undef NOVIRTUALKEYCODES#undef NOKEYSTATES#undef NOWH#undef NOMENUS#undef NOSCROLL#undef NOCLIPBOARD#undef NOICONS#undef NOMB#undef NOSYSCOMMANDS#undef NOMDI#undef NOCTLMGR#undef NOWINMESSAGES#ifndef WIN32#define WIN32#endif#ifndef WIN32_LEAN_AND_MEAN#define WIN32_LEAN_AND_MEAN#endif#ifdef _UNICODE#ifndef UNICODE#define UNICODE         // UNICODE is used by Windows headers#endif#endif#ifdef UNICODE#ifndef _UNICODE#define _UNICODE        // _UNICODE is used by C-runtime/MFC headers#endif#endif#ifdef VC_EXTRALEAN#define NOSERVICE#define NOMCX#define NOIME#define NOSOUND#define NOCOMM#define NORPC#ifndef NO_ANSIUNI_ONLY#ifdef _UNICODE#define UNICODE_ONLY#else#define ANSI_ONLY#endif#endif //!NO_ANSIUNI_ONLY#endif //VC_EXTRALEAN/////////////////////////////////////////////////////////////////////////////// Turn off warnings for /W4// To resume any of these warning: #pragma warning(default: 4xxx)// which should be placed after the AFX include files#pragma warning(push)#pragma warning(disable: 4311 4312)#pragma warning(disable: 4201)  // winnt.h uses nameless structs// Don't include winsock.h#pragma push_macro("_WINSOCKAPI_")#ifndef _WINSOCKAPI_#define _WINSOCKAPI_#endif#include <windows.h>#pragma pop_macro("_WINSOCKAPI_")#pragma warning(pop)// Mouse message MFC is interested in#ifndef AFX_WM_MOUSELAST#define AFX_WM_MOUSELAST 0x0209#endif#include <zmouse.h>struct HKEY__;typedef struct HKEY__ *HKEY;#ifndef _INC_COMMCTRL	#include <commctrl.h>	// Note: We must avoid using TB_ADDBUTTONW and TB_INSERTBUTTONW	//       in the Unicode build or else MFCXXU.DLL will not be	//       compatible with pre-IE4 versions of COMCTL32.DLL.	#ifdef TB_ADDBUTTONSA		#undef TB_ADDBUTTONS		#define TB_ADDBUTTONS TB_ADDBUTTONSA	#endif	#ifdef TB_INSERTBUTTONA		#undef TB_INSERTBUTTON		#define TB_INSERTBUTTON TB_INSERTBUTTONA	#endif#endif#ifndef EXPORT#define EXPORT#endif#ifndef _INC_TCHAR	#include <tchar.h>      // used for ANSI v.s. UNICODE abstraction#endif#ifdef _MBCS#ifndef _INC_MBCTYPE	#include <mbctype.h>#endif#ifndef _INC_MBSTRING	#include <mbstring.h>#endif#endif#ifdef _WIN64#define _AFX_NO_CTL3D_SUPPORT#endif/////////////////////////////////////////////////////////////////////////////// Now for the Windows API specific parts// WM_CTLCOLOR for 16 bit API compatability#define WM_CTLCOLOR     0x0019// Win32 uses macros with parameters for this, which breaks C++ code.#ifdef GetWindowTask#undef GetWindowTaskAFX_INLINE HTASK GetWindowTask(HWND hWnd)	{ return (HTASK)(DWORD_PTR)::GetWindowThreadProcessId(hWnd, NULL); }#endif// Win32 uses macros with parameters for this, which breaks C++ code.#ifdef GetNextWindow#undef GetNextWindowAFX_INLINE HWND GetNextWindow(HWND hWnd, UINT nDirection)	{ return ::GetWindow(hWnd, nDirection); }#endif// Avoid mapping CToolBar::DrawState to DrawState[A/W]#ifdef DrawState#undef DrawStateAFX_INLINE BOOL WINAPI DrawState(HDC hdc, HBRUSH hbr, DRAWSTATEPROC lpOutputFunc,	LPARAM lData, WPARAM wData, int x, int y, int cx, int cy, UINT fuFlags)#ifdef UNICODE	{ return ::DrawStateW(hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy,		fuFlags); }#else	{ return ::DrawStateA(hdc, hbr, lpOutputFunc, lData, wData, x, y, cx, cy,		fuFlags); }#endif#endif// Avoid mapping CStatusBar::DrawStatusText to DrawStatusText[A/W]#ifdef DrawStatusText#undef DrawStatusTextAFX_INLINE void WINAPI AfxDrawStatusTextA(HDC hDC, LPRECT lprc, LPCTSTR szText,	UINT uFlags);AFX_INLINE void WINAPI AfxDrawStatusTextW(HDC hDC, LPRECT lprc, LPCTSTR szText,	UINT uFlags);AFX_INLINE void WINAPI DrawStatusText(HDC hDC, LPRECT lprc, LPCTSTR szText,	UINT uFlags) #ifdef UNICODE	{ ::AfxDrawStatusTextW(hDC, lprc, szText, uFlags); }#else	{ ::AfxDrawStatusTextA(hDC, lprc, szText, uFlags); }#endif#endif// FreeResource is not required on Win32 platforms#undef FreeResourceAFX_INLINE BOOL WINAPI FreeResource(HGLOBAL) { return TRUE; }// UnlockResource is not required on Win32 platforms#undef UnlockResourceAFX_INLINE int WINAPI UnlockResource(HGLOBAL) { return 0; }

ето го cpp файла

#define _AFXDLL #define _WIN32_WINNT //-----------------------------------------------------------------------------------------#include <afxwin.h>     // MFC core and standard components#include "resource.h"   // main symbols#include <cmath>//-----------------------------------------------------------------------------------------// File 2 of 3.  The "WinMain()" portion of the calculator program with MFC dialog box// Save as "calculator.cpp"//-----------------------------------------------------------------------------------------#include <afxwin.h>     // MFC core and standard components#include <afxcmn.h>	// Additional MFC components#include "resource.h"   // main symbols#include <cmath>//-----------------------------------------------------------------------------------------//GlobalsCEdit * InputOutput;double Number1;double Number2;double Result;double Memory;bool NextExpression;bool NeedToClear;bool ClickedEquals;bool PasteMemory;char oper; class Calculator : public CDialog{    public:    Calculator(CWnd* pParent = NULL): CDialog(Calculator::IDD, pParent) {    }    // Dialog Data, name of dialog form    enum{IDD = IDD_Calculator};    CBrush CalculatorBrush;    //--------------------------------------------------------    //Called right after constructor. Initialize things here.    virtual BOOL OnInitDialog()     {             CDialog::OnInitDialog();            InputOutput = (CEdit *) GetDlgItem(IDC_InputOutput);	        CalculatorBrush.CreateSolidBrush(RGB(255, 255, 255));            NextExpression = false;	        NeedToClear = false;	        ClickedEquals = false;	        PasteMemory = false;	        Number1 = 0.0; 	        Number2 = 0.0; 	        Result = 0.0;	        Memory = 0.0;	        oper = ' ';            return true;     }    //--------------------------------------------------------   afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)   {      switch (nCtlColor)       {	          case CTLCOLOR_EDIT:   pDC->SetTextColor(RGB(255,0,255));              case CTLCOLOR_STATIC: pDC->SetTextColor(RGB(255,0,255));              case CTLCOLOR_DLG:    return CalculatorBrush;              default:  return CDialog::OnCtlColor(pDC, pWnd, nCtlColor);      }   }//--------------------------------------------------------//To Get Keyboard Messages and bypass buggy CDialog MFC Keyboard Message Handlers BOOL PreTranslateMessage(MSG* pMsg) {      if(pMsg->message == WM_KEYDOWN) 	  {                        int nVirtKey = (int) pMsg->wParam;            if(nVirtKey == VK_UP) { MessageBox("Up Key Pressed!"); }            if(nVirtKey == VK_DOWN) { MessageBox("Down Key Pressed!"); }            //if(nVirtKey == 65) { MessageBox("The "a" Key Was Pressed!"); }            if(nVirtKey == 'r')  { Equals(); }            if(nVirtKey == 43)    { MessageBox("+!"); Calculate('a'); } //PLUS			if(nVirtKey == 45)    { Calculate('s'); } //MINUS			if(nVirtKey == 42)    { Calculate('m'); } //MULTIPLY			if(nVirtKey == 47)    { Calculate('d'); } //DIVIDE            if(nVirtKey == 61)    { Equals(); }       //EQUALS      }            return CDialog::PreTranslateMessage(pMsg);      //See ASCII Chart at Bottom for codes}//--------------------------------------------------------    //Message Handlers for Dialog class object	afx_msg void key0() { KeyNumber("0"); }	afx_msg void key1() { KeyNumber("1"); }	afx_msg void key2() { KeyNumber("2"); }	afx_msg void key3() { KeyNumber("3"); }	afx_msg void key4() { KeyNumber("4"); }	afx_msg void key5() { KeyNumber("5"); }	afx_msg void key6() { KeyNumber("6"); }	afx_msg void key7() { KeyNumber("7"); }	afx_msg void key8() { KeyNumber("8"); }	afx_msg void key9() { KeyNumber("9"); }	afx_msg void keyPeriod() { KeyNumber("."); }	afx_msg void keyEquals() { Equals(); }	afx_msg void keyAdd() { Calculate('a'); }	afx_msg void keySubtract() { Calculate('s'); }	afx_msg void keyMultiply() { Calculate('m'); }	afx_msg void keyDivide() { Calculate('d'); }	afx_msg void keyPower() { Calculate('p'); }	afx_msg void keyCube() { Cube(); }	afx_msg void keySquare() { Square(); }	afx_msg void keySquareRoot() { SquareRoot(); }	afx_msg void keyMemory() { MemoryKey(); }	afx_msg void EraseMemory() { MemoryClear(); }	afx_msg void keyCE() { Erase(); }	afx_msg void keyFarenheit() { CelciusToFarenheit(); }	afx_msg void keyCelcius() { FarenheitToCelcius(); }	afx_msg void keyMiles() { MilesToKilometers(); }	afx_msg void keyKilometers() { KilometersToMiles(); }	afx_msg void Quit() { EndDialog(IDOK); }    //--------------------------------------------------------		afx_msg void About() 	{  	        MessageBox("Calculator 3.0 - 2006 - C. Germany", "Calculator 3.0 - HELP");	}    //--------------------------------------------------------	afx_msg void Help() 	{             char HELPTEXT[5][55] = { 				 "This program is a fully functional calculator.rn",			     "It was created as an MFC tutorial for students.n",				 "Its purpose is to display the logic processesn",				 "and progam flow between the user interface and n",				 "processing of input through the MFC CEdit control."	             };            char Message[280] = ""; 	    for(int z = 0; z < 5; z++)            { strncat(Message, HELPTEXT[z], 55); }	    MessageBox(Message, "Calculator 3.0 - HELP");	}	    //--------------------------------------------------------    //Calculator Functions	void KeyNumber(char x[1])	{	     if(NeedToClear) 	     {                 InputOutput->SetWindowText("");                 NeedToClear = false;              }             char num[21] = "";             InputOutput->GetWindowText(num, 20);	     strncat(num,x,20);	     InputOutput->SetWindowText(num);	}    //--------------------------------------------------------    void Calculate(char op)    {         oper = op;         char num[21];         InputOutput->GetWindowText(num,20);         if(NextExpression)         {	       if(!ClickedEquals)	       {                 Number2 = atof(num);                 switch(oper)                 {                     case 'a' : Number1 = Number1 + Number2; break;                     case 's' : Number1 = Number1 - Number2; break;                     case 'm' : Number1 = Number1 * Number2; break;					 case 'd' : if(Number2 == 0) { Number1 = 0; }								else { Number1 = Number1 / Number2; } 								break;                     case 'p' : Number1 = pow(Number1,Number2); break;                     default : break;                 }                                     char Answer[20];			  		   //itoa(Number1, Answer, 10); //Converts int, but truncates decimal                   //Instead, use sprintf() to convert double or double to string	           sprintf(Answer,"%g",Number1);                   InputOutput->SetWindowText(Answer);		   NeedToClear = true;	        }	     else { ClickedEquals = false; }       }       else       {	       Number1 = atof(num);	       NeedToClear = true;	       NextExpression = true;       }    }//close Calculate()    //--------------------------------------------------------    void Equals()     { 	 Calculate(oper);	 NeedToClear = true;	 ClickedEquals = true;    }    //--------------------------------------------------------    void Erase()    {         InputOutput->SetWindowText("");         NextExpression = false;	 NeedToClear = false;	 ClickedEquals = false;	 Number1 = 0.0; 	 Number2 = 0.0; 	 Result = 0.0;	 oper = ' ';    }    //--------------------------------------------------------    void Cube()    {         char num[20] = ""; 	 double numtemp = 0.0;	 InputOutput->GetWindowText(num, 10);	 numtemp = atof(num);         numtemp = numtemp * numtemp * numtemp;	 sprintf(num,"%g",numtemp);	 InputOutput->SetWindowText(num);    }    //--------------------------------------------------------    void Square()    {         char num[20] = ""; 	 double numtemp = 0.0;	 InputOutput->GetWindowText(num, 10);	 numtemp = atof(num);         numtemp = numtemp * numtemp;	 sprintf(num,"%g",numtemp);	 InputOutput->SetWindowText(num);    }    //--------------------------------------------------------    void SquareRoot()    {	 char num[20] = "";	 InputOutput->GetWindowText(num, 10);	 Number1 = atof(num);	 Number1 = sqrt(Number1);         sprintf(num,"%g",Number1);	 InputOutput->SetWindowText(num);    }    //--------------------------------------------------------    void MemoryKey()    {         char num[20] = "";         if(PasteMemory)	 {              sprintf(num,"%g",Memory);	      InputOutput->SetWindowText(num);	 }	 else	 {             InputOutput->GetWindowText(num, 10);             Memory = atof(num);	     PasteMemory = true;	 }    }    //--------------------------------------------------------    void MemoryClear()     { 	 PasteMemory = false; 	 Memory = 0.0;     }    //--------------------------------------------------------    void CelciusToFarenheit()    {         char num[20];             InputOutput->GetWindowText(num, 15);	 double Farenheit = atof(num);	 Farenheit = (Farenheit * 9 / 5) + 32;         sprintf(num,"%g",Farenheit);             InputOutput->SetWindowText(num);    }//-------------------------------------------------------------    void FarenheitToCelcius()    {         char num[20];             InputOutput->GetWindowText(num, 15);	 double Celcius = atof(num);	 Celcius = ((Celcius - 32) * 5) / 9;         sprintf(num,"%g",Celcius);              InputOutput->SetWindowText(num);    }//-------------------------------------------------------------    void KilometersToMiles()    { 	 char num[20] = "";	 InputOutput->GetWindowText(num,10);	 double x = atof(num);	 x = x / 1.609347;	 sprintf(num,"%g",x);	 InputOutput->SetWindowText(num);    }//-------------------------------------------------------------    void MilesToKilometers()    { 	 char num[20] = "";	 InputOutput->GetWindowText(num,10);	 double x = x * 1.609347; 	 sprintf(num,"%g",x);	 InputOutput->SetWindowText(num);    }//-------------------------------------------------------------DECLARE_MESSAGE_MAP()}; //closing class specification//----------------------------------------------------------BEGIN_MESSAGE_MAP(Calculator, CDialog)                 ON_WM_CTLCOLOR()           //Listen for and map COLOR events      ON_COMMAND(IDC_Num0, key0)      ON_COMMAND(IDC_Num1, key1)      ON_COMMAND(IDC_Num2, key2)      ON_COMMAND(IDC_Num3, key3)      ON_COMMAND(IDC_Num4, key4)      ON_COMMAND(IDC_Num5, key5)      ON_COMMAND(IDC_Num6, key6)      ON_COMMAND(IDC_Num7, key7)      ON_COMMAND(IDC_Num8, key8)      ON_COMMAND(IDC_Num9, key9)      ON_COMMAND(IDC_Num7, key7)      ON_COMMAND(IDC_Num8, key8)      ON_COMMAND(IDC_Num9, key9)      ON_COMMAND(IDC_NumPeriod, keyPeriod)      ON_COMMAND(IDC_NumEquals, keyEquals)      ON_COMMAND(IDC_NumAdd, keyAdd)      ON_COMMAND(IDC_NumSubtract, keySubtract)      ON_COMMAND(IDC_NumMultiply, keyMultiply)      ON_COMMAND(IDC_NumDivide, keyDivide)      ON_COMMAND(IDC_NumCube, keyCube)      ON_COMMAND(IDC_NumSquare, keySquare)      ON_COMMAND(IDC_NumSquareRoot, keySquareRoot)      ON_COMMAND(IDC_POWER,keyPower)      ON_COMMAND(IDC_NumMemory, keyMemory)      ON_COMMAND(IDC_MemoryErase, EraseMemory)      ON_COMMAND(IDC_NumCE, keyCE)      ON_COMMAND(IDC_Farenheit, keyFarenheit)      ON_COMMAND(IDC_Celcius, keyCelcius)      ON_COMMAND(IDC_Miles, keyMiles)      ON_COMMAND(IDC_Kilometers, keyKilometers)      ON_COMMAND(IDC_QUIT, Quit)      ON_COMMAND(ID_FILE_EXIT,Quit)      ON_COMMAND(ID_OTHER_HELP,Help)      ON_COMMAND(ID_OTHER_ABOUT,About)END_MESSAGE_MAP()//----------------------------------------------------------//----------------------------------------------------------class Calc : public CWinApp{public:Calc() {  }virtual BOOL InitInstance(){        CWinApp::InitInstance();        Calculator x;        m_pMainWnd = &x;        INT_PTR nResponse = x.DoModal();        return FALSE;} //close function   DECLARE_MESSAGE_MAP()       };//----------------------------------------------------------BEGIN_MESSAGE_MAP(Calc, CWinApp)END_MESSAGE_MAP()//----------------------------------------------------------Calc SuperFun;/*sprintf() builds and formats a string from a number you pass into it. Arguments are:------------------------------------------------------------------------------------c = Character a d  = or i Signed decimal integer 392 e = Scientific notation (mantise/exponent) using e character 3.9265e+2 E = Scientific notation (mantise/exponent) using E character 3.9265E+2 f = Decimal floating point 392.65 g = Use the shorter of %e or %f 392.65 G = Use the shorter of %E or %f 392.65 o = Signed octal 610 s = String of characters sample u = Unsigned decimal integer 7235 x = Unsigned hexadecimal integer 7fa X = Unsigned hexadecimal integer (capital letters) 7FA p = Pointer address B800:0000 n = Nothing printed. The argument must be a pointer to a signed int,    where the number of characters written so far is stored.  % = A % followed by another % character will write % to the string. EXAMPLE:  char buffer [50];  int n, a=5, b=3;  n=sprintf (buffer, "%d plus %d is %d", a, b, a+b);  printf ("[%s] is a %d char long stringn",buffer,n);------------------------------------------------------------------------------------Mouse and Keyboard Message Macros and Their Handlers:      //ON_WM_LBUTTONDOWN( )    //Listen for LEFT mouse button click	  //ON_WM_KEYDOWN()         //Keyboard Events	  //ON_WM_KEYUP()           //Keyboard Events      //ON_WM_CHAR()            //Keyboard Events   afx_msg void OnKeyDown(UINT uChar, UINT uRepCnt, UINT uFlg)   {           //char x[1];		   //x[0] = (char)uChar;		   //MessageBox(x);           MessageBox("MADE IT to OnChar()!");              switch(uChar)            {                 case 'r': Equals(); break;                 case 'b': Erase(); break;				 case '+' : Calculate('a'); break;                 case '-': Calculate('s'); break;                 case '*': Calculate('m'); break;				 case '/' : Calculate('d'); break;                 case '=' : Equals(); break;				 case 'a' : MessageBox("Heard an A!"); break;				 default : break;		   }   }   afx_msg void buttonPushed()   {           MessageBox("MADE IT HERE in buttonPushed()!");   }   afx_msg void OnLButtonDown( UINT, CPoint )   {	       MessageBox("Mouse Clicked!", "Event Triggered");   }ASCII Values for PreTranslate Messages//-----------------------------------------------------Decimal      Character     Description 0               NUL  1               SOH         start of header 2               STX         start of text 3               ETX         end of text 4               EOT         end of transmission 5               ENQ         enquiry 6               ACK         acknowledge 7               BEL         bell 8               BS          backspace 9               HT          horizontal tab 10              LF          line feed 11              VT          vertical tab 12              FF          form feed 13              CR          carriage return 14              SO          shift out 15              SI          shift in 16              DLE         data link escape 17              DC1         no assignment, but usually XON 18              DC2  19              DC3         no assignment, but usually XOFF 20              DC4  21              NAK         negative acknowledge 22              SYN         synchronous idle 23              ETB         end of transmission block 24              CAN         cancel 25              EM          end of medium 26              SUB         substitute 27              ESC         escape 28              FS          file seperator 29              GS          group seperator 30              RS          record seperator 31              US          unit seperator 32              SPC         space 33  !  34  "  35  #  36  $  37  %  38  &  39  '  40  (  41  )  42  *  43  +  44  ,  45  -  46  .  47  /  48  0  49  1  50  2  51  3  52  4  53  5  54  6  55  7  56  8  57  9  58  :  59  ;  60  <  61  =  62  >  63  ?  64  @  65  A  66  B  67  C  68  D  69  E  70  F  71  G  72  H  73  I  74  J  75  K  76  L  77  M  78  N  79  O  80  P  81  Q  82  R  83  S  84  T  85  U  86  V  87  W  88  X  89  Y  90  Z  91  [  92    93  ]  94  ^  95  _  96  `  97   a  98   b  99   c  100  d  101  e  102  f  103  g  104  h  105  i  106  j  107  k  108  l  109  m  110  n  111  o  112  p  113  q  114  r  115  s  116  t  117  u  118  v  119  w  120  x  121  y  122  z  123  {  124  |  125  }  126  ~  127  DEL delete //-----------------------------------------------------------------------------
 
 
eто я грешката
#if _WIN32_WINNT < 0x0400

Сподели този отговор


Линк към този отговор
Сподели в други сайтове

Как да оправя тая грешка?1>c:program filesmicrosoft visual studio 10.0vcatlmfcincludeafxv_w32.h(35): fatal error C1017: invalid integer constant expressionето кода на този файл той е някъв вграден пък ми дава грешка

Бе, не казвам, че Майкрософт нямат бъгове, или че компилаторът им няма кусури, ама моля ти се...Грешката е в твоя код, просто тука някъде е избила. Пейстни него, а не сто хиляди реда хедър файл...

Сподели този отговор


Линк към този отговор
Сподели в други сайтове

еми, нали постнах cpp-то, кое друго имам rc фойл и хедърен файл и cpp тва е 

Сподели този отговор


Линк към този отговор
Сподели в други сайтове

еми, нали постнах cpp-то, кое друго имам rc фойл и хедърен файл и cpp тва е 

Ми не го видях, защото си го писал накрая.

Извинявам се, проблемът може да се разглежда и като майкрософтски... Ти що ползваш неподържан Уиндоус? ;)

http://msdn.microsoft.com/en-us/library/6sehtctf.aspx

И забележи това:

Values are not guaranteed to work if you include internal MFC headers in your application. For example, Windows 2000 is not supported in afximpl.h.

Сподели този отговор


Линк към този отговор
Сподели в други сайтове

×
×
  • Добави ново...