473,805 Members | 2,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ZIP code module without DLL dependencies???

Hi Everyone,

I am trying to find a solution for handling zipped data without the
need to ship / install any DLL files with the database. Does anybody
know of code to handle ZIP files that does not require any external
references? If I can ship it 'built-in' as either a class module or
standard module then that would be perfect.

Any help would be greatly appreciated.

Cheers

The Frog
Nov 19 '07
36 3119
On Thu, 29 Nov 2007 00:59:26 -0800 (PST), The Frog
<Mr************ @googlemail.com wrote:
>I have already secured the
payload. I am really just looking for a way to crush a file to its
smallest possible size before transmission.
Any ideas?
Sorry for the day's delay in replying. I was searching my archives.
I half-remember playing with some code that duplicated the LZH
compression scheme, but I can't seem to find any in a format I can
still open. The files I have are (I think) in the old Pro basic 7
format, that I didn't save as text. (I don't think I have a computer
that will still run that old programming language, darn it!)

You might want to spend some time at Planet Source Code or some other
site like that to see if they have any thing you can use.

Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Nov 30 '07 #31
"Chuck Grimsby" <c.*******@worl dnet.att.net.in validwrote in message
news:sm******** *************** *********@4ax.c om...
The files I have are (I think) in the old Pro basic 7
format, that I didn't save as text. (I don't think I have a computer
that will still run that old programming language, darn it!)
If you mean Microsoft Basic 7 Pro, I do. If you'd like to mail them over
I'll see if I can send you the text version. Remove 'un' from my addy to get
my real address. Might not be instant - I may have to play with the m/c to
boot it. For one thing the CMOS battery will be dead by now, but I have the
hard drive parameters, so I ought to be good to go.


Dec 1 '07 #32
Hi Guys,

Thanks for getting back to me. I have managed to locate the source
code claiming to be a powerbasic implementation of the ZIP Deflate
algorithm. I will send you a copy via email.

If I can reverse engineer it into a VBA implementation I will. I just
have to get the time to sit down quietly and do it. I will then post
the resultant code here in this newsgroup so we dont ever lose it :-)

Thankyou both for your help with this. I appreciate the guidance.

Cheers

The Frog
Dec 3 '07 #33
On Sat, 1 Dec 2007 00:49:09 -0000, "Stuart McCall"
<sm*****@myunre albox.comwrote:
>"Chuck Grimsby" <c.*******@worl dnet.att.net.in validwrote in message
news:sm******* *************** **********@4ax. com...
>The files I have are (I think) in the old Pro basic 7
format, that I didn't save as text. (I don't think I have a computer
that will still run that old programming language, darn it!)

If you mean Microsoft Basic 7 Pro, I do. If you'd like to mail them over
I'll see if I can send you the text version. Remove 'un' from my addy to get
my real address. Might not be instant - I may have to play with the m/c to
boot it. For one thing the CMOS battery will be dead by now, but I have the
hard drive parameters, so I ought to be good to go.
Actually, I found a computer in my "collection " that could run BC7 (it
even still had windows 3.11 on it!), but the file isn't a BC7 file.
Nor a GW Basic file. It may be GFA Basic. I think I still have the
disks for that... If it's Pure Basic, or Real Basic, I'll have to dig
a bit deeper into the archives.

'Course it may be some other language... Hmmm... I wonder if it's
VB3? This could get interesting!
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Dec 5 '07 #34
Hi Chuck,

I might just have to go through the whole lot on paper. I might even
try and locate an old dot matrix printer for the 'feel' of the
situation... I think there is an old Star NL-10 alround here
somewhere...

I figure that as long as I can follow the individual steps required to
make the thing work then I can probably reverse engineer it into a VBA
version. My interest is really the compression more than anything
else, so the 'file' stuff is secondary to my purposes but would be
good to have in there. I'll see what I can come out with over the
weekend.

By the way, do you know of any implementations (again DLL-less) in VBA
for doing error correction routines such as Reed Solomon? I started to
have a bit of a dig through and have found some C code to do the job
of encoding, but not for decoding. Adding Forward error correction
(FEC) capabilities would potentially be the last of the hurdles I have
to overcocme. I thought that since it has been around so long someone
might have done it in pure VB / VBA but I cannot locate anything
easily on Google. Do you know of anything?

Cheers

