com

Windows Common Item Dialog: ctypes + COM access violation

前提是你 提交于 2020-06-24 12:12:55
问题 I am trying to use the ctypes module to make calls to Windows' Common Item Dialog API. The code shown below is roughly based on the steps outlined in the MSDN documentation. Its only dependency is the comtypes.GUID module. import ctypes from ctypes import byref, POINTER, c_int, c_long from ctypes.wintypes import HWND, HRESULT from comtypes import GUID CLSID_FileOpenDialog = '{DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7}' IID_IFileDialog = '{42F85136-DB7E-439C-85F1-E4075D135FC8}' #IID_IFileOpenDialog

Windows Common Item Dialog: ctypes + COM access violation

你离开我真会死。 提交于 2020-06-24 12:08:02
问题 I am trying to use the ctypes module to make calls to Windows' Common Item Dialog API. The code shown below is roughly based on the steps outlined in the MSDN documentation. Its only dependency is the comtypes.GUID module. import ctypes from ctypes import byref, POINTER, c_int, c_long from ctypes.wintypes import HWND, HRESULT from comtypes import GUID CLSID_FileOpenDialog = '{DC1C5A9C-E88A-4DDE-A5A1-60F82A20AEF7}' IID_IFileDialog = '{42F85136-DB7E-439C-85F1-E4075D135FC8}' #IID_IFileOpenDialog

Getting DTE for running Visual Studio instances from PowerShell

六月ゝ 毕业季﹏ 提交于 2020-06-16 19:21:32
问题 Getting DTE for a single running Visual Studio with PowerShell is easy: Get a handle on the running Visual Studio instance (DTE) from powershell Getting DTE for multiple instances with C# has been solved How do I get the DTE for running Visual Studio instance? Now how do I get DTE for multiple VS instances with PowerShell? I'm trying to enable scripts to adjust VS configuration and start a build after a git pull, VM+XDE setup etc, all without having to open a new VS window if there's one

Getting DTE for running Visual Studio instances from PowerShell

孤街醉人 提交于 2020-06-16 19:21:08
问题 Getting DTE for a single running Visual Studio with PowerShell is easy: Get a handle on the running Visual Studio instance (DTE) from powershell Getting DTE for multiple instances with C# has been solved How do I get the DTE for running Visual Studio instance? Now how do I get DTE for multiple VS instances with PowerShell? I'm trying to enable scripts to adjust VS configuration and start a build after a git pull, VM+XDE setup etc, all without having to open a new VS window if there's one

Out-of-process COM server migrated to in-process COM server causes callbacks to block

≡放荡痞女 提交于 2020-06-16 06:08:27
问题 We have an existing network messaging server that implements a custom communications protocol that we are migrating to an in-process COM object. The server is implemented as a free threaded out-of-process COM server. The clients can register with the server (think publish-subscribe) to receive messages. After migration we noticed several dead locks when calling GUI related functions, e.g. SetWindowPos, RedrawWindow, EnumWindows, etc. After doing some research I found that this was due to

What's the correct way to pass parameters from VBScript to COM interface implemented in C#?

这一生的挚爱 提交于 2020-06-15 18:34:33
问题 I'm trying to expose a fairly simple C# class to COM which should be usable from VBScript (among others). Some objects need to be created via COM calls and will be used in furter calls later on. The definition of the exposed classes and interfaces looks like this: namespace Test { [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface IComInterface { IFoo CreateFoo(); void UseFoo(int x, IFoo f); } [ClassInterface(ClassInterfaceType.None)] public sealed class CComInterface :

How to show ICredentialProviderCredentialv2 on more than one User tile on the other user tile

自作多情 提交于 2020-06-12 06:00:29
问题 I'm trying to develop a Credentialprovider v2. I'm experimenting around with the samplecredentialproviderv2 provided by Microsoft.After installing the redistributable 2013 and compiling for the right architecture, I'd registered it and it worked. My Problem is, it works only on the first shown user tile. If I enumerate more than one usertile, it is either shown in only one user tile, or I became an error and destroyed my Logon UI. I know the question is quite similar to this one. Here I can

How to show ICredentialProviderCredentialv2 on more than one User tile on the other user tile

谁说胖子不能爱 提交于 2020-06-12 06:00:02
问题 I'm trying to develop a Credentialprovider v2. I'm experimenting around with the samplecredentialproviderv2 provided by Microsoft.After installing the redistributable 2013 and compiling for the right architecture, I'd registered it and it worked. My Problem is, it works only on the first shown user tile. If I enumerate more than one usertile, it is either shown in only one user tile, or I became an error and destroyed my Logon UI. I know the question is quite similar to this one. Here I can

How to create multiple application instances in CANoe COM Server Interface

非 Y 不嫁゛ 提交于 2020-06-09 06:27:40
问题 I’m trying write client application to CANoe (application by Vector). I can fully control one application trough COM server objects but if i create a new application instance, gCanAppB, the original instance gCanAppA is closed. How can i tell to the COM Server, that open the new instance in new application window? My source code: Set gCanAppA = CreateObject( "CANoe.Application") Set gCanAppB = CreateObject( "CANoe.Application") gCanAppA.Open ("Easy.cfg") gCanAppA.CAPL.Compile gCanAppA

How to create multiple application instances in CANoe COM Server Interface

浪尽此生 提交于 2020-06-09 06:27:12
问题 I’m trying write client application to CANoe (application by Vector). I can fully control one application trough COM server objects but if i create a new application instance, gCanAppB, the original instance gCanAppA is closed. How can i tell to the COM Server, that open the new instance in new application window? My source code: Set gCanAppA = CreateObject( "CANoe.Application") Set gCanAppB = CreateObject( "CANoe.Application") gCanAppA.Open ("Easy.cfg") gCanAppA.CAPL.Compile gCanAppA