But this does not seems to work with a dumb example, found on newgroups,
like :
<html>
<head>
<script language="JScript">
function pippo(){
alert("init");
var fso;
var f;
fso = new ActiveXObject("FILECTL.FileSystem");
alert("fso ActiveXObject");
f = new ActiveXObject("FILECTL.File");
alert("file ActiveXObject");
f.Open ("\\test.txt", 2);
alert("Open");
f.Close();
alert("Close");
}
</script>
</head>
<body onload="pippo()">
<p>body</p>
</body>
</html>
Bad dll registration ? bad script ? or incompatibilities with 2002/2003 OS
versions ?
Have you some ideas.
What is the corresponding DLL for SDK 2003 ?
Is anyone has better examples to show how to use these activeX in jscript ?
thanks.
Nicolas WILLMANN
WinCE does not have support for these objects. I think embedded visual
basic may have something like FILECTL.FileSystem, though I'm not sure. I'm
pretty sure you can't run that from PIE -- actually due to security issues I
really really hope you cannot, at least without a lot of hacking.
On the newsgroup microsoft.public.windowsce.embedded.vb, post thread [asp]
read file on windows ce, someone asked for the same thing and a fellow
actually said he implemented the File System Object. You may try contacting
him and seeing if he'll give you the FSO code. Be sure to ask him if it is
safe for PIE. (There's ways you can make it more safe, but I forget the
details.) I didn't gripe on the other thread about security because the
fellow is using FSO on an ASP device where CE is the Web Server and hence he
has control over what he runs, unlike the PIE case.
Standard MS legalize is that I can't vouch for the fellow with the FSO, so
if you have problems don't complain to us. It's lame I have to say that
because I'm sure you knew it anyway, but lawyers are lame too.
--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation
Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.
"TH" <T...@discussions.microsoft.com> wrote in message
news:49CB9609-F594-4391...@microsoft.com...