The Frog
Dec 5 '07 #35
On Wed, 5 Dec 2007 01:41:16 -0800 (PST), The Frog
<Mr************ @googlemail.com wrote:
>Hi Chuck,
I might just have to go through the whole lot on paper. I might even
try and locate an old dot matrix printer for the 'feel' of the
situation... I think there is an old Star NL-10 alround here
somewhere...
I figure that as long as I can follow the individual steps required to
make the thing work then I can probably reverse engineer it into a VBA
version. My interest is really the compression more than anything
else, so the 'file' stuff is secondary to my purposes but would be
good to have in there. I'll see what I can come out with over the
weekend.
By the way, do you know of any implementations (again DLL-less) in VBA
for doing error correction routines such as Reed Solomon? I started to
have a bit of a dig through and have found some C code to do the job
of encoding, but not for decoding. Adding Forward error correction
(FEC) capabilities would potentially be the last of the hurdles I have
to overcocme. I thought that since it has been around so long someone
might have done it in pure VB / VBA but I cannot locate anything
easily on Google. Do you know of anything?
Believe it or not, my *only* printer is a Star NX-1000. It's in the
top of the garage though... I keep it around "just in case", but I've
never found a need for it, or to even hook it up for that matter!
(It's amazing how little you find a "need" for a printer when there
isn't one available.)

As for error correction and Reed-Solomon, I can't say as I ever played
with Reed-Solomon. Simple CRC checking is all I ever used, and of
late, I've just been passing it through ImageHlp.dll and letting it do
the CRC calculations. It's been quite a while since I've had to do
any *serious* CRC calculations with data streams.

You might want to look for routines for creating pdf417 bar codes. If
memory serves, they use Reed-Solomon. ID automation might have a few
code samples. (Obviously, you shouldn't use their code directly as
I'm sure it's copyrighted.)

A search of Google Groups or planet source code should reveal quite a
few samples of CRC code as well. Just watch out for the ones that are
(supposedly) for credit cards, which also use CRC to catch keystroke
errors. Wait a minute! Here. Try this:
<http://groups.google.c om/group/comp.lang.basic .visual.misc/msg/15c6ceedfb29e45 3>

It's VB code for a 32-bit CRC, but it should work.

Oh, hey! Here's a link to some LZH code as well:
<http://groups.google.c om/group/comp.lang.basic .visual.misc/msg/c87f2a42f7c521c a>

Again, VB code, but it should import ok. Wow, 1998. I should of
searched my newsgroup archives earlier.... <Sigh>

---
Please Post Any Replies To This Message Back To the Newsgroup.
There are "Lurkers" around who can benefit by our exchange!
Dec 6 '07 #36
Chuck you magnificent creature! That LZH stuff will work wonders. What
a great link. I was in the process of learning all about the different
possibilities for compression with different algorithms and lots of
stuff about information theory and data entropy etc.... but this
simplifies the process considerably. Seeing a practical example in VB
is a real boon. Great stuff.

The reason for the error correction code is due to the need to
transmit the data and give some level of certainty that the data can
be accurately reconstructed if it is received. Reed Solomon will be
perfect for one part of this, and CRC for another. In short I am
developing a transmission process for an app / concept I am working
on.

It basically goes like this:
1/ Dont trust the IT department and assume everything is non reliable
outside the application itself

2/ Code all necessary functions into the application itself.

3/ Application should be capable of adapting the content of itself
(within a certain framework) so that new forms, data, reports,
functions, etc can be reliably imported and / or replaced.

4/ All data in the application should follow (relatively) secure data
handling practices so that information not destined for a certain set
of eyes doesnt get seen.

5/ The application should be capable of operating completely
remotely / stand-alone so that disconnected employees can still be
kept up to date

6/ Transmission of 'updates' needs to be done in discrete 'parcels' so
that the latest versions of things can be sent when needed and not the
entire application.

7/ Transmission needs to be reliable, deliverable and secure. (Error
Correction (FEC), Compressed (eg. Deflate), Encrypted (Combination AES
and Public / Private)

8/ The application has to be able to send a 'request' or 'report' to
the 'master' so that component version control can be done.

9/ The application has to be able to work in an integrated fashion
with the users email application if possible - or else update /
control can be manually done.

10/ The application should be based in standard MS Office components,
in this case Access (97).

Why go to all this effort? Simple: My company works in the
technological stone age and the acquisition of budget to approach any
development in a more serious way simply wont be forthcoming (at least
as far as my boss and I can see). If you let accountants run a
business you no longer have a business, you just have accounting -
investing in infrastructure must therefore have benefits that the
accountants agree with and the ones here, regardless of the financial
and workload (productivity) arguments you put forward, are simply not
interested and are actively seeking to remove budget from all other
departments. So in short I am boned for money, but have the time, so
onward I will go......its better than nothing and I hope will actually
work quite well. Its a hell of a lot of work though.

After I get a chance to play with the code a bit for the LZH and
become familiar with it, I will try and expand it to handle unicode
and also maybe a binary version (or byte array version).

I have found some source code in C for the Reed Solomon coding (I love
the internet way back machine), and will play with that over the
christmas break on the bad weather days and see what I can come up
with.

In the end I am developing a process. I will post the outcome (code)
for that here, and some instructions for its use. It should be a
method of both preparing and receiving data that will be about as good
as it gets - how you transmit it would be up to you.

With all the help others have contributed here I do hope that it will
be found useful. Even if it is just for 'secure' backups of data in a
text type format.

The way I envision the 'method' to work is to first create the error
correction (Reed Solomon) output, then to compress it, then to encrypt
it, then to encrypt it (AES), then to encrypt the key with a public
key, and reverse the process (use the private key of course) to get it
back and know that it is as it should be.

Thankyou all for the help and guidance. Thankyou especially Chuck and
Stuart. I will post the finished code here sometime in the early new
year when I get back from holiday. I will use this thread.

Cheers and many many thanks

The Frog
Dec 6 '07 #37

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2366
by: Robin Cull | last post by:
Hi all, I'm writing a script that needs to do lookups on the UNIX passwd and groups file on textual usernames/group names and return numeric UID/GID. Something that gives access to the C standard libarary functions getent(), for example. I've Googled around on various logical search terms and looked through pydoc and the module reference but haven't found anything up to this point. I'd have thought that the os module would provide...
2
2588
by: Robert Rothenberg | last post by:
I am working on a module that when given a CPAN distribution, will return which modules the distribtion requires (by parsing the Makefile.PL using Module::MakefilePL::Parse if the META.yml file is not available). A companion module will actually try to fetch the distribution information from CPAN (since it can query a .meta file if it exists before downloading an entire distribution). Because it is more closely tied to CPAN and works...
67
4288
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. Unfortunately these ad hominem rhetorts are frequently introduced into purely technical discussions on the feasibility of supporting such functionality in C++. That usually serves to divert the discussion from the technical subject to a discussion of the...
109
5940
by: Andrew Thompson | last post by:
It seems most people get there JS off web sites, which is entirely logical. But it is also a great pity since most of that code is of such poor quality. I was looking through the JS FAQ for any question that identifies the warning signs to look out for, the things that most easily and clearly identify the author of code as something less than a master of the art. I did not find an FAQ that answered it, but I think the FAQ
1
2268
by: John | last post by:
Hi First of all apologies for posting so much code but this is rather involved and I am totally stumped. Basically I have a main form (Staff Batch SMS/E-Mail) which calls a function (SendSMS) in a module with in turn calls a form (frmInet) which contains an ms internet control (Inet1). Problem is that once the function Send SMS returns and the code tries to close the main form a 'Runtime error 2486: You can't carry out this action at...
6
2350
by: TPJ | last post by:
Help me please, because I really don't get it. I think it's some stupid mistake I make, but I just can't find it. I have been thinking about it for three days so far and I still haven't found any solution. My code can be downloaded from here: http://www.tprimke.net/konto/PyObject-problem.tar.bz2. There are some scripts for GNU/Linux system (bash to be precise). All you need to know is that there are four classes. (Of course, you may...
2
1354
by: Thomas Girod | last post by:
Hi. I found a lot of documentation about how to code in Python, but not much about how you organize your code in various modules / packages ... As I am not yet used to python, this puzzle me a bit. So, can anyone explain how one should organize and store its code ? the uses of __init__.py files ? Maybe my question is not very clear, but I hope someone will understand anyway ...
34
1931
by: Alan Larsson | last post by:
Is there a way i can look at the php code that is runnig a site, without any ind of admin access to the server?
0
2025
by: Rich Healey | last post by:
AON LAZIO wrote: Aon, Please keep these replies on list (I've CC'd the list now). This isn't actually a very long error message, but since email is a scrollable medium including long messages often isn't too bad. If you're worried, include a link to a pastebin.
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10604
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10361
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5676
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.