com

How to add my Outlook email signature to the COM object using RDCOMClient

社会主义新天地 提交于 2019-12-19 03:22:56
问题 I am working RDCOMClient into some of my work flow and thanks to agstudy's answer Here I am able to send emails throuhg r, but I can't figure out how to add my Outlook email signature. I'm new to COM objects, but have done a fair share of searching and haven't found anything. Because my reputation hasn't hit 50 yet, I wasn't able to comment on the inital thread to ask there. Can someone show me how I can add my Outlook email signature? library(RDCOMClient) OutApp <- COMCreate("Outlook

Release COM Object in C#

孤人 提交于 2019-12-19 03:15:53
问题 I know this has been discussed earlier but I couldn't find a satisfactory answer. I have an e-mail file (.msg) which I open like below and then call Display. oApp = new Microsoft.Office.Interop.Outlook.Application(); mail = (Microsoft.Office.Interop.Outlook.MailItem)oApp.Session.OpenSharedItem(fileName); mail.Display(false); oApp = null; // do I need to release this object ? users can close it and re-open it. Before they click "reopen" I check to see if the window still exists, if yes .. then

Out of process COM server execution

ⅰ亾dé卋堺 提交于 2019-12-19 02:52:08
问题 I've turned an ancient, but still useful, Delphi 5 application into an out of process COM server. I vaguely recall that there's a way to tell if it's started directly by a user or as the server. I know I've done it before, but I can't remember/find how to do it. A command line switch, maybe? 回答1: I do not know whether this was available in Delphi 5, but in Delphi 2010 you can query the global ComServer object for the start mode: if ComServer.StartMode = smAutomation then ShowMessage('started

Excel process remains open after interop; traditional method not working

冷暖自知 提交于 2019-12-19 02:30:28
问题 I'm running into an issue with some code I'm debugging. Excel interop is used to extract some values from a workbook; however, Excel remains open after the program has exited. I've tried the traditional solution, but it still keeps a reference to Excel open on all machines where the code is run private void TestExcel() { Excel.Application excel = new Excel.Application(); Excel.Workbooks books = excel.Workbooks; Excel.Workbook book = books.Open("C:\\test.xlsm"); book.Close(); books.Close();

Register a COM object using InstallShield

*爱你&永不变心* 提交于 2019-12-19 00:57:51
问题 I am using InstallShield 2011. I have a COM object that needs registered during installation. I cant seem to find anywhere where it instructs you on how to do this. Does anyone have any ideas? Thanks EDIT: 回答1: Create a component and add your COM dll/ocx to it and right click it to mark it as key file if needed. Then right click the file and select "Extract COM". You should see a bunch of progress messages as it harvests the various registry entries. Build your installer and test it on a

Register a COM object using InstallShield

丶灬走出姿态 提交于 2019-12-19 00:57:35
问题 I am using InstallShield 2011. I have a COM object that needs registered during installation. I cant seem to find anywhere where it instructs you on how to do this. Does anyone have any ideas? Thanks EDIT: 回答1: Create a component and add your COM dll/ocx to it and right click it to mark it as key file if needed. Then right click the file and select "Extract COM". You should see a bunch of progress messages as it harvests the various registry entries. Build your installer and test it on a

What's the proper source for Windows Common Controls 6.0 component (MSCOMCTL.OCX)?

非 Y 不嫁゛ 提交于 2019-12-18 21:12:33
问题 I'm experimenting with writing ActiveX controls and noticed that I can't seem to create an ActiveX control in Visual Basic (6.0) which features slightly more sophisticated controls. Simple controls like labels, buttons and check boxes seem to work fine, but as soon as I try to add e.g. a tree control to my form, the ActiveX control stays entirely blank as soon as I embed it into some host application on another computer. It works fine on my development box though. While going through the

Is DirectX on Java possible?

自古美人都是妖i 提交于 2019-12-18 20:54:18
问题 Is there an easy way to use DirectX in Java? In particular, DirectX's video APIs. I know that C# might be a more natural choice, but I have my devious reasons for wanting to do something so perverse. 回答1: I don't know about easy, but you could always use JNI to load the DirectX libs and invoke the methods. Using something like Swig you could auto-generate a lot of the code. Not sure how workable something like that would be though. 回答2: There seems to be a standard API about dealing with 3D

Can a VB6 component be compiled to 64 bit?

人走茶凉 提交于 2019-12-18 19:09:22
问题 Is there a way to compile a VB6 component into 64 bits? My feeling is that the answer is "no", but I would like to confirm this. Please, if you can, paste a link to an authorative source that would confirm. 回答1: No. I hope this counts as authoritative. 64-Bit Windows Visual Basic 6.0 runtime files are 32-bit. These files ship in 64-bit Windows Operating Systems referenced in the table below. 32-bit VB6 applications and components are supported in the WOW emulation environment only. 32-bit

Exposing C# COM server events to Delphi client applications

情到浓时终转凉″ 提交于 2019-12-18 17:07:42
问题 My question is very similar to these two: C# component events? C# - writing a COM server - events not firing on client However, what worked for them is not working for me. The type library file, does not have any hints of events definitions, so Delphi doesn't see it. The class works fine for other C# applications, as you would expect. COM Server tools: Visual Studio 2010 .NET 4.0 Delphi applications: Delphi 2010 Delphi 7 Here's a simplified version of the code: /// <summary> /// Call has