activex

Updating caption on ActiveX button in Excel vba

这一生的挚爱 提交于 2020-01-07 05:11:12
问题 I'm trying to update the caption of an ActiveX control button on an Excel spreadsheet to note that the code associated with the click event is working. The code pulls data from an azure database so pressing the button triggers anywhere from a 5-10 sec delay. My original code had a single sub that essentially looked like this: Sub GetInfofromDB() btnUpdate.Caption = "Updating...." <<code to get data from azure db>> btnUpdate.Caption = "Update List" 'reverts button to standard text End Sub

IsWindow(activeX.GetSafeHwnd()) always false after upgrade to VS2010

試著忘記壹切 提交于 2020-01-07 00:54:44
问题 I have an MFC application that uses an ancient (circa 1999) third-party ActiveX control. Since upgrading the project from VS2008 to VS2010, I'm having problems... In the OnSize handler of the parent dialog IsWindow always returns false for the handle returned by control.GetSafeHwnd(), even when GetSafeHwnd() returns a non-NULL value. The rest of the control's parent dialog is displayed fine, but it doesn't seem to respond to any input. I've seen this article, but GetSafeHwnd() isn't returning

Will msscript.ocx stop working on Windows 8?

折月煮酒 提交于 2020-01-06 15:52:11
问题 As mentioned here, this component became a part of the windows operating system. However VB6 runtime may not be supported on Windows 8 and beyond. So I'm afraid this component may be going away too (even tho it is a part of windows OS). We are going to be attempting to utilize it via a C# consumer using Interop.MSScriptControl.dll, very soon. I've even seen some folks have issues with it on Windows7. Has anyone had success running it on Windows 7 and Windows Server 2008 R2? Does anyone think

ActiveX Control always working on my machine - unpredictable behavior on others?

随声附和 提交于 2020-01-06 12:45:54
问题 I have a question about my ActiveX control not always working in IE on other machines. Context: I'm working on an internal app for my company. It is designed to be a standalone web-page config tool for viewing a static customized version of our web app. The user may select the colors, images, and other settings they would like to see, and these will be present in the static mockup/preview version on their machine when they click a button. Implementation: my javascript file creates a

get row count of excel sheet from javascript

本秂侑毒 提交于 2020-01-06 08:03:25
问题 i am trying to get total number of rows in my excel sheet with javascript . here is my code var Excel; Excel = new ActiveXObject("Excel.Application"); Excel.Visible = false; a= Excel.Workbooks.open("C:/work/ind.xls").ActiveSheet.Cells(1,1).value; alert(a); this show the value at 1st index , but i was wondering if there is any option of getting the total rows of this active sheet . Thanks 回答1: Replace a = Excel.Workbooks.open("C:/work/ind.xls").ActiveSheet.Cells(1,1).value; with a = Excel.Rows

Register DLL (ActiveX) for Non-Admin user

喜你入骨 提交于 2020-01-06 06:41:33
问题 I try to register dll (ActiveX) for non-admin user using MSI. To create registry settings I have register the dll in admin mode, then exported the relevant registry entries and renamed all HKLM to HKCU. When I install it for non-admin user all works fine. But when I use the same settings with admin user, there is a problem of discovering TypeLib. What should be changed in the registry entries to work both for admin and non-admin user, when the registration done under HKCU? Thank you 回答1: If

Automation server can't create object

橙三吉。 提交于 2020-01-06 05:35:07
问题 I am writing a C# object that I need to be able to access from a javascript application. var util = new ActiveXObject('Namespace.Class'); However, when I attempt to create the object I get an error saying, "Exception: Automation server can't create object." I have registered the object for COM interop and the assembly is signed. NOTE: This is NOT a webpage and is NOT being run in the browser. I am able to create other COM objects in this same way, so my security settings are already set, and

Can't get the handle of a Cwnd Class in MFC Windowless Activex?

╄→гoц情女王★ 提交于 2020-01-05 12:23:14
问题 I have asked two questions earlier about this and for each post there was some solutions i tried them, but the problem still exist. My first question was : why a windowless Activex does not return the Handle. the suggestion was "change the creation setting an make windowless activate off, i have tried it but still m_hWnd property has returned zero as GetSafeHwnd() method has did. the second one was the same question this one focused on COleControl class and it's ancestor CWnd. the solution

Can I make my private DirectShow filter discoverable by Moniker by external programs?

喜夏-厌秋 提交于 2020-01-05 08:09:21
问题 This is a long shot but if I could do this it would save me time and a hassle. I have a DirectShow video filter that is a typical external DLL (AX file) that feeds video to Skype. I already know how to use a filter privately. However, I don't know if it's possible to make a private filter, one that is embedded in an EXE and is not an external DLL, discoverable by external programs. As far as I know, the main way DirectShow filters are made visible is via registering them in the Registry as an

OOTB way to check for admin permissions before running VS2010 Installer MSI?

蹲街弑〆低调 提交于 2020-01-05 07:26:24
问题 I'm creating an installer for a 3rd Party ActiveX DLL running in IE7-9 on XP-Win7. The MSI should perform the following: Check for admin permissions. Notify the user and exit if insufficient permissions. Check for previous version. If it exists unregister or overwrite it. Install the DLL with vsdrfCOM so that it is recognized in the IE add-on menu. For (3), I set the vsdrfCOM but it didn't seem to work. I don't see an OOTB way to perform (1) or (2). Is that correct or is there an OOTB way?