activex

what's the difference between an activex control and an activex object?

99封情书 提交于 2019-12-13 17:09:23
问题 "ActiveX controls — small program building blocks — can serve to create distributed applications that work over the Internet through web browsers. Examples include customized applications for gathering data, viewing certain kinds of files, and displaying animation." (wikipedia) is an Object an instance of a Control? 回答1: The MS terminology is unclear, especially since ActiveX is more a marketing term than a technical one. Often, "ActiveX" can be replaced with "COM" to give a more technically

InvokeMethod of Windows Workflow 4 can encounter Exception C0000005

天大地大妈咪最大 提交于 2019-12-13 15:52:33
问题 Thank you for reading at first. I designed a WPF application which rehosted the Designer, Toolbox and Properties of Windows Workflow. My Idea is really simple that I just want have visualization at runtime about my workflow and design them in the runtime as well. ISSUE: Now I try to Invoke a Method of a class under the same namespace of whole application. The class is called MyTwsClass. Please have a look below: It is extremely Simple. The TwsClass is from a Reference ActiveX of Interactive

ActiveX component can't create object when using .net class in vba

余生长醉 提交于 2019-12-13 09:07:00
问题 I am trying to use a custom class exported as a .tlb in vba. I have done the regasm stuff but I keep getting this error when I try to call a subroutine within the class: Run-time error '429': ActiveX component can't create object I've referenced the class in vba, I've built the class for 32bit and 64bit CPUs and nothing worked. Anyways, vba code: Sub test() Dim test As New Mail.Class1 test.test End Sub And the vb.net code: Imports System.Runtime.InteropServices Public Class Class1 Public Sub

Registering DLL on windows mobile 6

扶醉桌前 提交于 2019-12-13 07:24:30
问题 I have a DLL file that contains an ActiveX control that I need to register it programmatically by code. here is the code I am using to register that DLL file but it keeps giving me "The system cannot find the file specified" when calling the Start method, And I do not know why regsvrce.exe is not found, should I change current directory or something, please help. public static void registerDLL(string dllPath) { try { //'/s' : indicates regsvr32.exe to run silently. string fileinfo = "\"" +

how to make an “include” activeX object in vb6 for vbscript?

落爺英雄遲暮 提交于 2019-12-13 06:52:09
问题 this is what i'm trying to make: VB6 com.dll, name and classname: scripting.includefile sub include(filepath) ExecuteGlobal(CreateObject("SCRIPTING.FILESYSTEMOBJECT").OPENTEXTFILE("FILENAME, 1).READALL & vbNewLine) End Sub vbscript: set x = createobject("scripting.includefile") x.include "c:\test.vbs" call sub_inside_test_vbs is this possible? thanks in advance :) 回答1: You just read a file with it and assign the text to the scripting control. This is vbscript but vbscript is legal VB6. Here I

Callout in Rectangle tool

谁都会走 提交于 2019-12-13 06:46:09
问题 Just want to know how can I add a callout to Rectangle tool. Below is the code which I have added but Arrow is not drawn. Only a Dot appears at (0,0). m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().SetVisibl‌​e(TRUE); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetBrush().SetC‌​olor(RGB(255,0,0)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetPen().SetCol‌​or(RGB(0,0,255)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle()

Detect Display Type (Projector) from within the browser

∥☆過路亽.° 提交于 2019-12-13 04:42:07
问题 It goes like this, we need to detect if the display is a Projector (or if the system is connected to a Projetor). the catch is this should be done from within the browser. so is it possible to do so by using an Java Applet Flash ActiveX (this does constrains to a single browser, so not an option) searching so far only reaveals display resolution. expecting if there is something still out there. . . Edit: accecpted answer is for Java Applet approach. hope there may be an easier way through

activex can't create object by vbs but can by classic asp

我们两清 提交于 2019-12-13 03:43:20
问题 On my Windows Server 2008 R2 I installed a COM object and can create it from a classic ASP page. When I call it from a vbscript file, I get the "can't create" message. I have tried starting Powershell as administrator and using that to run the script. No luck. I have tried giving the "everyone" user full control over the COM DLL. No luck. Any ideas? 回答1: The only thing that makes sense to me is that the COM object is the same bit-ness as the class ASP and a different bit-ness than the script

Javascript code not displaying wanted output

你离开我真会死。 提交于 2019-12-13 03:19:39
问题 I've written some code to display my favorites in IE8 but for an unknown reason I have no output on the screen despite the fact that my page is accepted by IE and that the test text 'this is a test' is displayed. my code : <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso 8859-1" /> <script type="text/javascript"> var i = 0; var favString = ""; var fso; function GetFavourites(Folder) { var FavFolder = fso.GetFolder(Folder); //Gets Favourite Names & URL's for given

Exposing WPF control as ActiveX control

倖福魔咒の 提交于 2019-12-13 03:17:20
问题 Why it is impossible to expose WPF control as ActiveX directly , without hosting wpf control within WinForms control and then exposing WinForms control as ActiveX? All articles I've read : - WPF User Control in a Dialog System Application - WPF Vista Gadgets using ActiveX post it as a fact? but no one explains why? 回答1: One big reason is that they are entirely different graphics and rendering systems. When you create a WPF Window, it is completely different from a Win32 Window, and therefore