Advertisement

Results for "Author: riaan aspeling"

3_2004-2005 #136918
Let your EXE check itself for VIRUS infection

As far as I know viruses modify the header of your complied EXE to jump to a different location to execute the virus. This means the header will change and your EXE file will (with some viruses) have the virus attached to the end of the EXE file. I've included a module you should use in your EXE file with a function it should call to check itself. The rest of the code as well as the module you have to include in your project will compile as an inoculate program to write the footer to your EXE file so the EXE file can check itself. (THIS SOFTWARE IS NOT FOR PROGRAMMERS THAT WRITE VIRUSES ;) PS: This program will not make your program protect itself but will let the user know when it's infected.

3_2004-2005 #137358
Serial Com User Control

This is an event driven VB user control to handle serial COM communications. Instead of using the default ocx you can now compile this user control with your code and you don't need to supply any extra ocx's or third party dll's to support serial comm's.

3_2004-2005 #137928
Serial Comms with Windows API

When I started with Serial Comms and the API's I tried to find a piece of code as an example... I couldn't , so I wrote my own .. and here it is. Any suggestions to better the code will be great. This little program will open a COM port and read from it as well as write to it. Try this on any serial comm's device like a Modem, barcode scanner, Comm Printer etc.

3_2004-2005 #142695
FULL OS Version

This code illistrates how to use GetVersionEx in all OS's from Windows 95 and up. This class can detect all current OS's including Windows 95/98/ME/2000/XP and .NET (Professional / Home / Server / Enterprise / Domain Controller/ DataCenter/ Web/ Advanced) etc. It will also detect service pack's and suites installed on the machine. Addition by Ryan9999 now checks for Tablet PC 2005.

3_2004-2005 #142783
High Resolution Timer

Did you ever what to time something up to thousands of a second. This is not possible by using time() and timers at all. This little class (only uses 3 variables) can time up to a thousands of a second with your CPU clock frequency. There's a little example program also shows the difference between using: {if VarX "" then} AND {if Len(VarX) 0 then}. The last one will execute between 20-25% faster. The timer can show this in fractions of a second.

3_2004-2005 #147081
RDS Like connection on a ASP Page with a Combo Box

This is not real RDS but a simulation (Like Access's Not_In_List event). This functions gives the user the ability to 1) Add a new Value into a Database table and 2) update and select the value in the combobox WITHOUT REFRESHING the page from the server. I found this to be a life saver with large ASP pages with comboboxes on them that need to be dinamicaly filled. (You don't have to worry about the controls on the pages)

4_2005-2006 #150007
cReadEasyReg

A easy way to read the Registry. Most of the times I work with the registry I only want to read it, not write to it. PLEASE NOTE: This is a class module and all the code should be paste into a CLASS Module.

4_2005-2006 #150008
Split any file into smaller files

This code will read any large file and split it into smaller chuncks so you can copy to stiffy,e-mail or ftp it. This code is for you out there playing with file management etc. This code is very basic but it does some cool things. It will leave the source file and will create a bunch of smaller files in the same directory.. This code can be modified to output directly to the stiffy drive if you want.

4_2005-2006 #150009
mAboutDialog

How would you like to have your own About menu option on the little system menu on the top left-hand corner of your form. I whould , so I wrote a module to do it with one line of code from the Load event on my form. For this code to work you have to create a About form first (FRMAbout).

4_2005-2006 #150010
Animated Glass Cube Effect using StretchBlt

This code animates a glass cube moving on a picture in real-time. Almost the same as that Windows 95 screen saver (the moving glass boll). I though this code can help make a screen-saver like that. (You have to e-mail me a copy of that screen-saver please)

4_2005-2006 #150011
Windows 98 Source Code

The code that makes Windows 98 tik.. ;)

4_2005-2006 #150012
CheckFileVersion

Retrieve the version of a file (EXE/DLL etc). This code should be paste into a module and just called via CheckFileVersion('Path to the Exe or DLL').

4_2005-2006 #150013
QueryUnload

How to prevent a form/app from unloading , even if you use the taskmanager? Then try this code... (It works for me ;)

4_2005-2006 #150014
Total Record Count In ADO Recordset

This simple little function just returns the total number of records in a ADO recordset.

4_2005-2006 #150015
cReadWriteEasyReg (Updated Again)

A Easy way to READ/WRITE and DELETE from the registry. I've designed this class to be as easy as posible to use. To read write and delete from the registry is actually easy (if you know how). With this code you can be a pro in the regestry without realy working with the nitty-gritty of the API Call's etc. Hope you guys/gals out there could use this code. Thanks VB Qaid for the Write Reg functions. I have to thank all the input I got in the comment section of this code as well. You guy's made this code better, I thank you (Enrique, Chris).

4_2005-2006 #150016
Let your EXE check itself for VIRUS infection

As far as I know viruses modify the header of your complied EXE to jump to a different location to execute the virus. This means the header will change and your EXE file will (with some viruses) have the virus attached to the end of the EXE file. I've included a module you should use in your EXE file with a function it should call to check itself. The rest of the code as well as the module you have to include in your project will compile as an inoculate program to write the footer to your EXE file so the EXE file can check itself. (THIS SOFTWARE IS NOT FOR PROGRAMMERS THAT WRITE VIRUSES ;) PS: This program will not make your program protect itself but will let the user know when it's infected.

4_2005-2006 #150017
Serial Comms with Windows API

When I started with Serial Comms and the API's I tried to find a piece of code as an example... I couldn't , so I wrote my own .. and here it is. Any suggestions to better the code will be great. This little program will open a COM port and read from it as well as write to it. Try this on any serial comm's device like a Modem, barcode scanner, Comm Printer etc.

4_2005-2006 #150018
High Resolution Timer

Did you ever what to time something up to thousands of a second. This is not possible by using time() and timers at all. This little class (only uses 3 variables) can time up to a thousands of a second with your CPU clock frequency. There's a little example program also shows the difference between using: {if VarX "" then} AND {if Len(VarX) 0 then}. The last one will execute between 20-25% faster. The timer can show this in fractions of a second.

4_2005-2006 #150019
FULL OS Version

This code illistrates how to use GetVersionEx in all OS's from Windows 95 and up. This class can detect all current OS's including Windows 95/98/ME/2000/XP and .NET (Professional / Home / Server / Enterprise / Domain Controller/ DataCenter/ Web/ Advanced) etc. It will also detect service pack's and suites installed on the machine. Addition by Ryan9999 now checks for Tablet PC 2005.

4_2005-2006 #152232
RDS Like connection on a ASP Page with a Combo Box

This is not real RDS but a simulation (Like Access's Not_In_List event). This functions gives the user the ability to 1) Add a new Value into a Database table and 2) update and select the value in the combobox WITHOUT REFRESHING the page from the server. I found this to be a life saver with large ASP pages with comboboxes on them that need to be dinamicaly filled. (You don't have to worry about the controls on the pages)

Languages
Top Categories
Global Discovery