activation-context-api

LoadLibraryEx ignores side-by-side manifest

亡梦爱人 提交于 2021-02-19 01:34:49
问题 Does LoadLibraryEx function use side-by-side manifests? I have bar.dll with embedded SxS manifest, and that manifest describes version of this bar.dll, other dll file foo.dll has manifest that lists bar.dll as dependency, with specified version. But when I try to load bar.dll from foo.dll with LoadLibraryEx("bar.dll", NULL, 0) I see (with enabled sls with gflags) that it ignores these manifests, and loads first version of bar.dll that it sees in searchpath, if I define ISOLATION_AWARE_ENABLED

Win32. Enable visual styles in dll

只愿长相守 提交于 2019-12-29 05:34:29
问题 I've got no experience in C++ and Win API so sorry if this question is nooby. I've got DLL where I create some components, MessageBox for example. I added pragma comment to enable visual styles and it does not work (and it shouldn't as I know from this answer: windows 7 style for combobox on internet explorer toolbar, how? Dll code(omit export and so on): #include "stdafx.h" #include "my-dll.h" #include <Windows.h> #pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft

AppDomain.ActivationContext is NULL

一曲冷凌霜 提交于 2019-12-25 02:24:37
问题 I have created an AppDomain in my application. Below is the code I have used AppDomainSetup domaininfo = new AppDomainSetup(); domaininfo.ApplicationBase = "C:\\"; AppDomain domain = AppDomain.CreateDomain("MyDomain", null, domaininfo); ActivationContext context = domain.ActivationContext; But the ActivationContext is null in above snippet. Can anyone help me on this. Thanks in Advance. 回答1: It's null by default if you don't specify an ActivationContext . If you want an ActivationContext ,

CreateEx Causes Unhandled exception The activation context being deactivated is not the most recently activated one

陌路散爱 提交于 2019-12-23 09:39:13
问题 itsAnalysisDataTable.CreateEx( WS_EX_CLIENTEDGE, AfxRegisterWndClass( CS_DBLCLKS, LoadCursor( NULL, IDC_ARROW ), (HBRUSH)::GetStockObject( NULL_BRUSH ), NULL ), "AnalysiysTable", WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_TABSTOP, dialogItemRect, this, IDC_ANALYSIS_DATA_TABLE ); This line has cost me two days of effort with no solution. itsAnalysisDataTable is a custom windows control having CWnd as its grand grand grand parent. The control has been successfully used in other paces without

WebKit.Net and OpenWebKitSharp Error: Failed to initialize activation context

ⅰ亾dé卋堺 提交于 2019-12-22 01:57:40
问题 I am using both/either WebKit.Net and OpenWebKitSharp. However, as soon as I try to instantiate the WebKitBrowser, I get an error: Failed to initialize activation context Does anybody know what this is? 回答1: This error would ocur occur only in case OpenWebKitSharp.manifest and other WebKit files are missing from your exe's folder. Try copying every file from the "Core" folder to your debug/release directory. 回答2: Just Copy All files inside (WebKit.NET-0.5-bin-cairo\bin) 来源: https:/

Where do I need to switch the Activation Context?

假装没事ソ 提交于 2019-12-21 19:51:14
问题 The problem I'm facing is essentially described here, that is: I have a DLL that is using a 3rd party in-process COM component dll. I want to use registration free COM with that in-process component. I want to embed and use a manfest into this DLL (not into the main EXE) so that I can use the 3rd party component in a reg free way. The Interface I use from the component is activated through a call to CoCreateInstance . The 3rd party COM component hasn't got any further (COM) dependencies and

Registration-Free COM Interop: Deactivating activation context in finalizer throws SEHException

大城市里の小女人 提交于 2019-12-20 04:26:18
问题 I am currently working on a mixed managed / native work chain and need to create an activation context for registration-free COM support (see Embed a Registration-Free COM manifest into a C# dll with native/managed environment). The following snippet is part of a larger class inside a C# DLL, which holds a reference to a COM Wrapper and establishes the required activation context: using System; using System.Runtime.InteropServices; using System.Diagnostics; namespace FirstClient { public

Using Activation Context API with many dlls in different locations

穿精又带淫゛_ 提交于 2019-12-10 17:26:50
问题 I am using Activation Context API in a .Net client running in a location A to load a COM component reg-free in location B (which is completely different location to A, not a sibling/descendent etc. on the same machine) on WS2008 by passing in location B in the ACTCTX and it works fine. However, I now need to do the same thing with another COM dll which in turn has dependencies on a couple of .Net COM assemblies which live in completely different locations. I have added the dependent .Net

Embed a Registration-Free COM manifest into a C# dll with native/managed environment

冷暖自知 提交于 2019-12-06 04:59:20
问题 I'm currently working on a mixed native / managed application chain, which employs registration-free COM. The following image illustrates this: The C# wrapper DLL has been created using the tlbimp.exe utility. This allows each of the C# executables to access the native types and methods in the COM DLL. The COM DLL itself employs a server based RegFree COM manifest. Everything works fine, when the client based RegFree COM manifests are embedded in the C# executables. However, I would like to

WebKit.Net and OpenWebKitSharp Error: Failed to initialize activation context

落爺英雄遲暮 提交于 2019-12-04 23:24:48
I am using both/either WebKit.Net and OpenWebKitSharp. However, as soon as I try to instantiate the WebKitBrowser, I get an error: Failed to initialize activation context Does anybody know what this is? This error would ocur occur only in case OpenWebKitSharp.manifest and other WebKit files are missing from your exe's folder. Try copying every file from the "Core" folder to your debug/release directory. Just Copy All files inside (WebKit.NET-0.5-bin-cairo\bin) 来源: https://stackoverflow.com/questions/7714935/webkit-net-and-openwebkitsharp-error-failed-to-initialize-activation-context