I am trying to find the organizer of an appointment using AppointmentItem->GetOranizer
This is a COM addin in C++
I am seeing some peculiar behaviour
THe call succeeds if the Outlook user is NOT the organizer
Fr meetings organized by the user it always fails( exception thrown)
any suggestions
...
I am a COM object written in ATL that is used from a C++ application, and I want to pass an array of BYTEs between the two. My experience of COM/IDL so far is limited to passing simple types (BSTRs, LONGs, etc.).
Is there a relatively easy way to have the COM object pass an array to the caller? For example, I want to pass a raw image ...
The "ATL simple object" wizard doesn't provide a way to specify that a new class is derived from an existing coclass and its interface. In Visual Studio 2008, how do I make a new ATL COM class derived from an existing one (i.e. Base implements IBase, and I want to make a new Derived class derived from Base that implements IDerived, where...
What are profound advantages that one get when using COM for developing components over the WCF ?? Is there anything that can be done with COM and not with WCF ??
...
When working in the unmanaged world, we have to make sure that we clean up after ourselves if we have allocated memory on the heap (e.g. by using the new keyword in C++); we also have to make sure that we AddRef COM components that are created using CreateInstance and to Release it later; perhaps something like:
SomeNameSapce::IObjPtr o...
I have a COM interop assembly, and I would like to check from a .NET application whether the component I'm about to create is installed on the machine.
I would like to provide a nice error message if it is not installed.
Put the instantiation into try-catch is not a good solution for me, as I would like to distingwish between the miss...
Hi!
The net is overflowing with explanations of the "dreaded diamond problem".
So is StackOverflow. I think I understand that bit, but I fail to translate that knowledge into comprehending something similar yet different.
My question begins as a pure C++ question, but the answer might well branch over into MS-COM specifics. The genera...
I am writing a COM object in C++ using ATL and am not sure whether I should be using VARIANT_BOOL for my methods/properties or not. The object will be called by other C++ apps but I cannot rule out usage from .NET.
I can stick to good old BOOL (which IIRC is simply an unsigned int) but as VARIANT_BOOL is there, shouldn't I be using it?...
I develop industrial client/server application (C++) with strong real time requirements.
I feel it is time to change the look of the client interface - which is developed in MFC - but I am wondering which would be the right choice.
If I go for a web client is there any way to exchange data between C++ and javascript other than AJAX <-> ...
The Oracle community has a several support sites (here and here) that have lists of errors. The first site even has suggestions for how to fix them.
Does anyone know of an equivalent list for Microsoft COM, preferably with Office Interop issues?
...
I have been working on a wrapper for a COM object that can only take and return strings. The interface for the COM object looks like this:
interface IMapinfo
{
void Do(string cmd);
string Eval(string cmd);
}
Now I have made classes that wrap up basic functions like so:
public class Table
{
...
We are running a website using Active Server Pages & COM+ components. The ASP pages call COM+ components which in turn communicates with external systems and respond to ASP page requests.
We find that the application becomes slow over a period of time and requires restarts (like in couple of days). The website runs on good hardware and ...
I have a software diagnostic page on which I would like to list the File Version information of a couple of COM DLLs. The page is running under the normal, restricted ASP.Net account (NETWORK SERVICE).
Given the ProgIDs of a COM library, what's the best way to go about getting the physical file path or otherwise accessing the file versi...
I have run into a bit of a desgin issue with some code that I have been working on:
My code basic looks like this:
Main COM wrapper:
public class MapinfoWrapper
{
public MapinfoWrapper()
{
Publics.InternalMapinfo = new MapinfoWrapper();
}
public void Do(string cmd)
{
//Call COM do command
}
...
I've been tasked with integration testing of a large system. Presently, I have a COM dll that I'm testing useing a UI that I created that kicks off a series of unit tests that call into the dll. This works, but I'm wanting to migrate this over to MbUnit. When I start the first test in MbUnit, it seems to hang at "Found 1 tests". I end u...
I have a project where I have to interact with two different devices that supply data via COM over USB. The client is telling me that this can be done easily with HyperTerminal but I am unfamiliar with it. I am coding with .NET 2.0 (but can use 3.5 if necessary).
What would be the easiest/quickest way to obtain the data from these hardw...
Hi all.
I am trying to see if Reg-Free COM is something we can use in our web application to ease deployment of legacy COM components. However, before I get onto looking into things like using it for Interop situations, I can't get a simple test to work. Here's what I have done :-
1) Create a new VB ActiveX DLL project. Left all option...
We have an application which uses COM dll.Now, we are pushing updates of this dll.We copy the new dll ( overwriting the existing one) and register the dll. Is this a good practice.Or, should we first unregister the dll already on clients machine.
...
Given two interface references obtained from different sources. Is there a programmatic way to tell whether they're implemented by the same instance?
A simple equality check of the interface references always fails.
EDIT: Large parts of the original question, which turned out to be an independent problem have now been moved to a new ...
Hello,
I'm trying to write a simple program in VC++ which will just initialize the task scheduler. I'm following the example suggested at the MSDN site, but I get unresolved symbol errors from the linker.
The error is on this line:
hr = CoCreateInstance(CLSID_CTaskScheduler,
NULL,
...