dll

Clr Dll loaded by test prog but not by calling app

人盡茶涼 提交于 2019-12-25 01:49:45
问题 I want to develop a plugin for a program (EXE) to interop with an external C# module. The plugin is one of the three dlls needed: this dll (A) calls a wrapper dll (Native/Managed, in C++/Cli) (B) to interop with a C# dll (C). A is supposed to be loaded by a calling program (EXE) when deployed. In testing, a message from the C# dll is displayed, which tells me dll A is correctly loaded by a C++ tester and subsequently has made successful call to other dlls. In deployment, dll A is loaded by

Python imports wrong version of sqlite when running tests

回眸只為那壹抹淺笑 提交于 2019-12-25 01:46:03
问题 I'm trying to set up a Windows slave for our Jenkins server, but some of the unit tests are failing due to a sqlite error. We're using conda and have built a custom version of sqlite that includes rtree. Then our application is built using this custom sqlite. When we install our app on the windows server, the correct version of sqlite is installed: $ conda list sqlite 3.16.2 vc9_0 [vc9] file://[package_server] Running the app from the command line it works as expected. When we run tests

Get explorer.exe to load my extension from startup

爱⌒轻易说出口 提交于 2019-12-25 01:27:29
问题 Context to prevent an XY Problem: (Because there very well might be a simplier solution) My goal is to track explorer.exe 's file movement when the user drags files around (as well as uses clipboard cut and copy stuff). I tried to solve this with a Windows Shell Extension, however the interfaces that I implemented never seemed to do trigger. I followed this guide from CodeProject which worked beautifully. However, when I implemented the IFileOperation interface, none of my functions were ever

Trying to understand method signature changes spanning assemblies

老子叫甜甜 提交于 2019-12-25 01:05:46
问题 We ran into a strange problem with a promotion and I'm hoping I'll be able to explain it with code. I want to understand why it behaves in the manner it is. Assembly 1 public static class Foo { public static string DoStuff() { // Do something return "some string"; } } Assembly 2: public class Bar { public void SomeMethod() { // I realize the below is not what should be done for catching exceptions, as the exception is never thrown due to the return, and seems unnecessary either way... // this

DllMain not being called

£可爱£侵袭症+ 提交于 2019-12-25 01:05:10
问题 I have a DllMain defined as so: BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { int i=0, DoHijack=0; switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: hMod = hModule; hProcessCenter = ::FindWindow(NULL, _T("Form1")); ExtractPaths(hModule, ExePath, &kNTIExeName, kNTIDllPath, &kNTIDllName); //Only hook target processses for(i=0; i < NB_TARGETS; i++) { if(strstr(kNTIExeName, Targets[i])) DoHijack=1; } if(DoHijack) { DetourTransactionBegin();

How to protect my dll from disassemblers?

你。 提交于 2019-12-25 00:52:15
问题 I am trying to protect my dll from disassemblers. I am using "Eazfuscator.NET Assistant" as dll encryption tool. but after that the Reflector still can read the source code. is it anything i need to do before using Eazfuscator or after? or can anybody can introduce me a free encryption tools which it is can help me to encrypt my source code? Thank you very much. 回答1: You can consider .Net Reactor it works for me. 回答2: You can try code obfuscators. Also you can try to pack your dll with

Find out why Visual Studio decides to copy DLLs into a bin directory

我只是一个虾纸丫 提交于 2019-12-25 00:50:18
问题 I have a web application project. I am trying to find out why certain DLLs are being copied into the bin directory of the web application. As far as I can see there are no references to the DLLs under the list of references. Whilst I don't think it should make a difference, I have been through all the DLLS of the projects that the web application depends upon and selected Copy Local=False . But still when I build the solution, the DLLs turn up in the bin directory. I don't want them there.

Why is mfc100.dll required for my Visual Studio 2013 project?

随声附和 提交于 2019-12-25 00:28:48
问题 I have a Visual Studio project set to use: Platform Toolset: Visual Studio 2010 (v100) Use of MFC: Use Standard Windows Libraries Yet, if I run this on a computer that does not have mfc100.dll, I get an error that this dll is required. (And Dependency Walker confirms this dll is required.) I'm wondering why this dll is required, when "Use of MFC" is set to "Use Standard Windows Libraries"? (It is NOT set to "Use MFC...") The platform toolset is set to VS 2010 because a commercial library we

Creating and using a DLL in CPP

寵の児 提交于 2019-12-24 23:39:22
问题 I am working on a project where I am creating a small DLL and then also creating a windows application to use it. I can not figure out what is going on. I have a function in the DLL called "startPicadorVisual" which takes one parameter which is a std::string. In the application which is dependent on the DLL I have the following code in a mostly auto-generated .h file: typedef void (__stdcall *f_startPicadorVisual)(string s); namespace PicadorPrototype { f_startPicadorVisual startPicadorVisual

Unresolved Externals in C++: Visual C++ mangles method signature differently from mangled method in dll

给你一囗甜甜゛ 提交于 2019-12-24 23:18:01
问题 I'm using Visual Studio 2012, managed C++, to make a bridge between a third party SDK and our system which is written in C#. I have succesfully wrapped and consumed several functions from said SDK. Except one, which only result in a Unresolved External Error. The SDK's header file defines the function's signature: #if defined WIN32 #if defined BUILD_ADS_SHARED_LIB #define ADS_LINK_SPEC __declspec (dllexport) #define ADS_CALLING_CONVENTION __stdcall #elif defined USE_ADS_SHARED_LIB #define ADS