It's pretty simple. There's a c++ function that uses ByRef parameters to return three variables at the same time.
STDMETHODIMP CReportManager::GetReportAccessRights(long lReportCode, VARIANT_BOOL *bShared, VARIANT_BOOL *bRunOnly, VARIANT_BOOL *bCopy)
However, the VBScript ASP code doesn't seem to pick up the new values for bShares, b...
I have an application that is written in C#
I want to display a list of COM components in a folder on the system with details about the component, initially the ProgID.
Is there a way of interrogating a component from my C# code to find out the details at runtime.
...
Hi,
I have a C# application using C++ COM object both build on a 32 bit machine. Now I have to run them on a 64 bit machine. I registered the COM object. A corresponding entry was created in the register under computer\hkey_classes_root\wow6432node\clsid{xxx}.
However, when I try to run the application it says that |"Retrieving the COM ...
I inherited a program from my late dad its developed with vb6 and has sql server 2000 as the back end. when i try to print a report from the application it gives the error message "ActiveX cannot create object" but when i view the report from crytal report it displays everything. Please i need help
...
We have some C# code that uses COM (its calling legacy code).
When an event happens, a COM event is fired.
Everything works perfectly.
However, if we call that same code from within a unit test, then suddenly the COM events cease to be fired - its just silence, like some sort of empty room with no party.
Any ideas why?
Environment:
...
I'm using ColdFusion 7 on a Windows 2003 server to talk to a default installation of Microsoft Word 2000 using COM objects. The goal is to generate a document with some tables in it.
That much I'm able to do. The CPU spikes to 100% for the duration, but my code is functional and if it's short, it works. The problem I'm encountering is w...
We have a COM OCX that catches various keypresses to IE when it's loaded into a web page. This OCX works well in IE6, however does not catch any keypresses in IE7.
It does load in IE7, generate other events (which are caught by Javascript).
It throws no errors.
I've run the Microsoft Application Compatability Toolkit as it's runnin...
Our Windows app is often hanging in memory and I'm trying to use windbg to track
down the problem. I'm very new to windbg and could use some advice (I
have started to read Advanced Windows Debugging though).
The app is a mix of C++ and COM objects written in VB. Occasionally when
you exit, the app appears to go away but task manager sho...
Does anyone know if a site (even non-Microsoft), that has details on COMExceptions/HRESULTS.
When I attempted to Save my Excel Workbook after using the Copy() function, I received this error:
ERROR - Unable to SaveWorkbook()
System.Runtime.InteropServices.COMException (0x800A03EC): Document not saved.
P.S. I'm doing this in a tight ...
Lets say thers is one interface
interface Ifoo
{
HRESULT foo();
};
which is part of a binary dll. I dont have source code for this.
Can I put a breakpoint on foo() API exposed from the interface Ifoo of this binary dll using Windbg?
I know we can put breakpoints on binary dll's using windbg but using COM I am not sure.
...
I have an eclipse plugin, which connects to a COM component using Jacob. But after I close the plugin entirely, the .exe file stays hanging in Windows processes.
I use ComThread.InitMTA(true) for initialization and make sure that SafeRelease() is called for every COM object I created before closing the app and I call ComThread.Release()...
I have created a COM component for my work. I have registered the component also.
On my system I have two VM workstations. In my first workstation it works fine. In my second workstation it displays an error box containing the message this program needs a rumtime and closes an unusual way please contact applications administrator. I ...
Ok, so i know how to strong name an assembly and regasm it, so I can access it from a an ASP page.
By strong naming it, it can be placed in the GAC and thus be easily accessible from an ASP page.
Is it possible to somehow register the assembly without signing it with a strong name and still be able, somehow to access it from the ASP pa...
Hi
I hav prepare a com component using c#. I have created a vc++ console application.in that consoloe application by consuming the com component i have build a .exe file called SQLDiscovery.exe
this exe is working well in win2k3 machines fine. and i copied the sqldiscovery.exe to win2k8 machine and i have registerd the dll also. annd ...
Assume that you work only in the C++ world (cross-language interop is not required). What advantages/inconvenients do you see in using COM instead of a plain basic DLL? Do you think using COM is worth the trouble if you are not going to use the interface from different languages?
...
I've downloaded a C# Class Library called TreeViewAdv, that I need to use in another project as a COM DLL.
It builds successfully (Release, not Debug).
Registering the built DLL using "regasm" says "Types registered successfully"
Registering with "gacutil" says "Assembly successfully added to cache"
In the C# project settings:
App...
Hi,
I am writing a CPP program on windows 2k3 where i want to achieve the following thing.
Pass the user context from the impersonated thread to a outproc COM component.
Steps what i m trying in details are:
1) Start an execution of exe with user USR1
2) Impersonate the current thread with USR2
3) Initiate a API on outproc COM object....
How can I control IE form C#? I know that via COM you can do all sorts of interesting stuff, but looking at the SHDocVw namespace once I import the reference into my project there doesn't seem to be that many methods. For example, how would I force a button to be clicked? Or set or read the value of a specific control on a page? In gener...
I am trying to create a COM component using ATL, and I'd like to raise events for my VB client. I've found numerous tutorials, all of which seem to vary in details, and none of them appear to generate a working solution. Here is what I am doing:
(Using Visual Studio 2008):
Create a new ATL DLL Project. I've called it ATLEventTest.
C...
Is there a tool out there that allows me to browse all the ActiveX controls I have installed on my system and the methods and properties that I can access? And of course their UUIDs.
...