I am curious about COM+, DCOM. I know that MSFT does not encourage you to use this tools natively (meaning with C/C++, in fact there is not a lot of documentation available) but I want to learn to use these technologies, like embedding Internet Explorer into a C program.
I thought that maybe I could find people that worked with this or ...
Ok, so I'm trying to google the win32com python package and the python.Interpreter COM server. Unfortunately, python.Interpreter ends up as "python Interpreter" and not giving me any COM server results.
I'm trying to make a pluggable program that has a plugin to allow python code to run, and it seems like the python.Interpreter would b...
I am consuming a cpp COM object from c# code.
My c# code looks like this:
try
{
var res = myComServer.GetSomething();
}
catch (Exception e) { }
However the exception never contains any of the details I set in cpp, in particular my error message.
In my cpp side I have followed several examples I have found on the web:
...
ICreateE...
I have several class libraries containing some commands and auto-updaters for ArcGIS. Until now, each library contained an installer class, and we had a single Setup project that was in charge of installing all the dlls. Just like in here.
I have now created another library containing a Toolbar, that should contain all the commands we ha...
I'm trying to extract data from the following page:
http://www.bmreports.com/servlet/com.logica.neta.bwp_PanBMDataServlet?param1=&param2=&param3=&param4=&param5=2009-04-22&param6=37#
Which, conveniently and inefficiently enough, includes all the data embedded as a csv file in the header, set as a variable called gs_...
Say we have an out-proc COM server and a client. The client calls a method in the server and unexpectedly terminates. Is there a way for the server to detect this and interrupt the method?
...
I'm rewriting an old VBSCript WSC component into a nicer C# COM Component.
For a horrid reason the old component in one place is passed the Server Context, IServer by using
Set objCurr = CreateObject("MTxAS.AppServer.1")
Set objCurrObjCont = objCurr.GetObjectContext()
Set component.servercontext = objCurrObjCont("Server")
this is th...
I have a .NET dll which has some interfaces\classes which are exposed to com. during the build procedure a .tlb file is generated and this tlb is referenced by some c++ code. As a result the compiler generates a .tlh file for the tlb.
When I run the build locally one of the properties in one of the interfaces ends up with a correspond...
The VB6 help on GetObject says "You can't use GetObject to obtain a reference to a class created with Visual Basic" (the very last sentence!). My VB6 GUI exposes objects as an ActiveX exe, for other components to manipulate. I want the other components to connect to the GUI that's already running, rather than start a new instance of the ...
I'm dealing with some legacy systems that are using RS232 to communicate with peripherals. I'm not very experienced with COM interfacing. I have some code that can open and use COM ports, but it can't open ports that are used by other applications. I need to black box the packets so that we can use the same protocol for updated communica...
Hi,
I have encountered an error while debugging a VB.Net application in Visual Studio 2008. While debugging the console application in Visual Studio, when the application instantiates a Crystal Reports 'ReportDocument' object, VS2008 hangs. Even when the devenv.exe process has been killed, I am unable to kill the still running vshost...
Actually, it only fails the second time it's called. I'm using a windowless control to play video content, where the video being played could change while the control is still on screen. Once the graph is built the first time, we switch media by stopping playback, replacing the SOURCE filter, and running the graph again. This works fine ...
I am using anonymous methods to handle events in a COM object. Once the program terminates, it appears that the resources I am using in the anonymous method are not being "closed correctly" in that I get a first chance exception (InvalidComObjectException) for every resource I was watching. I suppose this isn't a big deal, but it doesn't...
I'm trying to receive and potentially send complex values through TWebBrowser (using TEmbeddedWB) with the provided external object.
For example; in javascript I would try to use the exposed method with an array as a parameter:
var test = [123, 'abc'];
external.someFunction(test);
//Or something more complex
var complexObject = {
som...
I've been able to create a small activex control, but it requires the dll to be registered on the client (using regasm).
How can i avoid this registration problem?
I'm attempting to write an activex control that is delivered over the web (to IE browsers) that will access the clients webcam (using directshow).
Here's my simple control:...
Is it possible to use early binding with LogParser.dll on VB6/VBA? When I try to set a reference to it, it just disappears with no error.
...
I'm trying to use a COM library that makes use of a vtable. However, something funky is going on with the stack after I call the functions, which tells me I'm doing something wrong.
The header file with the vtable definition is pasted here: pastebin.com/m2d66c18c (see in particular the code starting at line 810). An example is pasted he...
I am trying to produce a C# wrapper for a COM object that I have (named SC_COM.dll), but am having some issues linking it with Visual Studio 2008 (running Vista). I need to do this registration-free with the COM DLL--I'm using a manifest file to let Visual Studio know about SC_COM.dll, and that appears to be working. I used TblImp.exe ...
I'm currently working on a soft-input-panel for windows mobile and have run into a bit of a snag. The compiled DLL (once deployed) is loaded by devices.exe which is stored in the windows mobile device's ROM. This is causing quite a nightmare as Visual Studio 2008 refuses to see the devices.exe process (using attach to process) making it ...
Question: I have a COM server with a method as IDL:
[id(2), helpstring("method ExtractAvailableScanners")]
HRESULT ExtractAvailableScanners(
[in] VARIANT scanFilter, [out] VARIANT* scanPresent,
[out,retval] LONG* retVal);
In the header file this becomes:
STDMETHOD(ExtractAvailableScanners)
(VAR...