Category : dll

I’m trying to define my own opencv module and build it out of the sources folder, and I meet some link error while building on window’s msvc: link error log on visual studio here is my file structure(on any arbitrary path): file structure I try to build this extra module(matlib.cpp) with opencv source in: F:/opencv-master ..

Read more

I use Visual Studio 2019. I writing two test project: exe and dll. My dll include noexported class and exported function: #pragma once #include <vector> #ifdef DLL_EXPORT #define DLL __declspec(dllexport) #else #define DLL __declspec(dllimport) #endif struct dll { public: std::vector<int> a; std::vector<int> b; std::vector<int> c; int d; }; extern "C" DLL dll * _data1(); And ..

Read more

I have written a Delphi dll which gets file size from the download url. Here are my Delphi codes: library cagatay_length_api; uses System.SysUtils, System.Classes, IdHttp; function GetFileSize(pwchUrl: PWideChar): PWideChar; stdcall; var intFileSize: Int64; pwchFileSize: PWideChar; strFileSize: String; tihHttp: TIdHTTP; begin tihHttp.Create(nil); tihHttp.Head(WideCharToString(pwchUrl)); intFileSize := tihHttp.Response.ContentLength; strFileSize := IntToStr(intFileSize); pwchFileSize := PWideChar(strFileSize); Result := pwchFileSize; end; ..

Read more

I am trying to call this function in a c++ dll: public static void AskTrade(string traderPartnerId) What I do to call this is: auto Trade = reinterpret_cast<void(*)(std::string)>(BaseAddress + 0xDE54B0); Trade(D39DSAR2); It is inside of a special void that makes the calling work. Because when I call functions without any variables or functions with int as ..

Read more