activex

How do I call a method in a custom ActiveX dll using java/vb script

旧时模样 提交于 2019-12-04 07:26:05
I have created an ActiveX dll using VB6 and packaged it using the Package & Deployment Wizard which has resulted in a cab file and a demo HTML page. This ActiveX dll contains a simgle method that returns a string and accepts no arguments. The trouble I'm having is that when I call the method I always get a "Object does not support this property or method" error. But it does support the method I'm calling. What I'm trying to achieve is for users to go to a web page that has some java or vb script in it that calls method in my ActiveX and gets the string value returned. The DLL is intended to be

PHP and ADODB connection fail

微笑、不失礼 提交于 2019-12-04 05:57:46
问题 I have been tasked to migrate servers. This includes moving over apps I did not build, a couple of which have an ADODB.connection that I cannot seem to fix on the new servers (I only get blank screens). I have researched quite extensively ADODB.connection with PHP and cannot find a definite source. Most are related to VB Script, or even Excel documents. I even searched YouTube and the only thing I found wasn't even in English. I took some of the previous developer's code and created a test

Returning an index value from a group of ActiveX Option Buttons

非 Y 不嫁゛ 提交于 2019-12-04 05:43:26
问题 Let me start off by stating that I am a medical student, not a programmer. I have written a spreadsheet that will work as an exam with 50 questions. Each question has 15 multiple choice answers for which I use ActiveX Option Buttons grouped to each question number. I use Activex instead of Form Option Button because I dump raw data from an exam into a hidden area of the worksheet and each option button caption references a cell in the raw data to display a different answer choice. This way I

Can I create a ActiveX Control from a WPF UserControl and use in a non CLI C++ application?

谁说我不能喝 提交于 2019-12-04 04:49:24
I have created a Windows Forms UserControl that can be exposed as an ActiveX Control. Now I am trying to do the same with a WPF UserControl. The Winforms UserControl base class I noticed is ComVisible however the WPF UserControl class is not. Am I trying to do the impossible? Is the only way to achieve this to write a WPF control and then embed it in a Winforms UserControl using ElementHost and then expose that Winforms UserControl as an ActiveX control? Yes, I think ElementHost is the approach you will need to use if there is a chance of this working. This is because WPF controls are

AxAcroPDF - Vista64 Class Not Registered Error

筅森魡賤 提交于 2019-12-04 04:08:47
We have a WinForms application written in C# that uses the AxAcroPDFLib.AxAcroPDF component to load and print a PDF file. Has been working without any problems in Windows XP. I have moved my development environment to Vista 64 bit and now the application will not run (on Vista 64) unless I remove the AxAcroPDF component. I get the following error when the application runs: "System.Runtime.InteropServices.COMException: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))." I have been advised on the Adobe Forums that the reason for the error is that they do not have a

Can .Net custom controls be used in VB6 form?

删除回忆录丶 提交于 2019-12-04 03:59:14
I am doing some maintenance on a VB6 Windows application. I have a .Net custom control component that I would like to use on a VB6 form. Is this possible? I know how to access non-visual .Net components from VB6 by generating a COM type library for the .Net DLL, but can a .Net custom control be used like a .OCX from VB6? If so, how is the control instantiated in VB6, added to the form, etc. Thanks in advance for any replies. The Interop Forms toolkit will give you what you need: http://msdn.microsoft.com/en-us/vbasic/bb419144.aspx It lets you create UserControls in VB.net which you can then

Excel ActiveX Listbox not enabled on file open

a 夏天 提交于 2019-12-04 02:16:19
I am trying to figure out a bizarre situation. I have a workbook with many sheets. On one sheet, I have one ActiveX listbox (CTOverview.Listbox1). On a second sheet, I have a total of three listboxes (CTSelected.Listbox1 thru Listbox3). I am using a query to populate Listbox1 on both sheets with the same data. The code for this is below: strSQL = "Select Distinct [Region] From [UniqueCTList$] Order by [Region]" closeRS OpenDB ' initialize listboxes CTSelect.ListBox1.Clear CTSelect.ListBox2.Clear CTSelect.ListBox3.Clear CTOverview.ListBox1.Clear ' initialize with entire division value CTSelect

Can I have JavaScript select printer to use? [duplicate]

假如想象 提交于 2019-12-04 01:15:13
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Printing to a specific printer from a web app One of our intranet applications needs to print out to a non-default printer. Of course people regularly forget to select the correct printer. I'm aware that you can not do this normally via JavaScript but given that the browser is IE9 and I can add the webapp to the trusted zone (and fiddle around with the security settings at will), is there any way to write

How do I resolve “Run-time error '429': ActiveX component can't create object”?

半腔热情 提交于 2019-12-04 00:06:53
问题 My company has a VB6 application using Crystal Reports 7 which a client has asked to be installed on Windows 7 32 bit. It is currently installed on Windows XP 32bit SP2 machines at the client. Connection to the DB is done via ODBC to SQL Server 2000 instance on another server. On Windows 7, the installation works fine, however when you try to open the application, the error is given. I have looked at the following: Registering all the dll's and ocx files using regsvr32. Some will not register

Difference between COM DLL and ActiveX control

拟墨画扇 提交于 2019-12-03 23:35:29
Few similarities I know.. Both cannot execute by themself. It needs some program to instantiate it. COM DLL & ActiveX controls are platform independant. (is it so...?) Both requires to support the interface IUnknown and exposes three methods QueryInterface , AddRef , and Release . It also requires to be registered before using and un-registered after done with it. But how are they different? Can someone please list it down? Also my understanding is ActiveX controls are OLE custom controls (OCX). I have heard of terms like ActiveX DLLs. Is it another form of ActiveX control or something