com

How to connect HP Quality Center using C# and ASP.net

一世执手 提交于 2019-12-10 19:27:42
问题 I am looking to connect HP quality center using C# and ASP.net. Can someone please suggest me a way to connect it using .net web application. Also, do i need to do any installation on my server where my application is hosted? Below is some java code i found, I want something like this //Connect to QC ITDConnection itdc= ClassFactory.createTDConnection(); System.out.println(itdc.connected()); itdc.initConnectionEx("http://QC.com/qcbin"); System.out.println(itdc.connected()); itdc

ATL COM: Access Event Methods From Other Thread

懵懂的女人 提交于 2019-12-10 19:20:02
问题 I'm implementing a COM interface to an existing VS2010 C++ MFC-application. Most parts of the COM interface interaction works great, but I am confused of how to trigger COM events from another thread that the one where the COM interface is running / defined. The application is multi-threaded with one main thread running the COM interface and handling GUI changes ( thread 1 ) and one thread to receive incoming messages from a C-library ( thread 2 ). For certain messages received in thread 2 I

System.TypeLoadException referencing .NET 1.0 assemblies after .NET 4.0 migration

房东的猫 提交于 2019-12-10 19:19:28
问题 There's a project which was migrated from .NET 3.5 to .NET 4.0. The project has some references to .NET 1.0 assemblies, which are wrappers around COM objects. These .NET 1.0 assemblies and COM objects are product of an external company. The project compiles, but during runtime the first point when the software references an object defined in those 1.0 assemblies throws an exception: System.TypeLoadException: Could not load the structure 'ESRI.MapObjects2.Core.ShapeTypeConstants' from assembly

DisposableAction and Marshal.ReleaseComObject

北战南征 提交于 2019-12-10 19:09:57
问题 doing some office Interop and the code is of Type try { selection = getSelected(Return.Some.Office.InteropObject); for ( int i = 0 ; i < selection.count ; i++) yield return selection.item(i) } finally { Marshal.ReleaseComObject(selection); } Wondering if it's a good idea to replace it with a DisposableAction and change to using ( var a = new DisposableAction(getSelected(Return.Some.Office.InteropObject)) ) { foreach(var b in a.Items) yield return b; } 来源: https://stackoverflow.com/questions

Loading a Type Library via PowerShell and scripting Windows Live Writer

浪子不回头ぞ 提交于 2019-12-10 18:58:32
问题 I'm very new to COM and Windows programming/scripting in general. What I was trying to do is scripting Windows Live Writer; according to the documentation before I can call $o = New-Object -c WindowsLiveWriter.Application I need to load the TLB first, so I should call the add-type command, unfortunately it fails: PS C:\Users\NoWhereMan> add-type windowslivewriter.application Add-Type : c:\Users\NoWhereMan\AppData\Local\Temp\a7ifbimo.0.cs(1) : A namespace does not directly contain members such

use dispInterface in Delphi with no classid

我只是一个虾纸丫 提交于 2019-12-10 18:56:45
问题 I've imported a type library into Delphi XE2 that has many dispinterfaces. Most of them have had an autocreated coclass and corresponding delphi T interface automatically created. However, some of the dispinterfaces that I need to work with have no classid; I've tried every example that I could find on the net to utilize the dispinterface(s) in question. Here's what the interface looks like: DIID_ITableListener: TGUID = '{83D42EA5-2C18-46EB-823B-262D62DF8CF1}'; ... ITableListener =

Is there a viable counterpart to DCOM in .NET?

≯℡__Kan透↙ 提交于 2019-12-10 18:46:47
问题 I know .net has WCF, which I believe was touted as the replacement for COM when it was codenamed Indigo(?) - but is it actually suitable for use in a .NET app, providing the same functionality as a C++/DCOM application? A DCOM app on a client-server system can be a pain, but I think it's quite efficient compared to other options like web-services - which have other issues anyway. So, is WCF a true successor to (D)COM or does it have different aims? EDIT: I'm talking specifically about

Building ActiveQt (COM) applications with MinGW

﹥>﹥吖頭↗ 提交于 2019-12-10 18:46:47
问题 I am using Qt 4.6.3 with MinGW on Windows to build Qt apps and now need to add a COM interface to my application. I enabled ActiveQt but was getting post-link errors because I was missing a copy of the MIDL compiler. I downloaded a copy of the latest MS Windows SDK, which includes MIDL, but now MIDL complains it cannot find cl.exe. The only conclusion I can draw is that you can only build ActiveQt applications using the MS compiler, which I would rather avoid. Is a way to get this working

Why is COM ignoring my DllSurrogate entry?

我的梦境 提交于 2019-12-10 18:45:25
问题 I'm aware of this question, but I've followed the steps listed there and I'm still stumped. I've got a class, registered as follows (this is an RGS file): HKCR { NoRemove CLSID { ForceRemove {5CB1D770-BF72-4F3D-B4DA-85E0542126F4} = s 'ExamplePlugin Class' { val AppID = s '%APPID%' InprocServer32 = s '%MODULE%' { val ThreadingModel = s 'Free' } } } } I've got an AppID, registered as follows: HKCR { NoRemove AppID { '%APPID%' = s 'ExamplePlugin' { val DllSurrogate = s '' } 'ExamplePlugin.DLL' {

Using COM dll in C#

偶尔善良 提交于 2019-12-10 18:44:40
问题 We have COM dll which was written in C++ and has been used by the apps written in vb 6.0. My company plans write the newer versions of apps in .Net platform. As far as the performance is concerned, when using a COM dll in a C# project, what should I choose from the 3 options listed below Just adding the dll as a com reference Writing a wrapper dll with C++/Cli Generating a wrapper dll using TlbImp.exe Or are there any other options? Thanks. 回答1: Writing a wrapper in C++/CLI isn't that likely