I am encountering a COM Error
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1;
.NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.21022; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E)
Timestamp: Fri, 3 Sep 2010 17:55:21 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException:
R...
Guys,
I am interacting with a custom COM component in my c# project.
I am wrapping it with IDisposable.
The problem I am facing is that I do not see the dll for CSCCOM in Process Explorer once the program runs.
I would really appreciate your help on this one :)
-- Ruby
...
I have an x64 (64-bit) COM dll. When trying to register it with Regsvr32 on Windows 7 - Regsvr32 crashes.
Regsvr32 is run under cmd with administrative priviliges ("run as administrator"), I tried both 32 and 64bit cmd.exe and regsvr.exe, even two different PCs and it is always the same.
Debugging the crashed Regsvr32 reports that buff...
If you want to use a COM type in your C# code, the process is straight forward, right? You just need to use the type library importer and that's fine, but what if you don't have one and you can't take a look at the IDL file? You just have the COM DLL server.
As an example, try using the IActiveDesktop interface.
What's the approch used...
Hello,
I have a shared COM AddIn (not VSTO) for excel 2003, now I want to add a ribbon tab to support excel 2007.
I did some research online.
know that I need reference 2007 PIA, implement
IDTExtensibility2, IRibbonExtensibility in my connection
and IRibbonExtensibility has only one method string GetCustomUI()
string IRibbonExten...
i'm trying to get QuickTest.Application and QuickTest.RunResultsOptions com objects. But when i access them this way:
$qtp_app = New-Object -comobject QuickTest.Application -strict
$qtpapp = $qtp_app | Get-Member
$qtp_RunOpt = New-Object -comobject QuickTest.RunResultsOptions -strict
$qtprunopt = $qtp_RunOpt | Get-Member
i don't get...
I have two separate projects (comclient and comserver), with some very simple code:
comserver/Program.cs
using System;
using System.Reflection;
using System.Runtime.InteropServices;
namespace comserver
{
class Program
{
static void Main(string[] args)
{
RegisterComObject();
}
public static void RegisterComOb...
I am looking for hints on how to debugging a crash in an application that uses the MS XML wrappers in the Delphi VCL. I suspect memory corruption, or some kind of obscure evil thing happening between objects and interfaces, such as reference counting bugs, or heap corruption. The question is, in effect: how do I debug such a crash?
T...
Guys,
I am interacting with a custom COM component called CSCCOM in my c# project.
I am wrapping it with IDisposable as below:
Form1.cs
try {
using (CSCCOMWRAP CSC = new CSCCOMWRAP()) {
CSCCodeList CSCL = new CSCCodeList(CSC);
comboBox1.DataSource = CSCL.List;
Marshal.ReleaseComObject(CSCL);
}
}
catc...
Hello,
I noticed that Direct3D is COM exposed, but there doesn't seem to be a type library for it.
My first question is, what is the point of COM exposure if the infrastructure to use it isn't really there?
I've considered that I could write my own COM interfaces in C#. But it makes me somewhat concerned that this hasn't already bee...
One of my COM interface methods needs a parameter of user defined type as below:
[uuid(58ADDA77-274B-4B2D-B8A6-CAB5A3907AE7), object] //Interface
interface IRadio : IUnknown
{
...
HRESULT test_method2(someUDT* p2p_UDT);
...
};
How could fit the definition of the someUDT in the *.idl file? The someUDT type is a ...
Borland C++ Builder provides the function OleCheck(HRESULT Result);. Its description in the documentation is this:
OleCheck is used to wrap many COM routines, so that if that routine fails, users will have an opportunity to handle it in the resulting exception that is raised.
If ECode is a value less than zero, OleCheck raises...
So, there is a legacy code that has to be imported into .NET projects.
Which one do you preffer, and why:
packing it into COM module
or
making small and tight c++ managed wrapper around it
There is third option of exporting the functions in the DLL, but let's say that we want classes here.
...
I have a .NET (FW 2.0) library which is used by a COM (vb6) application and also by a .NET application.
The TLB generated for COM is registered which a version consisting of the first two digits of the "assembly version". For example, 1.2.5.7 assembly version becomes version 1.2 of the TLB. This is very inconvenient, because sometimes ...
I get an InvalidComObjectException after I close my application in the following piece of code:
class MyExcelManager
{
myExelAppInstance = new Excel.Application();
// finalizer
~MyExcelManager()
{
myExelAppInstance.Quit(); // InvalidComObjectException thrown here
myExelAppInstance = null;
}
}
Why is that? Shouldn't ...
Hello,
I'm try to embed a IExplorerBrowser (Windows Explorer) in a wxpython application but I cannot seem to get the IExplorerBrowser module opened in python
I have the CLSID of IExplorerBrowser from the registry but when I try and open it with:
from win32com import client
client.gencache.GetModuleForCLSID(id)
Nothing is returned.....
Hi,
I am trying to build a byte array in PHP using Variants. However, I can't seem to make it work. Here's a sample code:
$ie = new COM("InternetExplorer.Application");
$ie->Visible = true;
$ie->Height = 500 ;
$ie->Width = 700 ;
$post = array (ord('p'),ord('='),ord('1')) ;
$v = new VARIANT($post, VT_ARRAY|VT_UI1);
$ie->Navig...
I have a multi-threaded application using .NET 4.0. Sometimes this COM application referenced freaks out and just stop.
I want to know how to check for to see if this process is currently running within the questioned thread.
Example:
Exert from the main application:
ThreadedApp app = new ThreadedApp();
System.Threading.Thread thre...
Having started porting my VB6 code to .NET, I find .NET doesn't allow me to use the COM interface for the base program: "The ActiveX type library xxx.tlb was exported from a .NET assembly and cannot be added as a reference"
The problem is that the interface to the .NET assembly doesn't work, but the standard COM interface does. Is there...
This question is a follow up to a previous question (here).
I have acquired a DLL that was created in Visual Basic from a third party vendor(Sensor DLL.dll). This DLL contains functions for talking to a sensor, and I need to call these functions from a Visual C++ program I am writing. The vendor will not provide a header file, and I d...