Что нового

Ошибка при совместном подключении библиотек WinAPIEx.au3 и Resources.au3

StarEdik

Новичок
Сообщения
365
Репутация
4
Версия AutoIt: 3.3.6.1

Описание:
Вот код
Код:
#AutoIt3Wrapper_Res_File_Add=C:\Files_for_Resources\File_Name_Path.exe, rt_rcdata, FILE1
#Include <WinAPIEx.au3>
#include <Resources.au3>

А вот что выдается при нажатие в редакторе на F7
C:\Program Files\AutoIt3\Include\Resources.au3(9,28) : ERROR: $RT_CURSOR previously declared as a 'Const'
Global Const $RT_CURSOR = 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(10,28) : ERROR: $RT_BITMAP previously declared as a 'Const'
Global Const $RT_BITMAP = 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(11,26) : ERROR: $RT_ICON previously declared as a 'Const'
Global Const $RT_ICON = 3
~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(12,26) : ERROR: $RT_MENU previously declared as a 'Const'
Global Const $RT_MENU = 4
~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(13,28) : ERROR: $RT_DIALOG previously declared as a 'Const'
Global Const $RT_DIALOG = 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(14,28) : ERROR: $RT_STRING previously declared as a 'Const'
Global Const $RT_STRING = 6
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(15,29) : ERROR: $RT_FONTDIR previously declared as a 'Const'
Global Const $RT_FONTDIR = 7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(16,26) : ERROR: $RT_FONT previously declared as a 'Const'
Global Const $RT_FONT = 8
~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(17,33) : ERROR: $RT_ACCELERATOR previously declared as a 'Const'
Global Const $RT_ACCELERATOR = 9
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(18,29) : ERROR: $RT_RCDATA previously declared as a 'Const'
Global Const $RT_RCDATA = 10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(19,35) : ERROR: $RT_MESSAGETABLE previously declared as a 'Const'
Global Const $RT_MESSAGETABLE = 11
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(20,35) : ERROR: $RT_GROUP_CURSOR previously declared as a 'Const'
Global Const $RT_GROUP_CURSOR = 12
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(21,33) : ERROR: $RT_GROUP_ICON previously declared as a 'Const'
Global Const $RT_GROUP_ICON = 14
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(22,30) : ERROR: $RT_VERSION previously declared as a 'Const'
Global Const $RT_VERSION = 16
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(23,33) : ERROR: $RT_DLGINCLUDE previously declared as a 'Const'
Global Const $RT_DLGINCLUDE = 17
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(24,31) : ERROR: $RT_PLUGPLAY previously declared as a 'Const'
Global Const $RT_PLUGPLAY = 19
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(25,26) : ERROR: $RT_V:rofl: previously declared as a 'Const'
Global Const $RT_V:rofl: = 20
~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(26,32) : ERROR: $RT_ANICURSOR previously declared as a 'Const'
Global Const $RT_ANICURSOR = 21
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(27,30) : ERROR: $RT_ANIICON previously declared as a 'Const'
Global Const $RT_ANIICON = 22
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(28,27) : ERROR: $RT_HTML previously declared as a 'Const'
Global Const $RT_HTML = 23
~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(29,31) : ERROR: $RT_MANIFEST previously declared as a 'Const'
Global Const $RT_MANIFEST = 24
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(31,40) : ERROR: $SND_RESOURCE previously declared as a 'Const'
Global Const $SND_RESOURCE = 0x00040004
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(32,29) : ERROR: $SND_SYNC previously declared as a 'Const'
Global Const $SND_SYNC = 0x0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(33,30) : ERROR: $SND_ASYNC previously declared as a 'Const'
Global Const $SND_ASYNC = 0x1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(34,31) : ERROR: $SND_MEMORY previously declared as a 'Const'
Global Const $SND_MEMORY = 0x4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(35,29) : ERROR: $SND_LOOP previously declared as a 'Const'
Global Const $SND_LOOP = 0x8
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(36,32) : ERROR: $SND_NOSTOP previously declared as a 'Const'
Global Const $SND_NOSTOP = 0x10
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(37,34) : ERROR: $SND_NOWAIT previously declared as a 'Const'
Global Const $SND_NOWAIT = 0x2000
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Program Files\AutoIt3\Include\Resources.au3(38,31) : ERROR: $SND_PURGE previously declared as a 'Const'
Global Const $SND_PURGE = 0x40
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Как мне быть.

Примечания:
 

madmasles

Модератор
Глобальный модератор
Сообщения
7 790
Репутация
2 319
StarEdik,
ИМХО, место темы в AutoIt для новичков.
Переношу.



Добавлено:
Сообщение автоматически объединено:

StarEdik,
*Click*

OffTopic:
ИМХО, было очень хорошо, если бы Yashied и Zedna договорились о совместном использовании APIConstants.au3 .
 
Автор
StarEdik

StarEdik

Новичок
Сообщения
365
Репутация
4
madmasles
Скачал обновлённый файл resources.au3.Пока нет ошибок. :smile:
Спасибо тебе благородный и выручающий madmasles
 
Верх