I'm using the EnvDTE COM objects to automate Visual Studio. I'm still looking through the documentation, however, I figured I'd drop the question here to see if someone already knows how to do this.
So, the problem is that when I get the DTE object and look at what Solution is open, I need to open another instance of Visual Studio if th...
I have installed my windows application that uses TeeChart ActiveX (a COM
Component for charting) using ClickOnce.
If I register manually TeeChart using regsvr32 teechart8.ocx, my
application works fine. But I want and I need to install the application using
ClickOnce.
How can I do that?
...
This is somewhat related to another question that I've asked that I've pretty much figured out. The last piece of the puzzle is using CoCreateInstance() instead of GetActiveObject(). I don't want to use an existing instance of EnvDTE, so I call CoCreateInstance, which properly fires off a new instance of VisualStudio. CoCreateInstance() ...
I am using an excel object (COM component) for excel manipulation. It works fine on my PC, but when I deploy the application to our Intranet I am getting this error:
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005
I am using windows authent...
I have a .NET 2.0 COM object that's used by VBA in Excel. It works fine on my dev machine, but when trying to use it on a clean VM workstation I get this error:
Automation error.
The system cannot find the file specified.
The dll is registered with "regasm /tlb /codebase mycom.dll" and not put in the GAC.
I don't have administration r...
Environment : Visual Studio 2005 , using the Tablet pc SDK
Language : C++, COM, ATL
I am using the COM classes for development of Ink recognition characters.
I am using IInkCollector, IInkDisp, and IInkRecognizer.
I am able to capture the ink and recognize it too.
But I want the Autocomplete feature so the handwriting automatically g...
Is it true that you cannot use COM Interop to expose COM properties? Everything has to be a method?
If this is not true, how do you do it?
...
When using COM boolean values are to be passed as VARIANT_BOOL which is declared in wtypes.h as short. There are also predefined values for true and false:
#define VARIANT_TRUE ((VARIANT_BOOL)-1)
#define VARIANT_FALSE ((VARIANT_BOOL)0)
Which is the best way to convert from VARIANT_BOOL to C++ bool type? Obvious variants are:
compare...
I've been working on a .NET library. Of course .NET has a good way of working with configurations, and therefore I can document to library users what they should put in their app.config.
However I've also to expose the library as a COM object, for legacy support. Some users of the library will be VB6 applications, which doesn't have a...
I'm curious because I couldn't find out about this on MSDN. I've found the Release() function is present in various COM objects which I'm obviously supposed to use for deleting pointers. But I'm not sure what does it return exactly? I used to think it would return the number of references which still exist to the object remaining, theref...
Disclaimer: I'm completely clueless about .net and COM.
I have a vendor's application that appears to be written in .net and I'm trying to wrap it with a web form (a cgi-bin Perl script) so I can eventually launch this vendor's app from a separate computer. I'm on a Windows Server 2003 R2 SE SP1 system and I'm using Apache 2.2 for the...
Hi,
I am working on an application that has more than a few dlls written in VB6. VB6 code includes COM dlls and ocx controls. The rest of the code is in C++ and C#. I have been assigned the task to make the application code base compatible with 64bit architectures. Loads of help material is available for C/C++ code so thats not a proble...
Yesterday I was trying to batch convert a group of PPTs into PDFs for a friend, and I decided to have a look at PowerShell, since it's been sitting on my HD for a while.
Here's the code I've come up with.
$p = new-object -comobject powerpoint.application
# I actually don't know why I have to set the window to visible,
# but it doesn'...
I am using the vs2008 debbuger for a c++ project that uses COM objects of a .NET assembly.
I am getting a 'DisconnectedContext' message from the managed debbuging assistant, but i can't figure out which of the pointer is holding a reference to a bad COM object.
Is it possible to keep track of the appartment/context in a thread with visu...
I'm working on an application that is about 8 years old, and it uses version 8.0.0.4 of the Crystl32.ocx file for viewing reports.
The issue is, when I go to view the report, it shows a parameter screen, that the user can CANCEL from. But, if you click CANCEL, the report window STILL opens, and shows a report with no data... (Or data ...
Generated a debug diagnostic dump file for a COM+ application. Upon analysis look like threads deadlocks at line OLE32!SwitchSTA. My symbol path is pointing to msdl.microsoft.com/download/symbols. Is there way to know what arguments were passed to this method?
In general, how does one use Windbg to find the input argument value to the m...
I want to call WaitHandle.WaitOne(TimeSpan) in .NET, but I'm on the STA thread and it pumps messages while waiting. For reasons that are beyond the scope of this question, I need to wait without pumping. How can I wait for a WaitHandle to be signaled without pumping messages?
It seems in some scenarios that WaitHandle.WaitOne does not...
I am some ATL code that uses smart COM pointers to iterate through MS Outlook contacts, and on some PC's I am getting a COM error 0x80004003 ('Invalid Pointer') for each contact. The same code works fine on other PCs. The code looks like this:
_ApplicationPtr ptr;
ptr.CreateInstance(CLSID_Application);
_NameSpacePtr ns = ptr->GetName...
Hi all,
I have a VBScript COM Component where I'm using Msxml2.FreeThreadedDOMDocument.4.0 however is there / will there be any benefit from using Msxml2.FreeThreadedDOMDocument.6.0
I played with it a bit on a local machine and saw minor performance improvements using 6.0 however I couldn't find any good reference on the web relating t...
Hi,
We have a filter for Microsoft ISA Server 2006 written in C++. The code was originally compiled using Visual Studio 2005 and hunky dory. Since we are using Visual Studio 2008 for everything else, I tried to convert this project to Visual Studio 2008. The conversion wizard runs fine and the code compiles correctly.
However, when I t...