After experiencing a lot of down time, We decided to move this site to
CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.
Recreating Perl Unpack function in VB
|
Author |
Message
|
djjohnnyg
-
Total Posts
:
1
- Scores: 0
-
Reward points
:
0
- Joined: 10/6/2008
-
Status: offline
|
Recreating Perl Unpack function in VB
Monday, October 06, 2008 2:53 AM
( permalink)
Hi, I am trying to recreate a perl script in VB but have a problem creating a checksum value that a target system needs. In Perl this checksum is calculated using the unpack function: while (<PACKAGE>) { $checksum += unpack("%32C*", $_); } $checksum %= 32767; close(PACKAGE); } where PACKAGE is the .tar file input stream I need to replicate this in VB but can't find a means of replicating that unpack function. All help appreciated! (I know there are much better checksum calculations available but can't change target system so can't change calculation)
|
|
|
|
TNO
-
Total Posts
:
2091
- Scores: 34
-
Reward points
:
0
- Joined: 12/18/2004
- Location: Earth
-
Status: offline
|
RE: Recreating Perl Unpack function in VB
Friday, October 17, 2008 2:16 AM
( permalink)
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
|
|
Online Bookmarks Sharing: