syntax error : identifier Count

c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplustypes.h(744) : error C2061: syntax error : identifier 'Count'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplustypes.h(744) : error C2146: syntax error : missing ';' before identifier 'BYTE'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusheaders.h(196) : error C2061: syntax error : identifier '__out_ecount'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusflat.h(2347) : error C2061: syntax error : identifier '__out_bcount'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusflat.h(2355) : error C2061: syntax error : identifier '__out_bcount'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusflat.h(2388) : error C2061: syntax error : identifier '__out_ecount'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(123) : error C2065: '__out_ecount' : undeclared identifier
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(123) : error C2146: syntax error : missing ')' before identifier 'LPWSTR'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(123) : error C2433: 'GetFamilyName' : 'inline' not permitted on data declarations
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(123) : error C2350: 'FontFamily::GetFamilyName' is not a static member
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(123) : error C2440: 'initializing' : cannot convert from 'int' to 'enum Gdiplus::Status'
        Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or function-style cast)
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(125) : error C2059: syntax error : ')'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(126) : error C2143: syntax error : missing ';' before '{'
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusfontfamily.h(126) : error C2447: missing function header (old-style formal list?)
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusimagecodec.h(37) : error C2660: 'GdipGetImageDecoders' : function does not take 3 parameters
c:\program files (x86)\microsoft sdks\windows\v7.0a\include\gdiplusimagecodec.h(56) : error C2660: 'GdipGetImageEncoders' : function does not take 3 parameters

 

GDI头文件版本不对,这个错误是版本太高了,VC6不支持。替换成VC6支持的版本即可。

我正在编辑单片机代码,遇到了TYMB0324.c(14): error C141: syntax error near 'unsigned' TYMB0324.c(14): error C202: 'i': undefined identifier TYMB0324.c(14): error C202: 'i': undefined identifier TYMB0324.c(14): error C202: 'i': undefined identifier TYMB0324.c(14): error C141: syntax error near ')' 错误,请帮我改正,我的原代码如下:#include <reg51.h> #define uchar unsigned char #define uint unsigned int uchar code seg[] = {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90}; sbit RANK_LED = P0^0; uchar count = 0; uint second = 0; bit isRunning = 0; uchar savedCount = 0; uint records[9]; uchar showIndex = 0; void delay(uint ms) { while(ms--) { for(uchar i=0; i<120; i++); } } void display() { P1 = seg[second / 10]; P2 = seg[second % 10]; if(savedCount > 0) { RANK_LED = ~(1 << (savedCount-1)); } else { RANK_LED = 0xFF; } } void int0_isr() interrupt 0 { EX0 = 0; delay(10); if(!isRunning) { isRunning = 1; TR0 = 1; } else if(savedCount < 9) { records[savedCount++] = second; } EX0 = 1; } void int1_isr() interrupt 2 { EX1 = 0; delay(10); if(isRunning) { isRunning = 0; TR0 = 0; showIndex = 0; } else { showIndex = (showIndex + 1) % savedCount; P1 = seg[records[showIndex]/10]; P2 = seg[records[showIndex]%10]; } EX1 = 1; } void timer0_isr() interrupt 1 { TH0 = 0xD8; TL0 = 0xF0; if(++count >= 100) { count = 0; if(isRunning && second < 99) second++; } display(); } void main() { P0 = P1 = P2 = 0xFF; TMOD = 0x01; TH0 = 0xD8; TL0 = 0xF0; ET0 = 1; IT0 = IT1 = 1; // ???? EX0 = EX1 = 1; EA = 1; while(1); }
最新发布
03-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值