Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #12170
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: Fast Byte array creation? |
| Date | 2019-07-23 09:45 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <qh7322$k0f$1@dont-email.me> (permalink) |
| References | <efr8kbj56yit.1mm29ut6ie3pc.dlg@40tude.net> <qh42ce$170e$1@gioia.aioe.org> <1lvwt6jwo696h.jcc0mot7i8nh.dlg@40tude.net> |
"JJ" <jj4public@vfemail.net> wrote | Unfortunately, ADODB.Stream's Position property is read only. So, it can not | set the stream length directly. Not according to the docs: https://docs.microsoft.com/en-us/sql/ado/reference/ado-api/position-property-ado?view=sql-server-2017 But according to the typelib, the single Position parameter is a long. Type ADO_LONGPTR. That seems to indicate a long that's actually a pointer to the stored value, which seems odd. In any case, the problem seems to be with VBS. That would explain why it returns "the parameter is incorrect" when I try to set it. It's expecting a long. This morning I came across a rant from Eric Lippert. Remember him? He used to post condescending, hammy advice about scripting. Microsoft breaks links to recent docs and patches, yet Eric Lippert's rants from many years ago are still online: http://blogs.msdn.com/ericlippert/comments/410127.aspx He expresses the basic philosophy that Microsoft had with Windows Script Host: Provide simple things that coprporate IT needs, but don't make it too functional. If all else fails, obfuscate the docs and give obfuscating advice. Part of that philosophy was to block any file access other than text, mainly for the purpose of logs. From the linked page: "I have been asked many times over the years if I know of a scriptable object that can read-write true binary files in all locales. I do not."
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Find similar
Fast Byte array creation? JJ <jj4public@vfemail.net> - 2019-07-22 04:14 +0700
Re: Fast Byte array creation? "Mayayana" <mayayana@invalid.nospam> - 2019-07-21 17:52 -0400
Re: Fast Byte array creation? JJ <jj4public@vfemail.net> - 2019-07-22 17:04 +0700
Re: Fast Byte array creation? "Mayayana" <mayayana@invalid.nospam> - 2019-07-22 09:59 -0400
Re: Fast Byte array creation? "R.Wieser" <address@not.available> - 2019-07-22 12:15 +0200
Re: Fast Byte array creation? JJ <jj4public@vfemail.net> - 2019-07-23 13:30 +0700
Re: Fast Byte array creation? "Mayayana" <mayayana@invalid.nospam> - 2019-07-23 09:45 -0400
csiph-web