dll

The application was unable to start correctly (0xc000007b) Visual Studio C++

▼魔方 西西 提交于 2020-01-11 12:03:03
问题 I have a simple hello world c++ program which links sqlite3.dll (64 bit version). I have added sqlite3.h and sqlite3.dll correctly in the respective paths. The projects compiles for 64 bit architecture. The compilation and linking goes fine. The problem arises when I try to run the exe. I have seen many questions here that suggest to use dependency walker. I am putting the screenshot here: I don't understands why it fails since the sqlite3.dll is in the exe's folder. And if I understand well

The application was unable to start correctly (0xc000007b) Visual Studio C++

谁说胖子不能爱 提交于 2020-01-11 12:02:08
问题 I have a simple hello world c++ program which links sqlite3.dll (64 bit version). I have added sqlite3.h and sqlite3.dll correctly in the respective paths. The projects compiles for 64 bit architecture. The compilation and linking goes fine. The problem arises when I try to run the exe. I have seen many questions here that suggest to use dependency walker. I am putting the screenshot here: I don't understands why it fails since the sqlite3.dll is in the exe's folder. And if I understand well

Inquiry: Integrating libsndfile with Visual Studio 2010 C++. Error: libsndfile.dll not found

99封情书 提交于 2020-01-11 09:32:13
问题 I am teaching myself how to read in wav files into C++ as a part of me learning C++. I have found many resources online that recommended the following library: libsnfile library So I followed some tutorials below in testing the basic functionality of the library, but I can't get the library to compile with Visual Studio 2010. I have searched online for the following error, but did not find anything useful for my particular error. I downloaded the libsndfile C++ windows installer found here. I

C# DllImport library written on C++

不羁岁月 提交于 2020-01-11 07:52:37
问题 I'm pretty new in C#. I have Dll written on C++ by myself and I'm going to use functions from that dll in C# app. So, I do the following when declare functions in C++ project: public static __declspec(dllexport) int captureCamera(int& captureId); Then I'm trying to import this method in C# app: [DllImport("MyLib.dll")] public static extern int captureCamera(ref int captureId); But I have the exception: Unable to find an entry point named 'captureCamera' in DLL 'MyLib.dll'. The task is to do

How to change the loading path of references in .NET?

爱⌒轻易说出口 提交于 2020-01-11 07:31:05
问题 I want a setup like this: +- /ApplicationFolder -- App.exe -- Core.dll -- AnotherShared.dll +- /PluginsFolder -- plugin1.dll -- plugin2.dll But because plugin1.dll references to Core.dll and Shared.dll when I compile the application it drops a copy of "Copy.dll" and "Shared.dll" to plugins folder as well and if I remove them it doesn't work any more. How can I solve this problem? 回答1: When you create an AppDomain you can define a path for loading assemblies. Set AppDomainSetup.PrivateBinPath

php: loading oracle driver gives error “Unable to load dynamic library - The specified procedure could not be found.”

ぐ巨炮叔叔 提交于 2020-01-11 05:42:05
问题 I seem to have a strange problem with PHP. I've migrated a bunch of software from one server to another. On the server some scripts make a connection to Oracle, so to be able to make a connection the oracle client is installed and a tnsnames file is in place. Connection from sql*plus works. Some of the scripts use PDO, so for that I've enabled extension=php_pdo_oci.dll in php.ini. These scripts work like a charm. Some other scripts use functions like oci_connect, and these need a extension

CTYPES: Procedure probably called with too many arguments (92 bytes in excess)

自作多情 提交于 2020-01-11 05:12:14
问题 I have a dll with __declspec(dllexport) int __cdecl wrp_ANN_sel_HDGT(int steps, double in_TNH[], double in_TNL[], double in_pamb[], double in_Tamb[], double in_CPD[], double in_T3[], double in_Tex[], double in_IGV[], double in_Dpin[], double in_Dpout[], double in_LHV[], double in_RH[], short in_model, double in_pamb_ref, double in_Dpin_ref, double in_Dpout_ref, double in_LHV_ref, double in_RH_ref, double out_Tfire[], double out_T39[], double out_Power[], char *RuleDllPath) I defined argtypes

DLL dependency not found when debugging with Visual Studio 11 RC

放肆的年华 提交于 2020-01-11 04:29:25
问题 My project is a standalone C++ application that uses FMOD for playing sound. I've previously developed the same project with Visual Studio 2010 without any problems, but 2012 gives me the classic error: "The program can't start because fmodex.dll is missing from your computer. Try reinstalling the program to fix this problem." The project seems to load other DLLs(such as Direct3d related files and d3d shader compiler) just fine. The problem occurs only if trying to debug or run the program

Using a .net compiled dll inside native c++

北战南征 提交于 2020-01-11 04:15:07
问题 as i understand that any .NET program gets compiled to MSIL which is fed to the CLR which compiles it to the assembly code and along with the help of JIT it executes it. I was wondering, as .NET is a wrapper around the win32 api and the CLR ultimately converts the MSIL to assembly program. Isn't it possible for me to write some functionality in C#, make to a dll and then i use a tool which makes it a complete .net independent file for me to use inside unmanaged code like in C or C++. Am i

Debug .NET assembly binding aka Find what dll is used and why

流过昼夜 提交于 2020-01-11 03:42:04
问题 We're having some mystery version mismatches on our referenced dll's loaded at runtime. Errors like: Could not load file or assembly X or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Is there any way to debug the assembly binding. In other words, how can I know the following details about loaded assemblies: Version Location Who/What caused the loading (my code, another .dll, ...) Well, just