I have a project in VC++ 6.0 where there is an exe and a InProc COM Dll. I want to be able to place a breakpoint somewhere in the InProc COM DLL, but VC++ won't allow me to set a breakpoint.
I have the source code for this DLL, however I cannot figure out how I can place a breakpoint in the code and the debug it?
Can someone help me.
...
I have this bit of code:
typedef CComQIPtr<MSXML::IXMLDOMDocument2> XML_DocumentPtr;
then inside some class:
XML_DocumentPtr m_spDoc;
then inside some function:
XML_NodePtr rn=m_spDoc->GetdocumentElement();
I cannot find anywhere in the MSDN documentation what that GetDocumentElement() is supposed to do? Can anyone tell me why ...
I am using Delphi 2010 to access objects stored in a C# Assembly written in Visual Studio 2008 using the techniques described in the Hosting CLR in Delphi. These techniques do work and I am able to obtain an instance of a .NET class - via an interface - and call its methods and read it properties. Calling the methods works fine as long...
I have written some code in VB that verifies that a particular port in the Windows Firewall is open, and opens one otherwise. The code uses references to three COM DLLs. I wrote a WindowsFirewall class, which Imports the primary namespace defined by the DLLs. Within members of the WindowsFirewall class I construct some of the types de...
Hi guys,
I want to build a push server that can handle a heavy load of push notifications that it needs to send. I was wondering if ApnsPHP (http://code.google.com/p/apns-php/) is the right chice for me, or if I should build it using some other language.
Any help or pointers would be highly appreciated!
...
i'm talking to a COM object (Microsoft ADO Recordset object). In a certain case the recordset will return a failed (i.e. negative) HRESULT, with the message:
Item cannot be found in the collection
corresponding to the requested name or
ordinal
i know what this error message means, know why it happened, and i how to fix it. But ...
I'm trying to understand what is the correct why to implement COM interfaces from C# code. It is straightforward when the interface doesn't inherit from other base interface. Like this one:
[ComImport, Guid("2047E320-F2A9-11CE-AE65-08002B2E1262"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IShellFolderViewCB
{...
By the "traditional" way I mean registering the DLL in registry.
There seems to be another method to set up it by going to mmc->Component Services->COM+ Applications and adding the .tlb file.
I have a COM library that supports both methods. When it installs, it registers itself in the registry as a COM component and it works fine. Howe...
I'm using code that treats an array of derived objects as an array of base objects. The size of both objects is the same. I'm wondering:
Is this safe in practice, bearing in mind that the code will only ever be compiled on Microsoft compilers?
Here's my example:
BOOST_STATIC_ASSERT(sizeof(VARIANT)==sizeof(CComVariant));
//auto_arra...
I'm not sure I've setup everything I've needed to in my C# class to properly, but it does work in COM. I've been looking for an example of a C# class that was successfully used in a C/C++ project, but haven't come across anything.
I've tried using the OLE/COM Object View app to open the .tlb file and save as .h, but it gives some errors...
Hi all,
I have created an RDP-control based on this article:
article
I add reference to "Microsoft Terminal Services Control Type Library” from the COM tab.
This added MSTSCLib.dll and AxMSTSCLib to the project. These two are interops of some COM native component.
How can I verify on which win OS my exe will work on?
meaning how ca...
From an out-of-process COM object (LocalServer32) can I determine the client process that requested the creation of the object? - to be specific I need to get hold of the client processes command line.
This question arrises because (due to poor standardisation, implementation and support) the potential 3rd party clients of the object ha...
I'm using a Class Library exporting a function via COM.
When calling this function from a JScript, it fails with the following error:
Error: System.Security.Permissions.SecurityPermission
Code: 8013150A
Here's the C# code of my library:
[ComVisible(true), Guid("B40EFE10-FC1B-43A0-ADA1-C923935F3537")]
public class ExodusGadget
{
...
I am struggling for days now with the following problem:
We have an executable that hosts a COM server, say x.exe. The COM object is instantiated as follows on the calling site:
hRes = CoCreateInstance(CLSID_InterceptX, NULL, CLSCTX_SERVER,
IID_IInterceptX, (void**)&pInterceptX);
It all works fine when x runs as an re...
xlrd makes it pretty easy to know what the last column is.
is there an easy way using win32com?
I have tried using ws.UsedRange.Rows.Count but this doesnt seem to give a correct answer.
...
I try to write a simple MFC - Word Automation to save for every 1 minute.
I follow this article : http://www.codeproject.com/KB/office/MSOfficeAuto.aspx
And this is what Im trying to implement , I'm new to COM so I think there's problem here:
my VBA is generated by Word 2010:
ActiveDocument.SaveAs2 FileName:="1.docx", FileFormat:=wdFo...
Hi,
Similar to LocalServer32, which is used to specify the path to a 32Bit Local COM server, is there any registry entry for specifying the path to a 64Bit Local COM Server?
If there is none, can we use LocalServer32 for 64Bit servers also?
Note: In my knowledge there are only 2 registry entries - LocalServer and LocalServer32. Accord...
I make a call to CoGetClassObject which COM then makes a call to DllGetClassObject... DllGetClassObject picks it up Queries and is happy to seat ppvObj with an IClassFactory interface pointer and then return S_OK. So why is CoGetClassObject returning E_FAIL? This is my very first attempt at creating a COM object. I have my proxy serv...
Hello,
I have a VB6 COM DLL. I want to use it from C++. I know how to register it, generate a tlb file from the DLL, and #import it in C++.
I'd like however, to load and use DLLs like this dynamically, at runtime, without knowing them in advance. Is this possible?
Thanks,
...
I use an Open Office API in my ASP .NET application for reading text content from *.doc files.
public static bool getTextV2(string siteURL, string[] search)
{
//Create a new ServiceManager Type object
Type tServiceManager = Type.GetTypeFromProgID("com.sun.star.ServiceManager", true);
//Create a new ServiceManager Com object ...