Не регистрируется trans2quik.dll

Страницы: 1
RSS
Не регистрируется trans2quik.dll
 
Добрый день!
Пытаюсь зарегистрировать библиотеку trans2quik.dll (версия 1.3) с помощью regsvr32. Windows и excel 64-битные. Выдается ошибка:

"Модуль "trans2quik.dll" загружен, но точка входа DllRegisterServer не найдена. Проверьте, что "trans2quik.dll" является правильным файлом DLL или OCX и повторите попытку"

Подскажите, пожалуйста, как это исправить?
 
Здравствуйте,
Библиотеку не надо регистрировать. просто положите ее в любую папку указанную в переменной PATH или в папку с Вашей программой
 
Разложил trans2quik.dll во все возможные папки, пытаюсь сделать connect/disconnect c помощью стандартных функций:

Public Declare PtrSafe Function TRANS2QUIK_CONNECT Lib "C:\T2Q\trans2quik.dll" Alias "_TRANS2QUIK_CONNECT@16" (ByVal lpstConnectionParamsString As String, ByRef pnExtendedErrorCode As Long, ByVal lpstrErrorMessage As String, ByVal dwErrorMessageSize As Long) As Long

Public Declare PtrSafe Function TRANS2QUIK_DISCONNECT Lib "C:\T2Q\trans2quik.dll" Alias "_TRANS2QUIK_DISCONNECT@12" (ByRef pnExtendedErrorCode As Long, ByVal lpstrErrorMessage As String, ByVal dwErrorMessageSize As Long) As Long

Public Sub Connect()
On Error Resume Next
   PathToInfo = "C:\QUIK_OpenBroker_g\info.exe"
   FunctionResult = TRANS2QUIK_CONNECT(PathToInfo, pnExtendedErrorCode, lpstrErrorMessage, dwErrorMessageSize)
   FunctionResultString = Trans2QuikResultToStr(FunctionResult)
   MsgBox "F: " & vbCrLf & _
           "FunctionResult = " & FunctionResult & vbCrLf & _
           "FunctionResultString = " & FunctionResultString & vbCrLf & _
           "pnExtendedErrorCode = " & pnExtendedErrorCode & vbCrLf & _
           "lpstrErrorMessage = " & lpstrErrorMessage
   g_nOrdersCount = g_nTradesCount = 1
End Sub


Public Sub DisConnect()
   FunctionResult = TRANS2QUIK_DISCONNECT(pnExtendedErrorCode, lpstrErrorMessage, dwErrorMessageSize)
   FunctionResultString = Trans2QuikResultToStr(FunctionResult)
   MsgBox "F: " & vbCrLf & _
           "FunctionResult = " & FunctionResult & vbCrLf & _
           "FunctionResultString = " & FunctionResultString & vbCrLf & _
           "pnExtendedErrorCode = " & pnExtendedErrorCode & vbCrLf & _
           "lpstrErrorMessage = " & lpstrErrorMessage
End Sub

При этом когда запускаю connect, выдается сообщение:

