com

VBA: Function or interface marked as restricted. or the function uses an Automation type not supported in Visual Basic

Hi all I've got a COM object implemented in .NET and its definition it has a function F(IData [] data). When I try to use it from VBA, I get the 'Function or interface marked as restricted. or the function uses an Automation type not supported in Visual Basic'. I believe this error has to do with the fact that the function receives IDa...

What is the proper way for an activeX (COM) control to clean up when closed by its parent?

I'm having problems with my .net controls not getting cleaned up properly when wrapped for activeX use. Default behavior leaves the SDK's test container app (TstCon32.exe) running as a GUIless process when I try and close it. The workaround I initially found via google was to override WndProc and call Environment.Exit(0) manually. Thi...

GAC – Assembly is in the GAC but “Could not load file or assembly”

Hi, I have an Interop dll that was generated by Visual Studio for a third-party COM object that I am consuming in a .NET dll. I have registered both my consuming dll and the Interop dll in the GAC. I have to use the GAC because these DLLs are being used by a SharePoint 2010 workflow. When the execution gets to the point where my dll ...

Out-of-process ATL COM server on Windows Mobile

Do current versions of Windows Mobile (5.0, 6.0, 6.1) while using current tools (MSVS2008)support creating an out-of-process COM server? ...

event in jscript

in jscript i have com object that have event that call"Hungry" i want to bind function to the eventhandler how should i do it? (when i debug the script i can see that the object have a function add_Hungry(value), what the value i have to send??) ...

Calling CoCreateInstance during service startup

I have a windows service, that makes several COM+ calls during initialization. On some systems this windows service causes a deadlock during startup. At least one service or driver failed during system startup The problem with calling CoCreateInstance during service startup is that it might require other services to startup. And th...

How can I find the typelib identifier of the DirectShow interfaces for use with COM4j

I'm trying to interact with a webcam from Java on Windows (without going through the FMJ or JMF frameworks) by using COM4j. However, I'm unable to find the typelib identifier for Direct Show in order to build the interfaces. The COM4j site recommends using OleView to find the typelib, but I've gone through the list of typelibs there an...

InvalidCastException, QueryInterface call failing on COM component

First off, I'm extremely new to the whole COM scene so bare with me. I'm trying to use PCAnywhere's Ole automation in a .net applicaction I'm currently developing (VS 2010, c#). PCA 12.5 comes with a couple tlb files that when I try to add as references through VS I get an error on both saying 'A reference to 'E:\Dev\PcaOle\awrem32.tlb'...

Converting CComBSTR to _bstr_t with fcopy as false

I believe the following causes a memory access violation error as the false parameter (fcopy) causes the memory to be released for the CComBSTR: CComBSTR myCComBSTR; string strMyCComBSTR = string(_bstr_t(myCComBSTR, false)); However, I'm not quite sure why this is as the MSDN documentation says the following about fcopy: If false,...

Help with C# programming Reuters Triarch, specifically SSLConfig and SSLInsert

Hi, I'm having terrible trouble getting SSLConfig/SSLInsert (V1.2 of both) to connect at all, or even give me an error message if it can't. (There is a whole production application already working fine with SSLInsert, etc, but I need to generalise it a little and appear to have gone backwards.) Does anyone have experience of programmi...

How to write wrapper class of iTextSharp and expose it as a COM object

In order for me to get this DLL to work with MC Access 2000, I was told that a interop COM wrapper object would have the iTextSharp functionality encompassed in it. I have never created a COM object. I was wondering if someone out there has ever created one for iTextSharp to use in MS Access so I wouldn't have to "reinvent the wheel." T...

ISynchronize->Reset() fails with error result 0x80010120

When I run the following code: ISynchronize *sync_p; res = CoCreateInstance(CLSID_StdEvent, NULL, CLSCTX_INPROC, IID_ISynchronize, (LPVOID *)&sync_p); if (!SUCCEEDED(res)) _com_issue_error(res); res = sync_p->Reset(); The final line fails with error code 0x80010120 - "There are no synchronize objects to wait on...

Passing NT handles through DCOM

Is it possible to pass a raw NT handle (eg, to an event object) via a DCOM call - on the local machine, of course. If so, how would one go about doing so? ...

Access a COM interface from a service (apache) with PHP

I've been trying to create a PHP script which will run on a locally hosted web server, and will be able to access various programs on my computer through COM. I've had mixed success and failure, and I've been able to narrow down the problem. If I run the php script using php.exe, it works. If I run the php script using apache running fr...

Outlook 2003 and Outlook 2007 Plug-in COM Resources release

Hi All, I have done my second complete Outlook 2003 Plug-in. What I want to know is 2 things: Is it necessary to release the COM Objects when developing a Outlook 2003/2007 Plug-in? I know that they get released in time by the Framework, what I don't know is how often and is it really necessary? Why is Microsoft still using .Net ...

Unable to access methods of com interop dll from .net

I have an com dll which i an reffering from .Net, I have registsred that dll using regsvr32 and referred to my project. Unfortunatley I am not able to view any methods and properties in a particular Class of that dll, The class is defined as public but When i try to check methods and properties they are not visible. But the same dll ...

How can I progmatically click a link in a Winform Web Browser control?

I would like to know how to programatically click a link from with in a Winform Web Browser control. foreach (HtmlElement linkElement in webBrowser.Document.GetElementsByTagName("A")) { if(linkElement.InnerText == "Helpful Tips") { //Click Functionality } ...

choosing right data structure

Hi, I need to know What is the best data structure to use when transferring and storing large amounts of data across different COM objects in MFC application. (the data is usually large strings, xml files, images etc) Is there any memory issue if I use CList, CMap etc Thanks ...

mac os x Component Object Model equivalent

I'm trying to port an application I've written in Qt from the windows platform to the Mac OS X platform. The application is relatively simple: It queries the user for a document (either MS Word, or OOo Writer document). It than launches that that document inside the respective application, and than replaces various text elements with o...

com0com RS232 terminal Java program

i made a JAVA program that runs on a computer with 2 RS232 ports it works pretty good i connected 2 devices that comunicate with eachother trough RS232 i put the computer between the cable you can see everything getting send on a terminal window but after a random amount of time 1 device stops responding on queries normally device 1 ...