dll

“Class not registered” when loading the Video Processor MFT on Windows 7

早过忘川 提交于 2020-04-16 02:59:09
问题 I have the following COM call: IMFTransform* pMFT = NULL; HRESULT hr = CoCreateInstance(CLSID_VideoProcessorMFT, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pMFT)); On my development machine, this call to CoCreateInstance succeeds. However, when I deploy this on my old Windows 7 machine, the call to CoCreateInstance fails, and I don't know why. Here's how I'm displaying the error: _com_error err(hr); LPCTSTR hrErrMsg = err.ErrorMessage(); WCHAR msg[MAX_PATH]; StringCbPrintf(msg, sizeof(msg), L

C# application log4net log file not created when used in C++/CLI

谁都会走 提交于 2020-04-13 16:55:24
问题 I've written a C# dll - foo.dll - that uses log4net for logging. The dll is then used in a C++ application via a C++\CLI wrapper. The C++ application works perfectly, however the log file is not created . When I use this dll in a testing C# application (that uses the original C# dll) the log file is create without problems. This configuration is set in foo.dll.config: <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections>

C# application log4net log file not created when used in C++/CLI

六月ゝ 毕业季﹏ 提交于 2020-04-13 16:51:50
问题 I've written a C# dll - foo.dll - that uses log4net for logging. The dll is then used in a C++ application via a C++\CLI wrapper. The C++ application works perfectly, however the log file is not created . When I use this dll in a testing C# application (that uses the original C# dll) the log file is create without problems. This configuration is set in foo.dll.config: <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"/> </configSections>

dlls: static vs implicit linking, same thing?

心不动则不痛 提交于 2020-04-13 06:10:35
问题 Concerning Dll linkage, are static and implicit linking the same thing? I understand the difference between implicit and explicit linking, and I think static is synonymous with implicit, but am not certain. if they are indeed different, what is the difference between them, and how do I specify which one I want? this link from msft uses the term "implicit" for what I've heard referred to as "static". Is it perhaps a msft-specific thing? 回答1: Yes, in Windows-land, when discussing linking to

dlls: static vs implicit linking, same thing?

隐身守侯 提交于 2020-04-13 06:09:41
问题 Concerning Dll linkage, are static and implicit linking the same thing? I understand the difference between implicit and explicit linking, and I think static is synonymous with implicit, but am not certain. if they are indeed different, what is the difference between them, and how do I specify which one I want? this link from msft uses the term "implicit" for what I've heard referred to as "static". Is it perhaps a msft-specific thing? 回答1: Yes, in Windows-land, when discussing linking to

dlls: static vs implicit linking, same thing?

◇◆丶佛笑我妖孽 提交于 2020-04-13 06:09:08
问题 Concerning Dll linkage, are static and implicit linking the same thing? I understand the difference between implicit and explicit linking, and I think static is synonymous with implicit, but am not certain. if they are indeed different, what is the difference between them, and how do I specify which one I want? this link from msft uses the term "implicit" for what I've heard referred to as "static". Is it perhaps a msft-specific thing? 回答1: Yes, in Windows-land, when discussing linking to

How to create a shared_ptr in dll and export it via a factory function?

故事扮演 提交于 2020-04-10 04:41:46
问题 I have this pieces of code: class DLL_API MyClassWrapper { private: MyClass * m_myClass; public: MyClassWrapper(SIZE inputSize); ~MyClassWrapper(); inline int OutputSize(); } typedef std::shared_ptr<MyClassWrapper> MyClassWrapperPtr; extern "C" { DLL_API MyClassWrapperPtr CreatreMyClassWrapper(SIZE inputSize) { return std::make_shared<MyClassWrapper>(inputSize); } } But it doesn't work, with error: Error 1 error C2526: CreatreMyClassWrapper: C linkage function cannot return C++ class 'std:

How can I pass TForm to a DLL as parameter?

别说谁变了你拦得住时间么 提交于 2020-03-22 07:52:09
问题 i want to make dll that using tform as parameter, the simple plan is if that form passed to dll the dll file return array that contain components name. it possible to passing tform as parameter? 回答1: Most likely you will have two instances of the VCL in your process, one for the host exe and one for the DLL. And that is one instance too many. The TForm class from your host exe is a different class from the TForm class in your DLL. The basic rule is that you cannot share VCL/RTL objects across

Could not load SWT library on Windows 32-bit

故事扮演 提交于 2020-03-21 11:52:08
问题 I am almost done with one Java project that I have been developing on Linux. Now I need to build and test it on Windows. So I have installed Eclipse on Windows XP 32-bit, and imported my project. All dependencies of project are in jar files in lib folder, and on Linux everything works well, but on Windows XP I get following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: no swt-pi-gtk-4234 in java.library.path no swt-pi-gtk in java

*.pyd file fails to load, but DependancyWalker comes up clean, and ProcMon shows it loaded

岁酱吖の 提交于 2020-03-19 05:24:07
问题 I am trying to load a *.pyd with Python, but I receive the well known "Import Error: DLL load failed: the specified procedure can not be found." error. I have already done the following: 1.) Investigated the *.pyd with Dependency Walker. GPSVC.DLL and IESHIMS.DLL came up as missing, but delay loaded, IEFRAME.DLL aslo came up as missing an export, but was also delay-loaded. It's my understanding that these are not used, and are delay load anyway, so they should not be the problem. 2.) Did an