activex

Runtime error 429 in VBA, but class is registered

微笑、不失礼 提交于 2019-12-04 16:00:50
I'm trying to recreate a program that uses javascript to open a connection to a PLC and then display all sorts of information on a web page. I'd rather have it in a form in MS Access for various reasons, and have spent forever trying to find the right dll to use (Jet32X.dll, if anyone is curious). I finally tracked the CLSID called out in the javascript back to a registered class for the PLC, and I'm trying to create that object in VB code. It won't get any further than the Dim As New line, however, throwing runtime error 429: "Active X Component Cannot Create Object." Really wish I had some

WPF Window transparency while hosting a Flash ActiveX component

可紊 提交于 2019-12-04 13:04:50
My application has a custom window design, which means that every window has the following parameters set (XAML): WindowStyle="None" AllowsTransparency="False" One of the sub windows needs to display a Flash component, the Flash ActiveX component is hosted thrugh XAML: With regards to window transparency , there is a known issue with WPF and hosted winforms components, it just doesn't work out of the box. In order to be able to view the Flash component, AllowsTransparency must be set to "False", otherwise, the flash component will simply not be displayed. To maintain the window's transparency

Is there a way to fake file on file sistem or Write a file that visible only to my EXE file

强颜欢笑 提交于 2019-12-04 13:00:54
Ok i wrote and application that use Adobe ActiveX control for displaying PDF files. Adobe ActiveX control load files only from file system. So i nead to feed a file path to this control. Problem is that i don't want to store PDF files on file system. Event temporary! I wan't to store my PDF files only in memory , and i want to use Adobe ActiveX control. So i nead: 1) A way to fake file on a file system. So this control would "think" that there is a file, but would load it from memory 2) A way to create file on file system that would be "visible" to only one application, so my PDF control could

Get a screenshot from an ASP.Net page

跟風遠走 提交于 2019-12-04 12:26:22
问题 I have an ASP.Net page that has a button that when clicked I would like to take a screenshot of the user's PC and send it to a server. I'm ok with writing some sort of listener program to run on the server to accept requests to receive these images. Where I'm a bit hazy is the best way to get the user's PC to send the screenshot. Would this need to be done by writing some sort of Active X control for the ASP.Net page? It needs to be cross browser and operating system if possible. Just a point

Using ActiveX PropertyBags from C#

给你一囗甜甜゛ 提交于 2019-12-04 12:14:59
I have created a .NET user control with an ActiveX interface. It works well. Now, I want to be able to read and write from the property bag for the ActiveX interface. How would I do this? teebot The easiest is to use client script to pass the parameters values to the ActiveX <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title></title> <script language="javascript"> function Rundata(file) { var winCtrl = document.getElementById("YourActiveX"); winCtrl.Option1 = file; winCtrl.WriteToFile(); } </script> </head> <body> <form id="form1" runat="server"> <div> <object id=

Using SetParent to steal the main window of another process but keeping the message loops separate

ⅰ亾dé卋堺 提交于 2019-12-04 11:57:39
Background: My coworker and I are maintaining a million-line legacy application we inherited. Its frontend is written in VB6, and as we're devoting almost all of our resources to converting it to C#, we are looking for quick & dirty solutions to our specific problem. The application behaves in a plugin-ish manner. There are up to 20ish separate ActiveX controls that can be loaded at once in a grid-style layout. The problem is that the ActiveX controls do all of their processing on their own UI thread, and as a lot of it is blocking waiting on network access, the UI gets very soupy. When our

VB6 ActiveX exe - what is the proper registration sequence?

一个人想着一个人 提交于 2019-12-04 10:07:54
I have recently updated a Visual Basic 6 application that is an ActiveX exe, running on Windows XP. I have a couple of testers for this application who have received a copy of the exe and are attempting to run it. However, they are getting an error message "Unexpected error;quitting" when trying to do so. A key difference between their testing and my testing is that on the machines I tested on, I have admin rights and was able to register the application using the appname.exe /regserver command line. Reading the details at MS Support about file registration appears unclear: Visual Basic

scriptable objects in internet explorer content plugin

丶灬走出姿态 提交于 2019-12-04 09:59:00
问题 While there are many guides for Browser Helper Objects, i have a hard time finding resources on how to implement scriptable objects (i.e. besides the main control) for content plugins (i.e. embedded in website). To avoid misunderstandings: the question is about scriptable objects that a plugin object may return to the scripts in a website, e.g. from a method call. While i guess scriptability in general for these probably works via the usual IDispatch , i don't see how events are to be handled

Building an OCX with VS.NET?

你离开我真会死。 提交于 2019-12-04 09:34:19
What happened to OCX's? Are they no longer possible to create with the latest tools? I need to create an ActiveX control that I can place in Word, PowerPoint and Excel documents. If I use VS.NET, I can only create a UserControl DLL with COM Interop, but I don't think I can add that using the "More Controls" toolbox of PowerPoint's Developer Tab. What would you do? Yes, you can still create them. But you can't create an OCX with a .NET language. Need to be unmanaged C++ (or VB). The DLLs with COM interop you can create in C# or VB.NET are just .NET objects that are invoked via CCW. You can

IE 11 can't find Java Plugin to run Applet

空扰寡人 提交于 2019-12-04 08:56:45
I have application build with Java Applets, which works fine for Windows 7 with IE 9. Now I'm trying move it to another environment. There is Internet Explorer 11 . To run applet I'm using Oracle Deployment Toolkit Script with latest version taken from https://www.java.com/js/deployJava.txt . But the script doesn't detect Java Plugin . It only redirects to page java.com (suggesting to download latest JRE ). But my browser has Java Plugin installed (here JRE 1.7.80): There are also two SSV Helpers - maybe they cause the problem? Java 8 (u144) cause the same problem. Question: How to detect Java