Results for "Author: doug gaede"
Version 3.2 of the code I posted on 2000-10-31 and updated several times. This post fixes the final bugs so the buttons look perfect when pushed, and no more code kludges are necessary. As before, even faster than version 2. Will draw a complex form in ~.007 of a second compared to the time for the pre-version 1 code of ~27.0 seconds. Like before, it accepts a Form, CommandButton, CheckBox, OptionButton or PictureBox and shapes it to the image assigned to the Picture property. This includes making a specified color completely transparent (you can click on objects underneath the form) during the shaping process. This is a major expansion on code submitted by Chris Yates. Now you can make specially-shaped controls using a PictureBox or real buttons. Full examples given, and well-commented code.
Updated post from January, 2001. Shows proper use of the Microsoft CryptoAPI and Zlib compression dll. Code now uses the Enhanced CSP for longer key length generation (up to 16384 bits; 1024 is currently considered secure). You shouldn't consider any homegrown method for business or government use.
This code is version 1. It has been replaced by version 2, which you can find under the title: Form, CommandButton, CheckBox, OptionButton, PictureBox any shape and transparent (version 2). The newer version supports more objects and is faster.
Version 2 of the code I posted on 10/31/00. This post has been upgraded to version 3 on this site, under a similar title. Check out that version for the latest.
This code has been upgraded in another post. Please look for 'Business-strength compression, encryption and signing (single and public/private keys via CryptoAPI)' on this site. This wrapper class and example program demonstrates the proper use of the Zlib compression dll. Unbelievably, Windows does not provide adequate string/file compression in the API (only decompression of files created with the compress.exe or compact.exe utilities that come with Windows, and their compression is weak by today's standards). No string or array compression support...and having to call an exe to compress a file is far from perfect. To fill this void a group wrote the Zlib.dll utility (included; their web site address is included, too, so you can get the latest version). They used the same code to produce the compression algorithms that are used by the newer PNG picture format. So if you have used PNG you have used Zlib. I have seen the Zlib dll used by several commercial programs, too. It provides fast and compact encryption for byte arrays. This wrapper class extends it to strings and full files, too. Two other postings on planetsourcecode deal with Zlib. One is barely functional and the other only provides the coverted C header files (but is otherwise excellent with many utilities and modules to do other things -- check out "Kira" posted by The_Lung). I found this code on the Zlib web site, and converted it from an ocx to a regular class module to conserve resources. I also moved all the code dealing with file compression into the class where it belonged.
This has been updated in a new post on June 4, 2001. Please see that posting for the latest code. This class serves as a wrapper for the Microsoft CryptoAPI (Base CSP) and the Zlib compression dll. It handles all government & business compression, encryption and signature needs, without yet another "look at my new kewl encryption code" (yawn) which is breakable by any gov't agency or professional cryptographer. This latest version now shows you how to do public/private key encryption and signatures. Took 2 solid weeks to research, code and debug this code, so put it to good use. Fully commented. Includes example program to demostrate each function's use.
This has been replaced by version 3.1 on 2000-01-12, which fixes a few bugs this version had. It has a similar title. Search for my last name to make it easy to find.
Version 3.2 of the code I posted on 2000-10-31 and updated several times. This post fixes the final bugs so the buttons look perfect when pushed, and no more code kludges are necessary. As before, even faster than version 2. Will draw a complex form in ~.007 of a second compared to the time for the pre-version 1 code of ~27.0 seconds. Like before, it accepts a Form, CommandButton, CheckBox, OptionButton or PictureBox and shapes it to the image assigned to the Picture property. This includes making a specified color completely transparent (you can click on objects underneath the form) during the shaping process. This is a major expansion on code submitted by Chris Yates. Now you can make specially-shaped controls using a PictureBox or real buttons. Full examples given, and well-commented code.
Updated post from January, 2001. Shows proper use of the Microsoft CryptoAPI and Zlib compression dll. Code now uses the Enhanced CSP for longer key length generation (up to 16384 bits; 1024 is currently considered secure). You shouldn't consider any homegrown method for business or government use.
Updated post from January, 2001. Shows proper use of the Microsoft CryptoAPI and Zlib compression dll. Code now uses the Enhanced CSP for longer key length generation (up to 16384 bits; 1024 is currently considered secure). You shouldn't consider any homegrown method for business or government use.
This code has been upgraded in another post. Please look for 'Business-strength compression, encryption and signing (single and public/private keys via CryptoAPI)' on this site. This wrapper class and example program demonstrates the proper use of the Zlib compression dll. Unbelievably, Windows does not provide adequate string/file compression in the API (only decompression of files created with the compress.exe or compact.exe utilities that come with Windows, and their compression is weak by today's standards). No string or array compression support...and having to call an exe to compress a file is far from perfect. To fill this void a group wrote the Zlib.dll utility (included; their web site address is included, too, so you can get the latest version). They used the same code to produce the compression algorithms that are used by the newer PNG picture format. So if you have used PNG you have used Zlib. I have seen the Zlib dll used by several commercial programs, too. It provides fast and compact encryption for byte arrays. This wrapper class extends it to strings and full files, too. Two other postings on planetsourcecode deal with Zlib. One is barely functional and the other only provides the coverted C header files (but is otherwise excellent with many utilities and modules to do other things -- check out "Kira" posted by The_Lung). I found this code on the Zlib web site, and converted it from an ocx to a regular class module to conserve resources. I also moved all the code dealing with file compression into the class where it belonged.
Version 2 of the code I posted on 10/31/00. This post has been upgraded to version 3 on this site, under a similar title. Check out that version for the latest.
This code is version 1. It has been replaced by version 2, which you can find under the title: Form, CommandButton, CheckBox, OptionButton, PictureBox any shape and transparent (version 2). The newer version supports more objects and is faster.
Version 3.2 of the code I posted on 2000-10-31 and updated several times. This post fixes the final bugs so the buttons look perfect when pushed, and no more code kludges are necessary. As before, even faster than version 2. Will draw a complex form in ~.007 of a second compared to the time for the pre-version 1 code of ~27.0 seconds. Like before, it accepts a Form, CommandButton, CheckBox, OptionButton or PictureBox and shapes it to the image assigned to the Picture property. This includes making a specified color completely transparent (you can click on objects underneath the form) during the shaping process. This is a major expansion on code submitted by Chris Yates. Now you can make specially-shaped controls using a PictureBox or real buttons. Full examples given, and well-commented code.
This has been replaced by version 3.1 on 2000-01-12, which fixes a few bugs this version had. It has a similar title. Search for my last name to make it easy to find.
This has been updated in a new post on June 4, 2001. Please see that posting for the latest code. This class serves as a wrapper for the Microsoft CryptoAPI (Base CSP) and the Zlib compression dll. It handles all government & business compression, encryption and signature needs, without yet another "look at my new kewl encryption code" (yawn) which is breakable by any gov't agency or professional cryptographer. This latest version now shows you how to do public/private key encryption and signatures. Took 2 solid weeks to research, code and debug this code, so put it to good use. Fully commented. Includes example program to demostrate each function's use.
This code is version 1. It has been replaced by version 2, which you can find under the title: Form, CommandButton, CheckBox, OptionButton, PictureBox any shape and transparent (version 2). The newer version supports more objects and is faster.
Version 2 of the code I posted on 10/31/00. This post has been upgraded to version 3 on this site, under a similar title. Check out that version for the latest.
This code has been upgraded in another post. Please look for 'Business-strength compression, encryption and signing (single and public/private keys via CryptoAPI)' on this site. This wrapper class and example program demonstrates the proper use of the Zlib compression dll. Unbelievably, Windows does not provide adequate string/file compression in the API (only decompression of files created with the compress.exe or compact.exe utilities that come with Windows, and their compression is weak by today's standards). No string or array compression support...and having to call an exe to compress a file is far from perfect. To fill this void a group wrote the Zlib.dll utility (included; their web site address is included, too, so you can get the latest version). They used the same code to produce the compression algorithms that are used by the newer PNG picture format. So if you have used PNG you have used Zlib. I have seen the Zlib dll used by several commercial programs, too. It provides fast and compact encryption for byte arrays. This wrapper class extends it to strings and full files, too. Two other postings on planetsourcecode deal with Zlib. One is barely functional and the other only provides the coverted C header files (but is otherwise excellent with many utilities and modules to do other things -- check out "Kira" posted by The_Lung). I found this code on the Zlib web site, and converted it from an ocx to a regular class module to conserve resources. I also moved all the code dealing with file compression into the class where it belonged.
This has been updated in a new post on June 4, 2001. Please see that posting for the latest code. This class serves as a wrapper for the Microsoft CryptoAPI (Base CSP) and the Zlib compression dll. It handles all government & business compression, encryption and signature needs, without yet another "look at my new kewl encryption code" (yawn) which is breakable by any gov't agency or professional cryptographer. This latest version now shows you how to do public/private key encryption and signatures. Took 2 solid weeks to research, code and debug this code, so put it to good use. Fully commented. Includes example program to demostrate each function's use.