com

Hide border of window, if i know a handle of this window

ぐ巨炮叔叔 提交于 2019-12-13 08:47:07
问题 I have already OLE Embedded object Excel Chart. And, when I create this object, i have some problem in project, when I'm resizing window. Using Spy++ I see two process: Excel 7 and Excel 9. Excel 9 contain "trash" in right part, and when I resizing window I can see undefined behaviour. On the following picture you can see a border, which I want to hide. How I can hide this border, if I known handle of window? 回答1: You might try using SetWindowLong(), but I don't know if the effect is going to

Photoshop CC 2017 + Python

南楼画角 提交于 2019-12-13 08:18:00
问题 I have the exact same problem than the one described in this topic, with Photoshop CC 2017 , python 2.7.13 , comtypes 1.1.3 , windows 7 (all 64-bits) Trying to call a Photoshop method via python + comtypes raises a TypeError saying that the object is not callable: from comtypes.client import CreateObject psApp = CreateObject("Photoshop.Application.110") # edited to match photoshop CC 2017 #Create a new document- this is where it bombs out! psApp.Documents.Add(1024, 1024, 72, 'new_source

Is there any way to call .dll files in PHP over Linux Platform?

无人久伴 提交于 2019-12-13 07:57:05
问题 Question : is there any way to call .dll files using php COM class over linux platform? Description: I need to interact with dll files to access inside the functions. I am successfully register the dll files in windows environment by following below steps. Xampp installation v3.2.1 php 5.5 (Note: currently using version Xampp installation v3.1.2 php 5.3 need to change new/latest version Xampp installation v3.2.1 php 5.5). Download php_com_dotnet.dll file from here,http://originaldll.com/file

Why Excel.WorkSheet.Copy throws exception of A first chance exception of type 'System.Runtime.InteropServices.COMException' with HRESULT: 0x800A03EC

拟墨画扇 提交于 2019-12-13 07:50:39
问题 I am playing around with Excel Interop in .NET where I am encountering COMException over "Excel._WorkSheet.Copy(Type.Missing,Type.Missing)". The behavior is very strange : I am copying worksheets from a template based .xls and generating a new workbook with specified worksheets( probably selected by user from GUI ). As soon as it encounters Excel._Worksheet WorkSheet.Copy(Type.Missing,Type.Missing), it throws following COMException. "A first chance exception of type 'System.Runtime

When defining a Visual Studio COM interface in C#, which class / method / parameter attributes should I use?

隐身守侯 提交于 2019-12-13 07:41:05
问题 VS 2017 defines this interface in Microsoft.VisualStudio.Shell.Interop.15.0.DesignTime.dll: [Guid("A459C228-5617-4136-BCBE-C282DF6D9A62")] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IVsSolutionEvents7 { void OnAfterCloseFolder(string folderPath); void OnAfterLoadAllDeferredProjects(); void OnAfterOpenFolder(string folderPath); void OnBeforeCloseFolder(string folderPath); void OnQueryCloseFolder(string folderPath, ref int pfCancel); } I want to implement that

How to make SQL rise an event at SQL Client

浪尽此生 提交于 2019-12-13 07:29:09
问题 I need to create ConsoleApp in C# which is going to write something on local disk of client corresponding of data added to SQL Server by others. Now I do not know is there a way to SQL rise an event at client. My idea is to periodicity check for new data by opening connection and selecting data. Before I start coding Ill like to explore others ways of communicate from SQL Server to SQL Client. Another idea is to make CLR at SQL side which is going to be triggered by trigger on table where

EOleException on accessing message body

只谈情不闲聊 提交于 2019-12-13 07:24:28
问题 A Windows service when trying to access the .Body property of a MSMQ message object throws an EOleException - but only when the Xml document contained in this message has an empty list node. The EOleException message complains about insufficient memory (exception code -2147024882). Since the exception only occurs with the smallest possible Xml document, memory cannot be the real issue. The next thing that comes to mind is a problem with access rights but then again all "good" messages (as

Exposing inherited members of a COM vb.net class

╄→гoц情女王★ 提交于 2019-12-13 07:16:57
问题 I have two vb.net class: Public MustInherit Class Class1 Private m_sProperty1 As String = "" Public Property sProperty1() As String Get Return m_sProperty1 End Get Set(ByVal value As String) m_sProperty1 = value End Set End Property End Class <ComClass("classid","interfaceid","eventid")> _ Public Class Class2 Inherits Class1 Private m_sProperty2 As String = "" Public Property sProperty2() As String Get Return m_sProperty2 End Get Set(ByVal value As String) m_sProperty2 = value End Set End

WPF Thread: “COM object that has been separated from its underlying RCW cannot be used.”

瘦欲@ 提交于 2019-12-13 07:16:24
问题 I am getting following error: "COM object that has been separated from its underlying RCW cannot be used." I am sure the problem is because COM object is being called not on the thread it has been created - STA. I tried to implement IDisposable but it has not worked for me. There is a couple of posts dealing with similar problem but which still do not solve my issue: Is it safe to call an RCW from a finalizer? Release Excel Object In My Destructor Could anyone post an example/explain how COM

Why might COM automation from within a console application work on my development machine but not on another?

落爺英雄遲暮 提交于 2019-12-13 07:07:19
问题 As part of a project I am using COM automation with CorelDRAW. The automation is via a console application which will eventually be launched by a web service but for the purposes of trying to fix the issue behind this question is run as a scheduled task. This works on my development machine (running 32 bit Windows Server 2003) but fails with COM error 80080005 on a machine running 64 bit Windows Server 2003. There does not appear to be any extra information in the event viewer logs [see edit