dll

How can I build a library as a .dll and not a .lib

孤街浪徒 提交于 2021-01-27 06:32:16
问题 I got this c++ physics library liquidfun Theyve included a visual studio solution for building the library for windows. When I build it it gives me a .lib but I want a .dll so I can use it with Unity3d. Is there a way of changing the build setting of a project in visual studio to get a .dll and not a .lib? EDIT: The very simple fix of just changing it in the project properties actually worked for me! This is probably due to the library itself being really well written. It didnt work when I

Delphi communication with C++ dll (parameters)

僤鯓⒐⒋嵵緔 提交于 2021-01-27 06:09:46
问题 Hi I'm having quite some issues with integrating a DLL inside my Delphi 2007 application. i suspect that I'm doing something wrong with the parameters of the calls. At this moment i have 2 issues, but i think they are related to eachother. 1) First call with the DLL: from the .h file: extern "C" { __declspec(dllexport) HRESULT Startup(char* version); } This call should initialize the DLL and give me the version back of the DLL. HRESULT should be 0, and the version pointer should contain the

Delphi communication with C++ dll (parameters)

荒凉一梦 提交于 2021-01-27 06:08:00
问题 Hi I'm having quite some issues with integrating a DLL inside my Delphi 2007 application. i suspect that I'm doing something wrong with the parameters of the calls. At this moment i have 2 issues, but i think they are related to eachother. 1) First call with the DLL: from the .h file: extern "C" { __declspec(dllexport) HRESULT Startup(char* version); } This call should initialize the DLL and give me the version back of the DLL. HRESULT should be 0, and the version pointer should contain the

Delphi communication with C++ dll (parameters)

不羁岁月 提交于 2021-01-27 06:07:06
问题 Hi I'm having quite some issues with integrating a DLL inside my Delphi 2007 application. i suspect that I'm doing something wrong with the parameters of the calls. At this moment i have 2 issues, but i think they are related to eachother. 1) First call with the DLL: from the .h file: extern "C" { __declspec(dllexport) HRESULT Startup(char* version); } This call should initialize the DLL and give me the version back of the DLL. HRESULT should be 0, and the version pointer should contain the

cout and printf Works On Dll Built In Debug Not Release

落爺英雄遲暮 提交于 2021-01-27 05:56:33
问题 I've built a DLL that gets injected into a console application usually via SetWindowHookEx. Its important for the DLL to output information to the console which I have been doing with std::cout. The DLL was nearing completion until I tried building the DLL in release mode which rendered all cout lines useless. I've verified the the DLL is injecting and is executing by doing a simple null dereference that causes the program to crash in the dllmain function. Same story with std::printf. void

Where do I input DLL dependencies in Visual Studio C++ project?

可紊 提交于 2021-01-27 03:51:04
问题 I am converting some Qt project files (.pro) that run on Linux and Mac into Visual Studio project files (.vcproj) The Qt Visual Studio add-in converted everything fine except the DLL dependencies. Where do I put these in Visual Studio 2008? If I put the DLLs in Configuration Properties > Linker > Input > Additional Dependencies, I get: fatal error LNK1107: invalid or corrupt file: cannot read at 0xABC Where do dynamically-linked dependencies go? 回答1: You might want to check what’s the

VirtualProtect and kernel32.dll - attempt to access invalid address

牧云@^-^@ 提交于 2021-01-27 02:40:26
问题 I'm analyzing various modules loaded by the process. Unfortunately I'm not able to create the kernel32.dll memory snapshot although the function works properly with other modules (e.g. ntddl.dll ). The problem is with the following code: /* Copy code from memory */ if (VirtualProtect((BYTE*)virtualAddress, sizeOfCode, PAGE_EXECUTE_READWRITE, &flags) == 0) { std::cout << "VirtualProtect failed!" << std::endl; std::cout << "Virtual address: " << virtualAddress << std::endl; std::cout << "Size

VirtualProtect and kernel32.dll - attempt to access invalid address

五迷三道 提交于 2021-01-27 02:38:30
问题 I'm analyzing various modules loaded by the process. Unfortunately I'm not able to create the kernel32.dll memory snapshot although the function works properly with other modules (e.g. ntddl.dll ). The problem is with the following code: /* Copy code from memory */ if (VirtualProtect((BYTE*)virtualAddress, sizeOfCode, PAGE_EXECUTE_READWRITE, &flags) == 0) { std::cout << "VirtualProtect failed!" << std::endl; std::cout << "Virtual address: " << virtualAddress << std::endl; std::cout << "Size

Call specific C++ DLL from Fortran

拈花ヽ惹草 提交于 2021-01-24 11:11:42
问题 I received a DLL made in C++, and I'm building a Fortran program to call the C++ DLL. My compiler (gfortran) shows no warnings, but it crashes during runtime with the following description: forrtl: severe (157): Program Exception - access violation Image PC Routine Line Source MainDLL_v10.dll 0B7A6B01 Unknown Unknown Unknown MainDLL_v10.dll 0B7A1BEF Unknown Unknown Unknown ... I guess something is wrong with my call arguments. The C++ DLL includes the following: #include <DllClasses.h> ...

Call specific C++ DLL from Fortran

那年仲夏 提交于 2021-01-24 11:10:31
问题 I received a DLL made in C++, and I'm building a Fortran program to call the C++ DLL. My compiler (gfortran) shows no warnings, but it crashes during runtime with the following description: forrtl: severe (157): Program Exception - access violation Image PC Routine Line Source MainDLL_v10.dll 0B7A6B01 Unknown Unknown Unknown MainDLL_v10.dll 0B7A1BEF Unknown Unknown Unknown ... I guess something is wrong with my call arguments. The C++ DLL includes the following: #include <DllClasses.h> ...