[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAADQCAYAAAC9WlyjAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABNbSURBVHhe7d2/ixtJn8fx71x40YXPRusF6bxePLDgSPKBeS44kB4Hg4MJNpgzDiQuWDwTDJzBgzFjeA4MJ5knGgWLHwcbTLA4mJXggscsnGcSGxbG3Ow8GnjW0YZ3/4Guqrq6Vd3qlroljaTyvF8gRv27qzX9UVVLXVr73f7ZQADAAyawfnv8pR0EgNX02bNf5O/scwBYeQQWAG8QWAC8QWAB8AaBBcAbBBYAbxBYALxBYAHwBoEF4FKsra3J+/fv7dAoPU3PU0TOwOpJU614rdmzw3EXL26rDd+WFxdmQG6Hz5el1zQHYu32Cxm/G7ZcziOjiFPQ617ycQCW6N27d1K5/U+poaXH6Wl6niIK1LCqUv3wLOUE7Mnz7WP7XCk9lLeDt/KwZIcXTgVFvSON7kAGbx9KaWJwVKXdV/MOgsdBzY4GMJNbt27Jydv/HgmtMKz0ND1PEYWahDdvihz+mDjze6+l02hIww6uhqp8VbZPASxNMrRmCSutUGB9tftYbm4/V3WW0IW8ePZB2rsbdlhL1mjUPLeTTa5gnmZTNyWbwfpMUzKtaZa2vB6dNr9eb106cizb5TW5/eJFbDirSRsXbO92WADdvIyalnn2xZYHgOGG1ixhpRW86F6TjUZHXkcn6o9yKJvyh8zmnz7By3K42U9pch3Lh6/+rMYdqLWqoClvy03djNPz9dvyoW5Dr/dctm92E8tnzV+Tg0FX1faCZt7bhw9jw4PU9p4NsyhsSvLwbdcGs9pOXaRrmpZZZdH7oo5C2Kz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WWb6wT+PeS/9v9ql6/vSpqol9+0DVv1YDNSxggVaihqW970uUSzG3pBwl2S158vKJnN93L74vFzUsYIFWooZlmn7fy3+NXKzSTcXr8oVbnfrigfzw8ro8vfNo5NrWMlDDAhZoNWpY1+TBt9/I9/fdEHojj+48FXnSlJGrVb//o/z05Fzu3/tOll3RooYFLNBK1LA0FUIfX4rcj76HdV/k5cfMTwKvPfhBXl5/KneWHFqzHD/uJQRy4l7C+dHHj3sJgQUgrGYzy/EjsICC9MmmTzpMZ5bjR2ABBVHDmg01LGCB3BoCf4v/pYYFLJB70vF3+r/T4FNCICd+Nedy8CkhgE8SNSwAXqCGBcArBBYAbxBYALxBYAHwBoEFwBsEFgBvEFgAvEFgAfAGgQXAGwQWAG8QWAC8Ye4ltM8BYIWJ/D9eO5T9hvyPcgAAAABJRU5ErkJggg==[/img]

А при запуске disconnect вообще не находит библиотеку:

[img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAACyCAYAAACZftCwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABMYSURBVHhe7d1PaBzJfgfw3+QPWXLKy+ktOdjLm4nWRoYF+aJxeMZvISDZB+GDDj5oFR9G5GA8MhhisDFGAgcE1hifNAdHq4MPOiw6aGcgsGsUYs3FggUZa7UzD1uHsMfkFAJJ3uRX1VU91T3dPT09U909m+8Hhum/Nd013b/6VelPF369dtIlAAALZID5+eHnahYAYDw+Xf+R/khNAwCMHQIMAFiDAAMA1iDAAIA1CDAAYA0CDABYgwADANYgwACANQgwACAVCgU6OjpSc/3EOrHNMGIGmCatcMGFlaaa9+o8v8IffIWed+QMXdHTWWmuyIooXHlOUYfRXCnQFf+Bin3FeVo5D1GPQWWq+jVeIVUdLckxx6yruESdhl0nwzPqa5zfRx6u0Rx6+/YtzV75m8AgI5aJdWKboYg/FRis0a1QuVsul7u1tlrkEuuoS7y+f10WnOOpNNSsOvbAY2tUutTbUGpUzH3H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+SmbytH/PGSPzJJqh5aQPASYluWiBZVfoFf1z32CLSPun6DMzXfnsNn2zPcUX9gNOwLOXmwwmrA4T+UgfTvUkd5tkIiIyjwN6PKOWSzqDOaDSCzPoH/FrhuOdEe4iy0kfAkxK8tECn6fbd27Rq2UzaHD//eoToscrnpZRuvaUDh6f0nIOfgSbnwxG1+E58gxv8I39MlbQOaL971VtmuM5H9p0pLtecrmYCGJ2ZWfoxrNvaJuWe2M5sctJBwJMSnLTAnPQ4K45LetBQJl2n4X+pOj8bb6Ap57Q1YyDTG7qTxB1eCC6kLoO+XWP6Hd9ETrIDE217zn7cGCf0l2eayv0mLieZVltmvJkHrqLdJWeTG17u0Ps2lPnVw3kAHBkOenD3yJZhr9FGh9Rf5P9t0jipz0vqHRg/prA5MHfIuUQgstoUH+TCQEmJeLmEDcJJIP6m0wIMClBCzyaX0b9XaOnZ5PdPRoWAkxKzBYY78O/I4OZTAgwKTFvErwnf4fJgp8iWYZ/+m0H/qNddob5KRICjGUIMHbgsSXZQoABgEzh92AAwCoEGACwBgEGAKxBgAEAaxBgAMAaBBgAsAYBBgCsQYABAGsQYADAGgQYALAGAQYArJF/i6SmAQDGiOj/AH1QMrFYAcXgAAAAAElFTkSuQmCC[/img]

Помогите, пожалуйста, разобраться!
 
Картинки не вставились.

Сообщение после коннект:

F:
FunctionResult =
FunctionResultString = TRANS2QUIK_SUCCESS
pnExtendedErrorCode =
IpstrErrorMessage =

Сообщение после дисконнект:

Run-time error '453':
Specified DLL function not found
 
Цитата
dmitry dorjiev написал:
PathToInfo = "C:\QUIK_OpenBroker_g\info.exe"

указывать нужно папку а не exe файл
И в самом терминале проверьте включена ли обработка внешних транзакций.

И, если что тут есть пример на VB
https://arqatech.com/upload/iblock/006/Trans2QuikAPI_1.2.rar
 
Я пробовал и так и так. Примеры в эксель не работают под х64. Поставил в итоге 32-битный - все заработало. Спасибо!
 
Подскажите, в чем ошибка?
System.DllNotFoundException
 HResult=0x80131524
 Сообщение = Unable to load DLL 'TRANS2QUIK.DLL' or one of its dependencies: Не найден указанный модуль. (0x8007007E)
 Источник = ConsoleApp1
 Трассировка стека:
  at ConsoleApp1.Program.connect(String lpcstrConnectionParamsString, Int32& pnExtendedErrorCode, Byte[] lpstrErrorMessage, UInt32 dwErrorMessageSize)
  at ConsoleApp1.Program.Main(String[] args) in C:\Users\mikhasi\source\repos\ConsoleApp1\ConsoleApp1\Program.cs:line 28
Код
 class Program
    {
        public const string DLL_NAME = "TRANS2QUIK.DLL";
        const string PATH_2_QUIK = @"C:\Users\mikhasi\Documents\Open_Broker_QUIK";

        [DllImport(DLL_NAME, EntryPoint = "TRANS2QUIK_CONNECT",
        CallingConvention = CallingConvention.StdCall)]
        static extern Int32 connect(
        string lpcstrConnectionParamsString,
        ref Int32 pnExtendedErrorCode,
        byte[] lpstrErrorMessage,
        UInt32 dwErrorMessageSize);


        static void Main(string[] args)
        {
            Byte[] EMsg = new Byte[50];
            UInt32 EMsgSz = 50;
            Int32 ExtEC = 0, rez = -1;

            Console.WriteLine("Hello World!");

            connect(PATH_2_QUIK, ref ExtEC, EMsg, EMsgSz);



        }
    }
 
Владимир, добрый день!

Уточните, пожалуйста, какая версия API используется?
 
Цитата
Roman Azarov написал:
Владимир, добрый день!

Уточните, пожалуйста, какая версия API используется?
Версия 1.3
 
Владимир, добрый день!

Извиняемся за задержку с ответом.
Так как полученная диагностика носит достаточно явный характер - "Не найден указанный модуль", в первую очередь рекомендуем убедиться, что имя файла указано верно и он действительно присутствует в папке с Вашей программой.
В случае, если проблема сохранится, пришлите, пожалуйста, снимок экрана проводника с директорией Вашей программы.
 
Roman Azarov, добрый день!

Скрин приложил.
 
Все-таки dll надо класть в папку Bin\debug и тогда есть подключение, но другая ошибка возникла...буду разбираться.
Страницы: 1
Читают тему
Наверх