找回密码
 加入
搜索
查看: 4288|回复: 4

[GUI管理] 用到GDIPlusEx.au3这个库,老提示我$xxx被定义为一个常量[已解决]

[复制链接]
发表于 2013-11-14 18:15:28 | 显示全部楼层 |阅读模式
本帖最后由 wszhov 于 2013-11-15 06:15 编辑

全部不能用了,我去,这个急死了,不知道怎么版才好.按理说应该没问题啊,我是win7 64位的
,3.3.9.21这个版本,难道是版本问题???谁能重新给一份GDIPlusEx.au3这个文件了?
D:\autoit3\UserInclude\GDIPlusEx.au3"(107,151) : error: $tagGDIPCOLORMATRIX 上一次定义为一个 'Const' 变量..
Global Const $tagGDIPCOLORMATRIX = "float m[25];"        ; [5][5] matrix; [0][0] - red, [1][1] - green, [2][2] - blue; [3][3] - alpha, [4][4] - ~should~ be 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(110,33) : error: $GDIP_RLUM 上一次定义为一个 'Const' 变量..
Global Const $GDIP_RLUM = 0.3086
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(111,33) : error: $GDIP_GLUM 上一次定义为一个 'Const' 变量..
Global Const $GDIP_GLUM = 0.6094
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(112,33) : error: $GDIP_BLUM 上一次定义为一个 'Const' 变量..
Global Const $GDIP_BLUM = 0.0820
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2056,63) : error: _GDIPlus_BitmapCreateFromResource() 已经被定义.
Func _GDIPlus_BitmapCreateFromResource($hInst, $vResourceName)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2103,110) : error: _GDIPlus_BitmapCreateFromScan0() 已经被定义.
Func _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight, $iStride = 0, $iPixelFormat = 0x0026200A, $pScan0 = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2125,47) : error: _GDIPlus_BitmapCreateFromStream() 已经被定义.
Func _GDIPlus_BitmapCreateFromStream($pStream)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2171,49) : error: _GDIPlus_BitmapGetPixel() 已经被定义.
Func _GDIPlus_BitmapGetPixel($hBitmap, $iX, $iY)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2196,57) : error: _GDIPlus_BitmapSetPixel() 已经被定义.
Func _GDIPlus_BitmapSetPixel($hBitmap, $iX, $iY, $iARGB)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2318,34) : error: _GDIPlus_ColorMatrixCreate() 已经被定义.
Func _GDIPlus_ColorMatrixCreate()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2334,43) : error: _GDIPlus_ColorMatrixCreateGrayScale() 已经被定义.
Func _GDIPlus_ColorMatrixCreateGrayScale()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2362,42) : error: _GDIPlus_ColorMatrixCreateNegative() 已经被定义.
Func _GDIPlus_ColorMatrixCreateNegative()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2386,49) : error: _GDIPlus_ColorMatrixCreateSaturation() 已经被定义.
Func _GDIPlus_ColorMatrixCreateSaturation($nSat)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2425,74) : error: _GDIPlus_ColorMatrixCreateScale() 已经被定义.
Func _GDIPlus_ColorMatrixCreateScale($nRed, $nGreen, $nBlue, $nAlpha = 1)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2453,78) : error: _GDIPlus_ColorMatrixCreateTranslate() 已经被定义.
Func _GDIPlus_ColorMatrixCreateTranslate($nRed, $nGreen, $nBlue, $nAlpha = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(2903,92) : error: _GDIPlus_CustomLineCapCreate() 已经被定义.
Func _GDIPlus_CustomLineCapCreate($hPathFill, $hPathStroke, $iLineCap = 0, $nBaseInset = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(3409,48) : error: _GDIPlus_FontGetHeight() 已经被定义.
Func _GDIPlus_FontGetHeight($hFont, $hGraphics)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(3783,65) : error: _GDIPlus_FontFamilyGetCellAscent() 已经被定义.
Func _GDIPlus_FontFamilyGetCellAscent($hFontFamily, $iStyle = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(3811,66) : error: _GDIPlus_FontFamilyGetCellDescent() 已经被定义.
Func _GDIPlus_FontFamilyGetCellDescent($hFontFamily, $iStyle = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(3839,63) : error: _GDIPlus_FontFamilyGetEmHeight() 已经被定义.
Func _GDIPlus_FontFamilyGetEmHeight($hFontFamily, $iStyle = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(3897,66) : error: _GDIPlus_FontFamilyGetLineSpacing() 已经被定义.
Func _GDIPlus_FontFamilyGetLineSpacing($hFontFamily, $iStyle = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4195,83) : error: _GDIPlus_GraphicsDrawClosedCurve2() 已经被定义.
Func _GDIPlus_GraphicsDrawClosedCurve2($hGraphics, $aPoints, $nTension, $hPen = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4245,77) : error: _GDIPlus_GraphicsDrawCurve2() 已经被定义.
Func _GDIPlus_GraphicsDrawCurve2($hGraphics, $aPoints, $nTension, $hPen = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4393,181) : error: _GDIPlus_GraphicsDrawImagePointsRect() 已经被定义.
Func _GDIPlus_GraphicsDrawImagePointsRect($hGraphics, $hImage, $nULX, $nULY, $nURX, $nURY, $nLLX, $nLLY, $nSrcX, $nSrcY, $nSrcWidth, $nSrcHeight, $iUnit = 2, $hImageAttributes = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4520,62) : error: _GDIPlus_GraphicsDrawPath() 已经被定义.
Func _GDIPlus_GraphicsDrawPath($hGraphics, $hPath, $hPen = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4644,101) : error: _GDIPlus_GraphicsFillClosedCurve2() 已经被定义.
Func _GDIPlus_GraphicsFillClosedCurve2($hGraphics, $aPoints, $nTension, $hBrush = 0, $iFillMode = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4685,64) : error: _GDIPlus_GraphicsFillPath() 已经被定义.
Func _GDIPlus_GraphicsFillPath($hGraphics, $hPath, $hBrush = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4820,68) : error: _GDIPlus_GraphicsFillRegion() 已经被定义.
Func _GDIPlus_GraphicsFillRegion($hGraphics, $hRegion, $hBrush = 0)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4930,53) : error: _GDIPlus_GraphicsGetCompositingMode() 已经被定义.
Func _GDIPlus_GraphicsGetCompositingMode($hGraphics)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"D:\autoit3\UserInclude\GDIPlusEx.au3"(4957,56) : error: _GDIPlus_GraphicsGetCompositingQuality() 已经被定义.
Func _GDIPlus_GraphicsGetCompositingQuality($hGraphics)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
发表于 2013-11-15 00:55:14 | 显示全部楼层
所谓常量就是一旦被声明赋值(声明时必须赋值),就无法在后面的代码中做任何修改该变量。
你看看错误内容,很明显一些常量和函数在一个文件中已经声明并定义,而另外一个文件还同样声明了一次,所以才会报错。自己找找#include中包含的头文件,是不是有同样的常量定义和函数定义。
发表于 2013-11-15 01:44:06 | 显示全部楼层
不要用GDIPlusEx.au3
最新版的话  就用 GDIPlus.au3 就行了
 楼主| 发表于 2013-11-15 06:13:42 | 显示全部楼层
回复 2# nmgwddj


    呵呵,自己解决了,不能上网改标题了
 楼主| 发表于 2013-11-15 06:14:32 | 显示全部楼层
回复 3# Ycxw2008


    嗯,我在向你看齐了,嘿嘿
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-17 09:50 , Processed in 0.106125 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表