How to initialize a IMimeMessage object from IStream
Given an empty MimeMessage created with e.g. MimeOleCreateMessage function, how can I initialize it from an IStream / data buffer, which contains the complete message text? ...
Given an empty MimeMessage created with e.g. MimeOleCreateMessage function, how can I initialize it from an IStream / data buffer, which contains the complete message text? ...
Hi, I'm using WinForms controls in IE. Something similar to this: var MyControl = new ActiveXObject("MyComponent.MyControl") and I want to be able to use prototype feature for MyControl.: MyControl.prototype.newFunc = function(){alert('hi there');} Is it possible at all? I thought about System.Runtime.InteropServices.Expando, but ...
I am planning to use various objects that are exposed as COM objects. To make them easier to use, I'd like to wrap them as C# objects. What is the best approach for this? ...
I am attempting to create a new COM object in my DLL using the ATL Simple Object Wizard in Visual Studio 2005. I enter the short name for the object, and all of the other fields are derived. However, when I click Next in the wizard, the following error message comes up: Object 'IXxxInterfaceName' already exists I have searched my en...
Is there a COM or .Net SDK for IBM Rational Rose? I need to access information stored in Rational Rose (that the unisys XMI Export add-in does not expose) - I have tried searching a few times but just kept finding references to the java SDK rather then an SDK for rational rose itself... does anyone know if such a thing exists? Ideally ...
Hi, I have following block of code ///////////////////////////////////// CComVariant newVal; //pass the CComVariant and get the strings array!!! GetStrList(newVal); USES_CONVERSION; if (((newVal.vt & VT_ARRAY) == VT_ARRAY) && ((newVal.vt & VT_BSTR) == VT_BSTR)) { SAFEARRAY* paArray = newVal.parray; BSTR * str = NULL; SafeArray...
EDIT: Since the original wording of my question caused much frowning I re-phrased it. Sorry about the confusion. Until now all my COM DLLs had the extension .dll, but I assume there are some rules about that. I know there are .ocx, .oca, .tlb and .olb files. I'm aware that these files all contain "COM stuff" but what exactly? What are...
I have written a multi thread unmanaged application which uses COM objects in its worker threads. Everything went fine until I started using .NET objects exported as COM to do the work. Playing around with the code and commenting out parts of the .NET object functionality I managed to pin it down to the usage of COM objects from within...
I need to pass a Scripting.Dictionary between my C# app and another app. I would like to be able to create instances of and modify the dictionary in my C# app. I know little about Scripting.Dictionary and ActiveX in general. Various forums suggest that I should use functions like System.Type.GetTypeFromProgID() and System.Activator.Crea...
I'm trying to write a COM add in for Excel in C# that disables the ability to double click a cell and then edit it, I want to popup a box saying that editing a cell this way is prohibited and then stop all execution. Looking through the documentation at Microsoft this seems like a very easy task, you create an Application event AppEvent...
Does CoCreateInstance automatically calls AddRef on the interface I'm creating or should I call it manually afterwards? ...
Hi, I am trying to get actual function names from their ordinal numbers from a COM dll. I tried using dumpbin.exe but it only returns [NONAME] for each ordinal (except the first few). ordinal hint RVA name 21 0 00002439 DllCanUnloadNow 25 1 00007F41 DllGetClassObject 116 2 0000539C DllMain ...
We have large C++ project that we used to compile with the /MP switch to take advantage of multiple cores. However, we recently brought in some code that uses #import on a couple of tlb's, and #import is incompatibile with /MP, which means we are back to single threaded builds and a lot more time to get coffee. Any suggestions on how t...
I have an out of process COM object that we are calling from C# using dllhost (we were unable to use COM+). This works great, and I have my own pool of objects that I can use whenever I want. The COM object will be reused many times and is long running (> 20 minutes sometimes). Unfortunately, this is an old VB ActiveX dll that occasional...
I have an IE instance embedded in my C application using COM. With IWebBrowser2.Navigate I can pass headers to be sent along with the request, except apparently "Accept-Language". It seems the language settings from IE itself always override the value I pass in for that header. Is there any way around this? ...
I need to have a virtual com port created so that when the device(windows mobile) usb port is connected to Tracking box serial port has the lead put into it a com port is added to the device. I want to sends the data via the com port using gprs to a specified address and port number that we set in the tracking box ...
Hello, Can someone please guide me on how to pass the reference pointer to the dialog class so that it can call DoModal? e.g. EditorSvr.cpp -- implementation of the interface class (which is also located in a DLL) CDialogClass1.cpp -- Dialog class that will receive the pointer from EditorSvr.cpp I tried to search the whole google bu...
I trying to use a ".h" file from Windows SDK in a .NET language (maybe C#), but without success. This header exposes some Windows Media player functionality through COM. If I use Win32 C++, I can use it with no problems, so I thought that I could use Managed C++ as a "Bridge" to expose it to C#. The header file is the subscriptionservic...
Here is the code. A Few notes about it. DStr is an string class that is internal to our company. It functions much like CString. I can connect to the database and run non-parameterized queries. Also this insert works fine if I do not use parameters. The cmd->Execute statment throws an exception. This is where I am getting the error...