activex

Suppress ADO Security Warning in JavaScript/HTM Page

淺唱寂寞╮ 提交于 2019-12-10 21:14:37
问题 I have a fully functioning site stored on a network drive along with an Access Database which acts as the site's database. Due to lack of server side code, I am forced to use JavaScript to create an ADO ActiveX object to connect to the database. This works. The problem I am having is that whenever the user opens the site an ADO Security warning appears asking if they trust the site. If they press 'Cancel' the error thrown is: Safety settings on this computer prohibit accessing a data source

Toolbar Overlay over WindowsFormsHost

亡梦爱人 提交于 2019-12-10 20:08:39
问题 I have a SWF object embedded in a WindowsFormsHost Control inside a WPF window. I'd like to add a toolbar over the swf movie. The problem with the snippet of code I have below, is that when the new child is added to the host control (or the movie is loaded, I haven't figured out which yet), the toolbar is effectively invisible. It seems like the z-index of the swf is for some reason set to the top. Here is what it looks like: XAML: <Grid Name="Player"> <WindowsFormsHost Name="host" Panel

Enable ActiveX control to raise events without running in a System.Windows.Forms.Application

耗尽温柔 提交于 2019-12-10 18:09:23
问题 Our team is writing some code that requires us to interface with a networked device. The device uses a proprietary protocol, and the manufacturer has provided us with an interface library in the form of an OCX control (i.e., an ActiveX control). I had several false starts trying to use the ActiveX control, for example using native C++ (MFC) wrapped in C++/CLI, wrapped in see C#, I learned that I could drag and drop the control into winforms form, and some wrapper code would be auto-generated.

How to automatically enable ActiveX Elements inside a webBrowser Control

佐手、 提交于 2019-12-10 16:57:35
问题 I have a WebBrowser Control in my WPF Application, when I now load a local .html file that will display a .swf file, it works, but only after I accept the ActiveX-Warning. Is it possible to change the options of the WebBrowser Control to automatically enable ActiveX Elements such as flash-files? 来源: https://stackoverflow.com/questions/8205326/how-to-automatically-enable-activex-elements-inside-a-webbrowser-control

Can Matlab write a macro in an Excel file via ActiveX?

做~自己de王妃 提交于 2019-12-10 15:56:35
问题 There are several posts and instructions how to run Excel macros with Matlab via ActiveX. But is it possible to write such a macro with Matlab into an Excel file? Background: I wrote a Matlab tool which exports data into Excel files. These Excel files should have a specific macro included which is dependend on the containing data. Well there is an ugly workaround: I can create Excel templates with the specific macro already included. Then the respective template is copied and filled with the

How can I make jQuery.parseXML work in node.js

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 14:42:04
问题 I am trying to use jQuery parseXml in node.js I am getting this error: Error: Invalid XML: <?xml version="1.0"... But the problem is not in the XML The problem is in node-jquery.js: parseXML: function( data ) { if ( typeof data !== "string" || !data ) { return null; } var xml, tmp; try { if ( window.DOMParser ) { // Standard tmp = new DOMParser(); xml = tmp.parseFromString( data , "text/xml" ); } else { // IE xml = new ActiveXObject( "Microsoft.XMLDOM" ); xml.async = "false"; xml.loadXML(

Trouble with VB6 app, bringing a dialog to front and focus on Windows 7

╄→尐↘猪︶ㄣ 提交于 2019-12-10 14:28:11
问题 I have a small utility app written in Visual Basic 6 that has been happily running on XP clients for many years until recently a client who is using Windows 7 has notified and shown me that the behaviour is different. When my VB app displays the dialog, it remains hidden until the user clicks on it in the taskbar. I changed the code so rather than using a ".show vbModal" command, I changed to displaying the form with non-modally, and then added various API calls like BringWindowToFront and

Problem in hosting ActiveX on Vista (in a Visual Studio 6 C++ application)

可紊 提交于 2019-12-10 12:04:33
问题 I just installed Visual Studio 6 (SP5) on a Vista Enterprise machine. Had some problems but I think it’s set up alright. The problem is my VC++ 6 application fails when trying to host an ActiveX. I was able to compile it ok, though got a warning message from Vista about the rc.exe (“This program has known compatibility issues” ). When I debugged it I saw that my class that derives from CAxDialogImpl fails on its Create() method. The same application worked just fine on XP! Is there a known

ActiveX not working properly with default security settings

随声附和 提交于 2019-12-10 11:48:20
问题 I have written an ActiveX control in C# and have made it working using regasm command, and it works fine as long as the security level is set to low.. Then as a next step I have made a .cab installer (ICD - Internet component downloader), and have signed my .cab file and ActiveX .dll file with a test certificate. when I hit the html page from my browser the installation parts works fine with default security settings of IE, but at the end it seems that nothing is installed and a red cross is

JACOB library fails when used in multiple threads

早过忘川 提交于 2019-12-10 11:48:15
问题 I have a strange problem using JACOB from two consequently started identical threads. I have a utility class that uses a static ActiveXObject field for dispatching various requests to the WMI. The first thread works fine. When the second thread is started I get the following exception: com.jacob.com.ComFailException: Can't map name to dispid: ExecQuery at com.jacob.com.Dispatch.invokev(Native Method) at com.jacob.com.Dispatch.invokev(Dispatch.java:858) at com.jacob.com.Dispatch.callN(Dispatch