activex

Excel renaming Activex Controls on other computers

蹲街弑〆低调 提交于 2019-12-31 05:30:11
问题 I have a worksheet with Activex Controls(Combobox, Command Button, Option Button, CheckBox). On my computer I have renamed all the controls (Ex. CButtonPMR, OButton_Comp, etc) But when I open the file on other computer all the controls are renamed to default the default names (CheckBox1,Checkbox2, CommandButton1, etc) For that reason the code doesn't works on other computers. I am getting errors every time because the code can't compile. Is there a way to fix this? I basically have 2 forms

How can a Labview VI be run as a background task through an ActiveX call ? (without keeping ActiveX busy)

拟墨画扇 提交于 2019-12-31 04:37:32
问题 I would like to execute a Labview VI through ActiveX in Matlab. I use the following commands: e=actxserver('LabVIEW.Application'); vipath='C:\DATA\Labview\test.vi'; vi=invoke(e,'GetVIReference',vipath); vi.Run; This works correctly and the VI is seen to execute on its front panel. However, Matlab keeps waiting until the VI has terminated. I want Labview to run the VI silently, without telling Matlab (through ActiveX) to wait. How can a VI be executed without keeping ActiveX busy ? Is there a

Passing array of bytes from ActiveX to javascript and vice versa

若如初见. 提交于 2019-12-30 10:03:48
问题 I need to pass data (byte array, i.e char*) from ActiveX object (using Visual C++ with ATL) to my javascript code (and vice versa). I've digged the Web for such problem and tried lots of solutions but have not succeeded. I've tried the followings: Converting char* to BSTR and pass it to javascript (JS), but my result in JS is "", due to the nature of my data is not string. //in C++: STDMETHODIMP CActiveXObj::f(BSTR* msg) // msg is the return value in ATL automation function { char *buffer; //

Passing array of bytes from ActiveX to javascript and vice versa

六眼飞鱼酱① 提交于 2019-12-30 10:02:55
问题 I need to pass data (byte array, i.e char*) from ActiveX object (using Visual C++ with ATL) to my javascript code (and vice versa). I've digged the Web for such problem and tried lots of solutions but have not succeeded. I've tried the followings: Converting char* to BSTR and pass it to javascript (JS), but my result in JS is "", due to the nature of my data is not string. //in C++: STDMETHODIMP CActiveXObj::f(BSTR* msg) // msg is the return value in ATL automation function { char *buffer; //

How to add activeX buttons programmatically in VBA, filling all rows down a column

此生再无相见时 提交于 2019-12-29 09:56:49
问题 My first post here, but have been successfully sourcing solutions and ideas from this website for a while now. So thanks for the collection of solutions and ideas. Basically, I have a spread sheet application requiring the first column, Column A, to be filled with "Active X" buttons in every cell, looping through for a given quantity. I have posted one such working solution below which makes use of "form type buttons" and a Modules. This exemplifies what I consider my most favored example

Launch an exe from browser (Windows)

放肆的年华 提交于 2019-12-29 08:12:50
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

Launch an exe from browser (Windows)

こ雲淡風輕ζ 提交于 2019-12-29 08:12:48
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

Launch an exe from browser (Windows)

空扰寡人 提交于 2019-12-29 08:12:01
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

How to pass variable by reference in javascript? Read data from ActiveX function which returns more than one value

纵然是瞬间 提交于 2019-12-29 07:49:31
问题 I have a ActiveX object which I want to use in the browser (javascript). There is a function I want to call. Its prototype is: function TOPOSFiscalPrinter.DirectIO(Command: Integer; var pData: Integer; var pString: WideString): Integer; So, the function returns three values: result code, pData and pString; In javascript the function does not update the variables pData and pString; function test() { var d=1, s="DIRECIO:"; var code = opos.DirectIO(1024, d, s); alert(d); alert(s); } Variables d

“Object Library invalid or contains references…” in Excel VBA with DatePicker

前提是你 提交于 2019-12-29 06:32:32
问题 I have been working on a Excel workbook with lots of VBA code for a while and now I have send this file to some colleagues for testing and it does NOT work in their computer. We all work in the same company and have Windows XP SP2 with Office 2003. The workbook has a form that opens when clicking over a shape and it contains some controls. When they click over the shape for the form to show the following error appears: "Object Library invalid or contains references to object defintions that