com

Outlook Com Add-In Deployment & Extensibility Issue

Hi All, I'm a developer writing an add-in for Outlook2003/2007 using C#, Visual Studio 2005. I'm also using the COM add-in wizard (not using VSTO, I have a Connect.cs). The program successfully runs with visual studio installed on my machine but when I try to deploy the software I am getting weird behavior. I have a logging system set ...

"class not registered" which class?

Consider this code: try { ISomeObject pObj(__uuidof(SomeClass)); ISomeObject pObj2(__uuidof(SomeOtherClass)); } catch ( _com_error& e ) { // Log what failed } I.e. I have a block of code which instanciates my objects. Sometimes (a bad install) it failes because some class wasn't properly registered. (I don't have a partic...

What is VBScript error code 0x800A01FB

I have a solution based on ASP, VB6, COM and SQL Server. The web server is IIS 6. At irregular intervals, I get the following error message on the ASP page: Microsoft VBScript runtime (0x800A01FB) An exception occurred: 'objPSM.GetValue' (where "objPSM" is my own session-handling COM class). If I reload the page, it works. I tried ...

reusing Internet Explorer COM Automation Object

I am using VBScript macros to utilize the InternetExplorer.Application COM automation object and I am struggling with reusing an existing instance of this object. From what I have read, I should be able to use the GetObject() method in vbscript to grab a hold of an existing instance of this object. When I execute the following code I g...

COM ApplicationClass.Documents.Open thread

Hi , I am using the Interop word ApplicationClass.Documents.Open method to open a word document. In my application when i use the below statement it hangs as in the IE shows its still loading but it never does anything. _Document aDoc = WordApp.Documents.Open(ref fileName, ref oMissing, ref readOnly, ref oMissing, ref oMissing, ref oMis...

Connect to a running instance of Visual Studio 2003 using COM, build and read output

For Visual Studio 6.0, I can connect to a running instance like: o = GetActiveObject("MSDev.Application") What prog ID do I use for Visual Studio 2003? How do I execute a 'Build Solution' once I have the COM object that references the VS2003 instance? How do I get the string contents of the build output window after executing the bui...

How to use IIS Debug Diagnostics report to locate source file line in Delphi COM component

We have a Delphi COM component being called from an ISAPI web app. The COM component is hanging the app because it is trying to display a MessageBox(). We have no MessageBox() call in our user code so it must be located in the Delphi runtime source, probably in exception handler code. We have an IIS debug diagnostics report that shows...

Prevent Delphi COM component from showing MessageBox()

We have a Delphi 2007 COM component being executed from an ISAPI app. The COM component is hanging the app because it is attempting to display a MessageBox(). The call to MessageBox() must be occurring in the Delphi RTL becase it is not in our user code. The app hangs, of course, because there is no one logged in at the server to clea...

How to use IDispatch in plain C to call a COM object

I need to compile some code of mine using the gcc compiler included in the R tools (R the statistical program for windows), the problem is that I need to use IDispatch in my code to create an access the methods of a COM object, and the gcc compiler doesn't support much of the code that I'm using to do so, which is basically C++ code. So...

Using the RDP control to login to a Vista machine that requires Network Level Authentication

I'm trying to use the mstscax.dll (Microsoft Remote Desktop Control) to login to a Vista machine that requires Network Level Authentication. I've played around with all the methods in IMsRdpClientNonScriptable4, IMsRdpClientAdvancedSettings4 and IMsRdpClient6. There are a slew of functions that appear that the might enable this. Enabl...

C# + COM Interop, deterministic release

COM objects usually have deterministic destruction: they are freed when the last reference is released. How is this handled in C# - COM Interop? The classes don't implement IDisposable, so I see no way to trigger an explicit IUnknown::Release. A casual test shows that unreferenced COM objects get collected lazily (i.e. the garbage col...

Which version of MSXML should I use?

Seems like this would be a common question, though I could not find it on SO. Which version of MSXML should I use in my applications, and more importantly, how should I decide? There is MSXML3, 4, 5 and 6. I recently posted some code in calling-wcf-service-by-vbscript that used MSXML v4. AnthonyWJones posted that I shouldn't use 4...

In VB6, how do I call a COM object requiring a pointer to an object?

Hi, I'm having trouble with a .NET Assembly that is com visible, and calling certain methods from VB6. What I have found is that if the parameters are well defined types, (e.g. string), calls work fine. If they are higher level objects, it raises a runtime error '438' suggesting that the property or method is not present. I suspect tha...

Which is the best tool to test for Memory leak in Win32/COM application?

I'm looking for a tool which can monitor a running application (Win32/COM) for a long duration (1-3 days) and detect memory leaks if any. Any suggestions? It is a .NET Windows application calling lots of unmanaged code. ...

I want to learn COM. How should I proceed?

Hello Guys, I am a fresh graduate with a bachelor in Computer Science. As most school today, they are no longer teaching students C or advance C++ (only an Introductory course in C++... With lessons up to Pointers). The standard programming language prescribed in the curriculum is C# (.NET stack). Just recently, I got hired as a junior...

Is it possible to expose a DateTime field through COM?

Hi, it looks like that I am not able to expose via COM a class to an unmanaged client if one of the property of the class has type DateTime . Example: [ComVisible(true)] public interface ITest { string Name { get; } DateTime Date { get; } } [Serializable] [ComVisible(true)] public class Test : ITest { public string Name { g...

How do I restart a COM+ application on a remote server from .NET?

How do I programmatically restart a COM+ application running on a remote server from code in .NET? ...

What tools are best for learning reverse engineering.

I am starting to learn reverse engineering and wanted to know what tools people are using and what the pros and cons are to each. I have been using .Net Reflector to reverse engineer .Net apps but I also have to work with old COM dlls and it would be great to figure out what they are doing. Many of the developers who wrote them didn't ...

Cross-platform alternative to COM

I've been enamoured with component based programming (be it with COM, another system, or just using the paradigm in plain C++). It requires a bit of getting used to, if one is usually used to the "traditional" OOP model, but it's definetely worth it. It's made my code more maintainable and easier to extend. The project I'm currently wo...

COM typelib doubt

A type library declares the classes, interfaces, constants, and procedures that are exposed by an application or dynamic-link library (DLL). A type library is usually a resource in a program file; it can also be a stand-alone binary file with the extension .tlb or .olb. So is it possible that some DLL still expose interfaces without bei...