Signal a thread accross Process boundary
Would it be possible for a COM client to signal a thread in a COM Server? ...
Would it be possible for a COM client to signal a thread in a COM Server? ...
I am currently working on a solution to allow multiple Visual Basic 6 applications to talk and sync with each other. My background is mainly managed C#, but I have a little background with VB6 and C++ and is why a pure managed solution would be optimal for me. Windows Communication Foundation (WCF) was my first choice, but I am struggl...
I am trying to write a Browser Helper Object (BHO) in C# that manipulates the DOM on a separate thread. I've seen several other questions related to this, and the answer seems to be "you need to marshal the DOM objects from the thread they were created on to your worker thread." Good advice, and it makes perfect sense, but I can find no ...
Hi. I have to read a stream which is sent from a homemade device over the serial port. The problem is that it should be deployed on a machine where I don't have access to install anything new, which means I have to use the python standard libraries to do this. Is this possible, and if so, how can I manage this. If it turns out to be a...
Our code-base has a lot of COM objects, so typically we'll have something like: //this is the IDL-generated IGetTime interface header #include "gettime.h" //our COM class implementation of IGetTime class CGetTime : public IGetTime { public: CGetTime(CGetTimeCF &factory,...); //COM-specific constructor params /* IUnknown */ ...
Hi, I have created a COM DLL to apply Overlay icon for file/folders. If I open a folder, IsMemberOf() function has been called for each files. And I can determine whether icon to be set for the particular file by querying the db at run time based on file status. (I will update the file status in db say modified/added similar things) ...
I've created a COM-class that implements some interface. I want to add a method to this interface. The parameter of this method is a pointer to the interface defined in some external olb-file. In my project this olb-file imported without no_namespace directive. So, the interface name in the parameter of the method must be qualified in h\...
This is not exactly a straight-out question because I have just solved it, but more like "am I getting it right" type of question and a reminder for those who might get stuck into that. Turns out, Delphi does not align variables on stack and there are no directives/options to control this behavior. Default COM marshaller on my XP SP3 se...
How can I perform CRUD (Create, Read, Update, Delete) for todos/tasks/appointments/etc from Outlook. Does Microsoft have a data api like Google that I can use to interact with Microsoft applications? I prefer this in C++ (Microsoft Visual C++), but Java will also work. ...
I have three pieces of code that i'm working with at the moment: A closed source application (Main.exe) A closed source VB COM object implemented as a dll (comobj.dll) Code that I am developing in Python comobj.dll hosts a COM object (lets say, 'MainInteract') that I would like to use from Python. I can already use this object perfec...
I need to use an unmanaged COM dll in c# program. Dll contains a function, say: Open(char *name); But when imported to c# (Project->Add Reference) it is available as: mydll.Open(ref byte name) How can I pass a string to this function? When I do: byte[] name = new byte[32]; mydll.Open(ref name); I get compilation error "Cannot c...
Can anyone tell me how I can manage(or if not possible, monitor) programatically the people who are allowed to interactively logon(that is through actual physical access) on a windows machine attached to an active directory architecture? Something in BCL/FCL is preferred but COM interop/WMI is also fine. ...
The following code behaves differently depending on if I use the 32 or 64 bit version of wscript: Set oSQLServer = CreateObject("SQLDMO.SQLServer") For Each o in oSQLServer.ListInstalledInstances MsgBox o Next In 32 bit, it will list the instances of my 32bit server (SQL Server 2000), in 64 bit I get the contents of my 64bit serv...
Is this a valid null check on a DOUBLE pointer parameter passed in a function if (!pdblValue) return E_POINTER; ...
Windows SDK features SUCCEEDED macro: #define SUCCEEDED(hr) (((HRESULT)(hr)) >= 0) -----------------------^-------------^----- clearly as with other macros there're parentheses to ensure right interpretation of the intent by compiler. What I don't get is why there're parentheses around (HRESULT)(hr) (I marked them with ^ character). ...
I'm working on a VB6 application that consumes .NET objects via COM Interop. The application is working well, but I feel like I'm taking a performance hit each time I instantiate a .NET object from within VB6. For example, I have VB6 code that loops through a recordset and instantiates new .NET objects for each item in the recordset an...
Here are the error details: In the Error List: Error 1 Cannot register assembly "C:\Users\cboardman\Documents\Visual Studio 2008\Projects\ExcelAddIn1\ExcelAddIn1\bin\Debug\ExcelAddIn1.dll" - access denied. Please make sure you're running the application as administrator. Access to the registry key 'HKEY_CLASSES_ROOT\ExcelAddIn1......
When objects get added to the Windows Registry, they show up like so: MyNamespace.MyType I seem to remember running into issues with my namespaces and classnames being too long when trying to register them for COM. Is there a maximum length limitation in registering classes in Windows or COM+? ...
Hi, I have a 3rd party component, lets say FIPreviewHandler to handle preview, which implements IPreviewHandler. FIPreviewHandler is implemented as a Managed Component, and uses the IPreviewHandler interface and related interfaces through means of an interop. FIPreviewHandler is registered using regasm.exe as COM. I have a client appli...
I'm a web developer so all my experience is with ruby, python, or PHP. However, I'm gonna do a little windows programming. I want to build a light weight web server that can handle incoming requests and pass them on to a COM port. I want to be able to distribute it as an exe that will install the server as a windows service. What do yo...