dll

ASP.net Unable to load DLL 'Magick.NET-Q16-x64.Native.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

a 夏天 提交于 2019-12-24 01:15:46
问题 I am using image Magick to create images from Stream. I am getting the error mentioned in title on following lines. var image = new MagickImage(); It is an issue with ImageMagick or something else. Dont know how to solve this!! 回答1: Workaround: assign user to application pool identity with extra privileges. Solution (worked for me) Manually set temp directory MagickNET.SetTempDirectory(@"C:\Windows\Temp\"); Give user of Application Pool Identity write permissions to it. In my case I've

Calling unmanaged dll from C#. Take 2

爱⌒轻易说出口 提交于 2019-12-24 01:09:50
问题 I have written a c# program that calls a c++ dll that echoes the commandline args to a file When the c++ is called using the rundll32 command it displays the commandline args no problem, however when it is called from within the c# it doesnt. I asked this question to try and solve my problem, but I have modified it my test environment and I think it is worth asking a new question. Here is the c++ dll #include "stdafx.h" #include "stdlib.h" #include <stdio.h> #include <iostream> #include

Best practice to protect resources against reverse engineering [closed]

喜夏-厌秋 提交于 2019-12-24 00:58:53
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . In order to address some level of protection against reverse engineering or decompilation, I decided to move the important parts of my C# application including several xml resources into a native C++ DLL file based on the method described here for using resources in C++ programs

How to apply VCL Styles to DLL-based forms in Inno Setup?

前提是你 提交于 2019-12-24 00:49:30
问题 I'm using Inno Setup (Unicode) with a set of DLL's that I'm writing in Delphi XE2. The DLL's have VCL forms which are shown during the installation wizard/progress. I've tried out implementing VCL Styles in my Inno Setup installer. All is well, except for the forms which are created within these DLL's. Some of the form is skinned, but not all of it... As you can see, the form's background color, the list view background color, and the font color have changed. However, the list view headers,

Unable to load dynamic library php_ldap.dll

陌路散爱 提交于 2019-12-24 00:43:29
问题 I've looked at many of the previous questions, but I'm still unable to get this issue fixed. I've installed PHP Version 5.4.9 and Apache 2.4.12 in windows - 64Bit. When I start the service I get the following error : PHP Warning: PHP Startup: Unable to load dynamic library 'D:\app\php\ext\php_ldap.dll' - The specified module could not be found in Unknown on line 0. The path where PHP is : D:\app\php My extension path in php.ini is : extension_dir = D:\app\php\ext Path where libeay32.dll and

Calling COMVisible VB.Net dll from C++ using CoCreateInstance

好久不见. 提交于 2019-12-24 00:37:50
问题 In some measure of progress since my last question I have got the following project to compile. It is based on https://stackoverflow.com/a/10949784/846550 However at runtime the call to CoCreateInstance fails. The HRESULT is 0x80131522 - google for this and most hits seem to relate to SQL server which I am not using. C++ code, unmanaged #include <iostream> #include <atlbase.h> #import "..\ClassLibrary1\bin\debug\ClassLibrary1.tlb" no_namespace using namespace std; int _tmain(int argc, _TCHAR*

Using a Delphi DLL in C++

耗尽温柔 提交于 2019-12-24 00:33:09
问题 How can I use a DLL written in Delphi in my C++ project (console application)? I have already read about wrappers. Is there an easier way than that? Or how does this method (wrapper) work? 回答1: It is trivial if you are compiling your C++ project with C++Builder. Just include in your code the C++ wrapper headers generated by the Delphi compiler and link your code with the Delphi library stubs. However I am not sure if you can manage to do it if you do not have access to wrappers, Delphi source

Using string-type resource identifiers in Windows .rc files / dlls

给你一囗甜甜゛ 提交于 2019-12-24 00:17:40
问题 We have a number of MFC extension dlls in our code base, many of which have embedded Windows resources defined in the projects .rc files (IDS_..., IDD_..., IDB_... etc). We use numerical identifiers to define our resources, taking special care that our resource ids don't clash across dlls, which requires some management to ensure our developers don't use the same numberings. I've realised that string-type resource identifiers might be an easy way to go, meaning that we can define unique

Can I load a third-party .dll in R?

こ雲淡風輕ζ 提交于 2019-12-23 23:55:19
问题 I am running Windows 7, and I know the DLL was built using Visual Studio C++ 2010. Since I don't have the source code I can't build it on-the-fly in R when creating a package (NAMESPACE). At this stage, I don't need to create a package , I just want to load the library in R using dyn.load() . Since it is a dll I suppose it is portable to any client program, but I would just make sure, because I know that it was not compiled using GNU gcc . EDIT: I want to call all the functions that the dll

Delphi LoadLibrary Failing to find DLL other directory - any good options?

≯℡__Kan透↙ 提交于 2019-12-23 22:19:50
问题 Two Delphi programs need to load foo.dll, which contains some code that injects a client-auth certificate into a SOAP request. foo.dll resides in c:\fooapp\foo.dll and is normally loaded by c:\fooapp\foo.exe. That works fine. The other program needs the same functionality, but it resides in c:\program files\unwantedstepchild\sadapp.exe. Both aps load the DLL with this code: FOOLib := LoadLibrary('foo.dll'); ... If FOOLib <> 0 then begin FOOProc := GetProcAddress(FOOLib , 'xInjectCert');