Hey guys,
.NET COM interop so far always has been working quite nicely. Since I upgraded to Windows 7 I don't get my .NET COM objects to work anymore.
My COM object is as easy as:
namespace Crap
{
[ComVisible(true)]
[Guid("2134685b-6e22-49ef-a046-74e187ed0d21")]
[ClassInterface(ClassInterfaceType.None)]
public class M...
Hi,
I just installed Office 2010 x64 on my Windows 7 x64 laptop. It already had Visual Studio 2010 on it.
Now I try to add Microsoft.Office.Interop.Excel or something to the project, but it just can't find the project.
When I try to open a project from the website of Microsoft (a sample of Office development) Visual Studio says that ...
I'm using the virtualbox api that uses COM on windows. If you have a 64 bit OS it will install the 64 bit version and the COM interfaces will be accessible to 64 bit clients but not to 32 bit ones. I'm told this is a COM limitation but I have seen ways to use dll32 to "publish" 32 bit interfaces on the registry, so 64 bit processes can c...
Is there any way to reference a tlb export on Mono?
I am really stuck with .NET on one of my only remaining projects on MS platforms and would like to move away from it. The only problem is that the web site is dependent on a COM library that is simply a socket wrapper enforcing a messaging protocol. I could reverse the code (I actual...
I'm trying to use JACOB to interact with a COM object.
I was able to invoke an initialization method on the object (and to get its properties), but am not getting any events back. The code is quoted below.
I have a sample HTML+Javascript page (running in IE) that successfully receives events from the same object.
I'm considering the fo...
hi
i want to make use of Com intefaces into my .net application,
but this is related to Text Services Framework and i reasearched on this and it was like it only supports COM servers
can anyone help me on this
can i use TSF intefaces into my .net application
and if yes Please tell me how to do it
plzzzzzz :)
thanks
...
Handling events exposed on a .NET class via COM in VB6
My test .NET (class libary registered for interop in compiler settings) code:
Imports System.Runtime.InteropServices
<InterfaceType(ComInterfaceType.InterfaceIsIDispatch), ComVisible(True)> _
Public Interface MyEventInterface
<DispId(1)> Event Exploded(ByVal Text As String)
...
Hi,
Currently developing a connector DLL to HP's Quality Center. I'm using their (insert expelative) COM API to connect to the server. An Interop wrapper gets created automatically by VStudio.
My solution has 2 projects: the DLL and a tester application - essentially a form with buttons that call functions in the DLL. Everything works...
I would like to write a small utility/class library in C# that can enumerate the primary partitions on the disk associated with volume C on Windows 7. I would like to modify the active flag for any one the primary partitions on that disk. I would like to "consume" this library from managed code (C#). As I understand it, I will need to us...
I'm trying to track down a memory leak in a COM object, and I'm not seeing anything obviously wrong. I'm probably using some of the COM wrappers incorrectly, but my standard toolkit of finding memory leaks (AQtime) isn't helping me with COM. Does anyone have any tricks/tools to track down COM memory/reference leaks?
...
Background:
I would like to extract the COM data from a VB6 application so I can register it correctly (according to Microsoft best practice) the application. I am using WiX 3.0 and heat.exe will not extract the data (known issue with heat) and I do not have ready access to the associated TLB file. The VB6 application does not have c...
Hi,
I'm having a VARIANT with its type set to VT_R8. Subsequently I need to change its type to VT_BSTR.
I would like know whether there is a way of resetting a VARIANT status.
Thus, I noticed that every time I set value to the VARIANT (in my case, its double) , VARIANT itself set its bstrVal member to a bad pointer, even though I se...
Is there a way to pass a wrap and unwrap a TObject descendent in an OleVariant? I am trying to pass a TObject across automation objects. I know it's not a good idea but I don't have a good alternative.
The object is to be passed between objects from the same automation dll, if that makes any difference.
Something like this:
function...
Hi,
I have an instance of a COM object ... which is created like this..
Type type = TypeDelegator.GetTypeFromProgID("Broker.Application");
Object application = Activator.CreateInstance(type);
when i try to invoke a method :
type.GetMethod("RefreshAll").Invoke(application, null);
-> type.GetMethod("RefreshAll") returns null.
When ...
Hi, I have an ATL COM object that I am using from C#. The interface currently looks like:
interface ICHASCom : IDispatch{
[id(1), helpstring("method Start")] HRESULT Start([in] BSTR name, [out,retval] VARIANT_BOOL* result);
...
[id(4), helpstring("method GetCount")] HRESULT GetCount([out,retval] LONG* numPorts);
...
[id(7)...
I have a COM object which has a method that returns an unsigned int64 (VT_UI8) value. We have an HTML page which contains some JavaScript which can load the COM object and make the call to that method, to retrieve the value as such:
var foo = MyCOMObject.GetInt64Value();
This value can easily be displayed to the user in a message dia...
I've been using the IE Browser component that is part of Windows. But I'm running into problems with security settings. For example, users get security warnings on pages with Javascript.
So I'm looking at using the Mozilla ActiveX control instead. It's especially nice because it has a compatible interface. It works well if I let it inst...
Hello,
I need to parse unmanaged code's TLB (Of unmanaged COM server) in C#.NET. What are the way arounds to do this.?
Regards
Usman
...
Hello guys!
Can someone guide me on how to create a simple COM class with VC++ that I can have it called by a VB6 app with CreateObject?
Thanks!
...
Hi all
I have an issue with C# and COM. :(
[Guid("f7d936ba-d816-48d2-9bfc-c18be6873b4d")]
[ComVisible(true)]
[ClassInterface(ClassInterfaceType.None)]
public class Process : IProcess
{
public Process()
{
}
public int UpdateBalance(string accountNumber, string adminEventDescription, decimal curAmount)
{
re...