com

Where does out-of-process MSXML IXMLDOMDocument::save save?

Where does MSXML IXMLDOMDocument::save save? I mean when it's called with a file name argument. CComPtr< IXMLDOMDocument > doc; p->get_doc( &doc ); doc->save( CComVariant( L"C:\\pathto\\mydoc.xml" ) ); Where will "C:\pathto\mydoc.xml" be? Consider that the XMLDOMDocument is out of process, in this case located on a different physica...

Wrapping Web-Services for COM

I have zero experience with COM. I actually never thought, I'll need to do something with COM, thinking it's something that I luckily managed to avoid. Oh, well. I need to create a wrapper for Web Services, which could be used from COM. I was hoping, that it's a solved problem, but failed to find an easy solution (for example: just gene...

PowerBuilder equivalent to Debug.WriteLine?

Hi - I've got a PowerBuilder project that calls my .Net class library exposed to COM. I'm very new to PowerBuilder and just starting to pick it up. Id like to create some simple tests for my COM calls and I've looked for quite a while and can't find anything that is similar to the VS Diagnostics methods. Does this functionality exist? ...

Can my 32 bit and 64 bit COM components co-reside on the same machine?

I have a 32 bit COM component that is used mostly by ASP, we also have the 64 bit version. The 64 bit version is functionally identical and it also uses the same ProgID (and as far as I know the same CLSID's etc). Can I install/regsvr the 64 bit version on the same machine as the 32 bit version (obviously in a different folder) and hav...

Is it possible to reference a COM DLL in a managed project by path rather than by GUID?

I have a managed (asp.net, actually) project that references a COM DLL. Right now, the reference in the .csproj looks like this: <COMReference Include="thenameinquestion"> <Guid>{someguidhere}</Guid> <VersionMajor>1</VersionMajor> <VersionMinor>0</VersionMinor> <Lcid>0</Lcid> <WrapperTool>tlbimp</WrapperTool> </COMReference> ...

Handle HTMLElementEvents2 when DWebBrowserEvents2 has been handled using ATL's macros

I'm creating a Browser Helper Object using VS2008, C++. My class has been derived from IDispEventImpl among many others class ATL_NO_VTABLE CHelloWorldBHO : public CComObjectRootEx<CComSingleThreadModel>, public CComCoClass<CHelloWorldBHO, &CLSID_HelloWorldBHO>, public IObjectWithSiteImpl<CHelloWorldBHO>, public IDispatc...

How to import a tlb and a namespace in c++ at runtime when some condition meets ?

Hi Generally we import a tlb file at the starting of the program like #include < stdio.h > #import " sql.tlb " But i need to import a tlb file when certain condition meets in the middle of the program how can i do this. to load dll there is LoadLibrary() but to load tlb can i use LoadLibrary(). Since tlb is generated by using .dl...

COM interop object throws InvalidCastException in one project but not in other

I have a COM object I imported in my test C# solution. Everything works fine and continues to do so. Then I imported the same COM object in my actual solution and as a test implemented the exact same lines as in the test project. When I run the real project I get an InvalidCastException Unable to cast COM object of type 'CTWebReport.We...

Creating new C# version of existing COM object to use in Delphi program

We had a bit of a problem where we have lost some source code for a very old ActiveX component we had. We've got a Delphi7 program that calls the Active X component. Thats a bit of a moster and can't be changed too much. However, some of the functionality in the Active X component needs to be updated. Since we've been moving our apps to ...

Sharing Add-in between Office Apps

I have written an Office shared Add-in with C# and .NET 2.0. It uses the same COM Shim for all office apps. Currently, every instance creates its own instance of my class -- they have no knowledge of the fact that the add-in is running on another application. Is it possible to make it so that, say, when the Word add-in launches it can ...

How to get all the classes and properties of a Com Object.

Hello everybody, Anyone knows if there is any Delphi component or library that I could get all the classes, properties and types of an Com Object (something like a parser). i want to programmatically enumerate classes, properties and types. Bye. ...

COM: how to get more details about COM errors?

Greets, When working with DirectX, you get this nice header to #include called DxErr9.h which has really helpful functions like: DXGetErrorString9 and DXGetErrorDescription9 They tell you everything you need to know about the error given the HR. But now working with COM and OLE, I find I'm kind of on my own with the HRESULTS th...

How to make a .net(c#) library which can be used in delphi

Possible Duplicate: Create a C# DLL That Can Be Imported in a Delphi App Using stdcall - Possible? I am creating a c# library and like to make this library as com component which can be accessed from delphi. Please tell the how to achieve this. ...

properties of c# class is not visible at visual basic 6.0

I have created a class in c# and made the com visible property is true. But, i could not see the its properties at visual basic 6.0. what could be a problem? please help me ...

How can I get a list of COM apartments for a process from WinDBG

I have DLL running in IE context and it crashed on UnLoad under ApplicationVerifier. The error states that COM proxy was called from wrong context or in other words, COM object was accessed from a wrong apartment. A COM Proxy was called from the wrong context. 75a867c0 - Pointer to IID of interface being called on. 2 - ...

ASP.NET app hangs when accessing ActiveX component

We use MapInfo MapX mapping engine in our ASP.NET application. After server (Windows Server 2003 SP2) reinstallation we encountered a strange problem - web app hangs when accessing ActiveX instance. For example: MapXLib.Map _mapXMap = (MapXLib.Map)HttpContext.Current.Server.CreateObject("MapX.Map.5"); _mapXMap.MapUnit = MapXLib.M...

Creating a setup (MSI) to register (regasm) an assembly

Heya, I'm working on a toolbar for IE using .NET. Currently, I insert my .NET assemblies with gacutil, and register my COM assembly with regasm. I want to create a setup (MSI) for the project, but I can't seem to register the types. I have everything in GAC folder of the setup project, but I can't find a way to essentially run regasm ...

VB6 Error - Cannot load .ocx File

Good afternoon, I have been trying to load a OCX file into one of my VB6 projects for most of the day today. I've tried checking the COM registration in the registry the best that I know how, and have attempted several times using REGSVR32 on the file to no avail. All I keep getting from VB6 when I try to load the component (Under Pro...

COM problem between Unmanaged C++ and Delphi

Hi I have a DLL in unmanaged C++ : EditArticleManagerFactory.h: class __declspec(dllexport) EditArticleManagerFactory : public NamedClassFactory<SCEditArticleManager>, public SCBLEditArticle:ICOMEditArticleManagerFactory { public: STDMETHODIMP CreateManager(BSTR bstrName, SCBLEditArticle::ICOMEditArticleManager** pEditArticleMan...

How can I stop someone from calling my COM interfaces APIs?

I have a COM inproc DLL that we are using in our product. Now if someone finds out which interface and APIs we have exposed from the DLL then those APIs can be called easily. Is there a way to stop unknown applications from calling my APIs? Can we add some signature in COM? ...