From: argusy on
Nobody wrote:
> Happy Birthday!
>

aww... geeee...

<snip> 'kept for reference
>
>
ta, nobody.

That was a bit more than I was looking for.
I'm not objecting, though!!
I'd worked out most of the 'get the file part',
it was the searching that had me tossed.

I'll preface this section with your name.
(huh!! nobody?) :->

now I'd bettter go have some brekkie - my wife just called.
I might even have one or two of those Haigh's chocolates she gave me earlier

Graham


From: argusy on
Mike Williams wrote:
> "argusy" <argusy(a)slmember.on.net> wrote in message
> news:00e71fe6$0$15588$c3e8da3(a)news.astraweb.com...
>
>> I'm having a seniors moment (63 tomorrow, that's
>> in 13 minutes time, btw)
>
> So by now you'll be heading for 64! Still just a youngster though . . .
> according to DateDiff I turned 63 about 1,805,727 minutes ago :-)
>
> Mike
>
>
>
God!! you ARE keeping your mind young, Mike

That's about 3 years, some months ahead of me (I used the calculator)
Should have done it with a VB program, and found out just how young you really
are. That would keep my mind working away as well

Graham


From: Rick Rothstein on
Hey, old man, you have been 63 years old or older some 3.85 or so times longer than I have been.

--
Rick (MVP - Excel)


"Mike Williams" <Mike(a)WhiskyAndCoke.com> wrote in message news:O49u%23XhnKHA.5700(a)TK2MSFTNGP04.phx.gbl...
> "argusy" <argusy(a)slmember.on.net> wrote in message
> news:00e71fe6$0$15588$c3e8da3(a)news.astraweb.com...
>
>> I'm having a seniors moment (63 tomorrow, that's
>> in 13 minutes time, btw)
>
> So by now you'll be heading for 64! Still just a youngster though . . ..
> according to DateDiff I turned 63 about 1,805,727 minutes ago :-)
>
> Mike
>
>
>
From: argusy on
Nobody wrote:
> Happy Birthday!
>
<snip> 'saved for reference

Did some variable name changes to match the rest of my program

Worked without a hitch!!

My senior's moment was thinking about strings, not bytes

Graham

From: Larry Serflaten on

"argusy" <argusy(a)slmember.on.net> wrote
> I'm having a seniors moment (63 tomorrow, that's in 13 minutes time, btw)
>
> I'm trying to open a jpg file, find the position of "FF C0 00 01 08" and get the
> next four bytes of info. (width and height of said jpg)
>
> That data never stays in one fixed spot, so I have to find it.
>
> Seniors moments are a pita, and I can't remember how to do it.
> I could go through all those books I bought on VB6, but I'll bet you I won't
> find what I want until next week, or next month.
>
> Anyone interested in giving me a hand with the code?


A bit late (I've been on vacation) but I thought I would add a
second method for those looking to do the same.

Quite simply, put the file data in a byte array, and the search
bytes in a byte array, then use InStrB to find their location.

InStrB will compare byte-for-byte just like InStr compares
character-for-character. Also, those functions (InStr & InStrB)
accept byte arrays in place of strings for their parameters.

LFS


First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5
Prev: Linux
Next: The BIG Picture (VB vs the OS)