[C++]Проблема при импорта DLL [требует правки]

251
28 февраля 2017, 18:07

Не могу испольнить этот код на C++ .

#include <tchar.h>
#include <windows.h>
#include <iostream>
#include <conio.h>
using namespace std;
#import "C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll"
int main(){}

Выводить ошибку:

||=== Build: Debug in ANPR (compiler: GNU GCC Compiler) ===|
C:\ANPR\main.cpp|10|warning: #import is a deprecated GCC extension [-Wdeprecated]|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\220' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\3' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\4' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\377' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\377' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\270' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '@' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\200' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\16' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\37' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\272' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\16' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\264' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\315' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\270' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\1' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|1|error: stray '\315' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\1' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\3' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\366' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\366' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\330' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\340' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\2' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\1' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\10' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\16' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\6' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\256' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '@' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '@' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\2' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\4' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\4' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\200' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\2' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\25' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\3' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '@' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\205' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\20' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\20' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\20' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\20' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\20' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '@' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\3' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '`' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\210' in program|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|warning: null character(s) ignored|
C:\CppProject\APNR\ANPR\ETC\CAS_CI_BI_COM_server\CAS_CI_BI_COM.dll|3|error: stray '\34' in program|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build failed: 50 error(s), 39 warning(s) (0 minute(s), 2 second(s)) ===|

и открывается другое окно с заголовкой "CAS_CI_BI_COM.dll" и с контентом:

MZђ

Мой данные ПК:

  1. Compiler: GNU C++ Compiler
  2. OS: Windows 10 x64
  3. IDE: CodeBlocks IDE

Ссылка к библиотека: ссылка

READ ALSO
Инвертирование числа

Инвертирование числа

Программа должна инвертировать число, но почему-то этого не происходит

237
Visual Studio не находит определение метода [требует правки]

Visual Studio не находит определение метода [требует правки]

Пишу на C++В заголовочном файле делаю объявления (класса), в

289
Чтение блоков данных из потока

Чтение блоков данных из потока

Если во входном потоке input_stream встретился символ, не являющийся числом (, или ;), то чтение прекратитсяКак после этого можно продолжить чтение...

301
На что способен explicit?

На что способен explicit?

Вроде бы как в новых стандартах можно использовать ключевое слово explicit не только к конструкторам, чтобы предотвратить неявное приведение,...

255