Category : com

Suppose I have two domains with trusted relationshaip between each other. I initialize IDsObjectPicker to select users and I want to see users from both of the domains, but it shows me users only from the domain the local computer is joined to. I.e. under "Entire directory" in "Location" I see only current domain. Which ..

Read more

I am using a simple matlab code to send serial data to a COM port device, however I am having issues and would like an equivalent C/C++ code to achieve the same result. Shown below is the MATLAB code. s_port = serialport(‘COM1′,9600); configureTerminator(s_port,’CR’); write(s_port,char([50 01]),"char"); pause(1) write(s_port,char([16 2 150]),"char") write(s_port,char([55 18]),"char") write(s_port,char(54),"char"); I attempted to ..

Read more

I have this event in C# COM Library that gets triggered by a machine, and I want that event to trigger a function or eventhandler in C++ Winforms (either .cpp or .h file). My current codes: CSharpClass.cs [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface ICSharpClassEvent { void OnDownloadCompleted(); } [ComVisible(true)] [ComSourceInterfaces(typeof(ICSharpClassEvent))] [ClassInterface(ClassInterfaceType.None)] public class CSharpClass : ICSharpClass { ..

Read more

I’m trying to use DirectComposition on windows for drawing some visuals over Window and have following issue. Our application is multi plugin application and some of the windows already called CreateTargetForHwnd method to work with composition and now when I try to call CreateTargetForHwnd over that windows getting DCOMPOSITION_ERROR_WINDOW_ALREADY_COMPOSED exception. Is it possible to get ..

Read more