On the server I would like to call into a dll from php. Using a COM object. This wasn't a problem, until I tried to use some WPF features.
I get the following error:
PHP Fatal error: Uncaught exception
'com_exception' with message 'Source:
mscorlib Description: Requested
registry access is not allowed.'
Thru the ProcMon uti...
I'd like to create a COM server that can hold it state across the calls. My goal is to have a thread-safe in-memory database. And provide an access to it via COM interface.
Is that possible?
...
I've looked into COM servers and Windows services but I'm not sure what best suits my purposes or how to do it. What I want is something that can be started and run for an indefinite amount of time which holds an object so that other processes or applications obtain references to that object (or make requests to the server) to modify or ...
Short version of question:
How can I author custom controls for MS Access 2003 without resorting to VB6 ?
Long Version:
I have been spoiled with the pleasure of writing C# WinForms apps for the past 6 years and now I have to modify an Access 2003 application. Yes, it will eventually be rewritten as a Dot Net app, but for now, it mu...
Hi
I am about to expose a service written in C# to a legacy C++ application using COM. What is the best approach to report errors to the unmanaged client? Throwing exceptions or simply return an error value?
Thanks,
Stefano
...
Gentlemen and esteemed ladies.
I posted this question in the COM forum at Code Project and got a snotty reply so hopefully you will be more helpful.
I see that Microsoft has a COM library for Direct3D 9 exposed with GUID 81BDCBCA-64D4-426d-AE8D-AD0147F4275C.
Has Microsoft exposed Direct3D 10 on COM and if so, what is the interface GUI...
It doesn't get much easier than using getopt() to parse command line parameters in C/C++.
Is there anything similar for Delphi? Or ideally, with the same syntax? I know Delphi supports FindCmdLineSwitch and ParamStr(), but those still require some additional parsing.
I want something that works like getopt() in C. Something that easily...
I'm trying to embed a Flash object in my app. I've added a reference to the ShockwaveFlash COM Object but the app fails at instantiation:
ShockwaveFlashObjects.ShockwaveFlashClass shockwave = new ShockwaveFlashObjects.ShockwaveFlashClass();
With the following error:
System.Runtime.InteropServices.COMException : Retrieving the COM...
I have MapPoint 2009 installed and added a reference to the "Microsoft MapPoint 16.0 Object Library (North America)" COM component to my C# project.
If I do the following, I can get a list of all the "places" within a specific city:
var m = new MapPoint.Application();
var map = m.ActiveMap;
MapPoint.FindResults r = map.FindPlaceResults...
I read in here I should stick with STA threads while working inside ArcMap. I was using a normal BackgroudnWorker, and my code was running really slowly. I am trying to change it so that the worker creates an STA thread inside and gets it to run on the "heavy" stuff.
My problem now is that after the 2nd thread is done working, all my co...
I have a COM addin for Excel that adds a new toolbar/menu to Excel. One of the command reads a file and adds picture to the current worksheet. The pictures when clicked, calls a macro inside an XLA file that calls the method in a .net addin.
The problem is that I had to create a .XLA addin just for this call routing because Shapes cann...
I am trying to write a wrapper around a legacy COM object and install the wrapper into the GAC. The goal would be to automate the setup of specific configuration information the component requires, and make a common strongly typed interface for all of my applications to use.
My solution thus far is to keep an XML configuration file in ...
Is it possible to host Silverlight in the Windows.Forms without the WebBrowser control to avoid unnecessary COM marshaling?
EDIT: The goal is to use a rich graphic content like WPF or Silverlight on older platforms like Windows 2000.
...
I would like to be able to link some data from a custom application to a cell in Excel.
What tech would you use to do that? I'm primarily a Unix-developer, and don't know win32 technologies in depth. But as far as I understand DDE would be the easiest, even though it is very old tech.
Being able to use it with other office suites such ...
I have a 32-bit ATL COM component without a type library. It has a class factory for one given class that implements several interfaces.
When I use it as an in-proc server, everything works fine - the client side invokes CoCreateInstance(), the object is instantiated and QueryInterface() retrieves a pointer to a requested interface. But...
I have extensive unmanaged Windows CE 5 C++ code that provides a UI that I want to use in a new product by combining it with a large amount of newer business and communications logic written in managed C# on Windows CE 6 and the Compact Framework.
The UI may know about the business logic, but I want the business logic ignorant of the UI...
I asked a question the other day regarding overlay icons. With help, I figured out how to get that working.
Here's how an icon overlay works (as far as I understand): Before the shell draws an icon it contacts all the icon overlay handlers in the system to determine whether it should draw an overlay on the that particular icon.
My se...
I have found that when I add new events to an existing COM/IDL interface, I sometimes run into strange issues unless they are added to the end of the interface.
For example, say I have the following interface:
interface IMyEvents
{
HRESULT FooCallback(
[in] long MyParam1,
[in] long MyParam2,
[in] long MyPara...
Ok, imagine the simplest solution in Visual Studio 2008 with framework 3.5 (OS = Win XP) where I have added a class library. Then I've added a COM Class. This COM Class is so simple, it only exposes 1 function:
Public Function SayHello() As String
Return " Hello."
End Function
I've build this class library, which produced the .dll and ...
I have an overridable sub in my base class
Project1:
Public Class BaseClass
Protected Overridable Sub MySub(ByVal Parameter as MyType)
End Class
Project2:
Public Class DerivedClass
Inherits BaseClass
Protected Overrides Sub MySub(ByVal Parameter as MyType)
End Class
MyType is a type that comes from external COM library. W...