|
|||
|
Hi..
This code works fine in XP but do'nt works in Vista. Do you have an idea why? Merci var fr = new ActiveXObject("frObj.frReportObj"); if (fr == undefined || fr.version == undefined || fr.version < 1.1) { var fr_file = getAdditionalFile('frObj.dll'); var f = new File(fr_file); var sys_path = Shell.getSpecialFolder("system") + '\\' + f.name; f.copy(sys_path); ActiveXObject.register(sys_path); fr = new ActiveXObject("frObj.frReportObj"); } |
|
|||
|
It's highly possible that the "register" method has failed on your Vista computer, because it requires the administrator privilege. Fortunately, you can use the addObjectInfo instead:
Code:
ActiveXObject.addObjectInfo(getAdditionalFile("frObj.dll"),
"frObj.frReportObj",
"{CE52CEFB-1521-4DD4-AE1C-2EF11C0BA209}",
"{DB7E760B-27CF-4D8D-93CA-54D2CC8373E8}");
var fr = new ActiveXObject("frObj.frReportObj");
|
|
|||
|
You can call the dll directly without using the activex method in swfkit pro. More detais can be found in the online document of swfkit, the last article "using autoupdate" of the tutorials section. However, there is a bug in the autoupdate when using in vista, on which we're still working. We'll let you know when it has been fixed.
|
|
|||
|
The following javascript code works good in XP but not in Vista
var WshShell = new ActiveXObject("WScript.Shell"); var oExec = WshShell.Exec("cmd /c echo %userprofile%"); while (oExec.Status == 0) { } var Buf = ''; while (!oExec.StdOut.AtEndOfStream) { Buf += oExec.StdOut.Read(1); } //alert("Final: " + oExec.stdout); alert("Final: " + Buf); oExec = null; WshShell = null; I was getting "Server Cannot Create Object" error.... I have changed IE settings for ActiveX objects and now I get "Access Denied" I do not want to make all these changes. Is there any way. Any help ??? Last edited by tezzzzz; 12-30-2009 at 03:13 PM. |
|
|||
|
Quote:
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|