Advertisement

Results for "Author: paul mather"

C_Volume2 #77991
FTP Get Directory Example

FTP Get Directory, Get, Put, Touch & Delete functions.

Java_Volume1 #88934
VB Timer Replacement

This is an OCX example of the SetTimer and KillTimer API calls. You can essentially replace the VB timer with this example. The Interval property can be set to as long as 24 days. It also has a ProcessPriority property to easily change the priority of your application. NOTE: Priority level setting DOES NOT WORK on XP or Windows 2000. It won't error out anymore, but the process priority setting code was causing the error. Fixed 12/10/2004

Java_Volume1 #90994
Set System clock automatically from Internet

This is a simple little app to show you how to get the current time (GMT) from the Internet and automatically set your PC clock.

Java_Volume1 #92285
Large File Splitter

Uses Windows API to properly split and join large files. This code is extremely efficient and will split a 14 meg file into 1 meg chunks in just over 5 seconds depending upon your harddrive speed. This is not a weak attempt at the Line function (Like some other posts). This is the real deal. ** Updated Nov 30, 1999. **Now includes split to file count or file size. Creates Batch file for quick rebuild and no longer needs the Common Controls or Common Dialog box OCXs. Uses API calls instead. Includes code for a simple Progress Bar Replacement.** Updated May 23, 2001 **Added Copy to Floppy

Java_Volume1 #92286
Common Dialog API calls

Here are the Windows API calls for the ShowOpen, ShowSave, ShowPrinter, ShowColor and ShowFont (Thanks to Jaen Saul aka SlowByte for his post) dialogs. Also included is the beginnings of the ShowFonts dialog but I am haning some trouble getting it to work. These calls are more difficult to use than the CommonDialog control placed on a form, but don't have the version conflicts that Early-Bound and Form-Bound ActiveX controls have. In addition, I have added the ability to center the dialog on the form or center it on the screen.

Java_Volume1 #92298
File Version Logger

Checks version, date & time information. Recurse subdirectories and filer file types. Great for debugging file version problems.

Java_Volume1 #93471
Ping, Resolve Host by IP and Resolve Hostname

This code will allow you to Ping a server based on ipaddress or hostname. You can also cross-reference ip to hostname or vice-versa. Makes use of the wsock32 and Icmp dlls. Calls gethostbyname, gethostbyaddr and IcmpSendEcho functions.Please Vote!

Java_Volume1 #95395
NT Service (Updated!)

Here's an update to my post on NT service. I've found the API examples is MSDN to be incorrect. I've tried to fix some of these bugs and make the routines useful. However, the best addition is a Microsoft OCX to make services easy! NTSVC.OCX is included and free to distribute. Take a look at the sample code an decide for yourself. NTSVC finally makes running your app as an NT service easy!!! You may want to read the MSDN articles: "INFO: Running Visual Basic Applications as Windows NT Services" "NT Service: An OLE Control for Creating Windows NT Services in Visual Basic" Here are some links to check out: http://support.microsoft.com/support/kb/articles/Q170/8/83.asp http://support.microsoft.com/support/kb/articles/Q175/9/48.ASP http://msdn.microsoft.com/library/techart/msdn_ntsrvocx.htm http://vbwire.com/advanced/howto/service2.asp http://vbwire.com/advanced/howto/service.asp

Java_Volume1 #95396
FTP Module using WinInet's API calls

Well everybody and their brother already have a post here for FTP calls, but I thought I'd throw in my 2 cents. Basically, I took the WININET.TXT -- WININET API Declarations for Visual Basic file and added wrappers to make things like GetDriectory, PutFile, GetFile, DeleteFile and TouchFile easier to do.

Java_Volume1 #95418
ADO Database Viewer/Editor

Have you ever needed to view a database on a computer without MS Access? Here's an alternative. It uses ADO 2.1 to open, view & edit MS Access, SQL server, DSN and Oracle databases. There are also a few features to let you add, rename and delete tables as well as purge based on a Date/Time field. Clearly not a replacement for MS Access, but you can distribute it to help troubleshoot. Automatically registers itself as the default database viewer for .mdb files on systems without a default already set. Otherwise, it becomes a second option when right-clicking. Its Biggest advantage is its all ADO. No DAO at all. Now you're able to modify older versions of Access databases when Access itself requires a conversion!! I recommend distributing MDAC 2.5 even if you have a 2.1 application. Microsoft seems to have fixed some of the install problems with the MDAC 2.1. Please Note that you MUST HAVE the Oracle client installed on your PC to use the Oracle connection!!http://www.microsoft.com/data/download.htm ** Updated 3/21/2000 **Added Password support for Access databases.Please vote!

Java_Volume1 #95444
Get BMPs from Access using ADO

This will allow you to get BMPs (only Bitmaps) from an Access database using ADO. Officially, Microsoft says this about it in MSDN:INFO: Issues Migrating from DAO/Jet to ADO/Jet ID: Q225048 OLE Container Control Many databases, including the SQL Server 7 Northwind database, contain pictures and other objects saved by Microsoft Access. In Visual Basic, you can see the pictures by binding the OLE Container control to the DAO Data control. However, the OLE Container control is not compatible with the ADO Data control and there is no way to access these pictures and display them using ADO. The OLE Container control cannot be used unbound because GetChunk does not retrieve the data in a format compatible with the ReadFromFile method. Please Vote!

Java_Volume1 #95669
DateDiffEx

Input a Starting Time and an Ending Time and this function will translate it into English. For Example: DateDiffEx("02/12/2002 5:05:28 AM","02/14/2002 8:00:58 PM") Return= "2 days, 15 hours", DateDiffEx("02/14/2002 5:05:28 AM","02/14/2002 8:00:58 PM") Return= "15 hours, 55 minutes, 30 seconds". It only includes the "s" if the value does not equal 1. It eliminates the 0 values as well.

Java_Volume1 #95730
ComboBox Auto-Complete

Auto-Completes your Dropdown Combo Style ComboBoxes. Inspired by Dave Havard and Dan Redding's posts, I decided to write one of my own. It doesn't need the Keyboard Hook like Dave's and handles backspaces better than Dan's. Function is in a module and ready to be included in your project. Just call it on the Combo_Change event.** Re-submitted 4/5/00 **Minor Updates including ComboWidth updating (Thanks to Randy Birch's posts). I had to resubmit because khanjar@videotron.ca made an unwarrented vote of "poor". People were avoiding this post like the plague...for no good reason. Khanjar, you suck.** Re-submitted 4/11/00 **Includes a much better method for determining maximum text width. Thanks to Jeff Cockayne's contribution, additional features like Adding to History, Load & Save History plus allows use of upper & lower case typing. Thanks again Jeff! Please Vote!

Java_Volume1 #95731
File Date, Time, Size, Attributes, Type & More!

This returns all the information I can think of about a file. Please not that Last Access Time will always return 12:00 for a time. That's because Windows does not track that information so you may want to use a filter without "HH:MM:SS" in it for that item. Not every file has a version associated with it either. *** Updated 4/5/00 to add nVerNotUsedVB, Company Name, Copyright Info, Product Name and other string Info to FILE_INFORMATION type ***

Java_Volume1 #96535
FTP Get Directory Example

FTP Get Directory, Get, Put, Touch & Delete functions.

1_2002 #104873
Set System clock automatically from Internet

This is a simple little app to show you how to get the current time (GMT) from the Internet and automatically set your PC clock.

1_2002 #104874
Common Dialog API calls

Here are the Windows API calls for the ShowOpen, ShowSave, ShowPrinter, ShowColor and ShowFont (Thanks to Jaen Saul aka SlowByte for his post) dialogs. Also included is the beginnings of the ShowFonts dialog but I am haning some trouble getting it to work. These calls are more difficult to use than the CommonDialog control placed on a form, but don't have the version conflicts that Early-Bound and Form-Bound ActiveX controls have. In addition, I have added the ability to center the dialog on the form or center it on the screen.

1_2002 #104875
VB Timer Replacement

This is an OCX example of the SetTimer and KillTimer API calls. You can essentially replace the VB timer with this example. The Interval property can be set to as long as 24 days. It also has a ProcessPriority property to easily change the priority of your application.

1_2002 #104876
File Version Logger

Checks version, date & time information. Recurse subdirectories and filer file types. Great for debugging file version problems.

1_2002 #104877
Ping, Resolve Host by IP and Resolve Hostname

This code will allow you to Ping a server based on ipaddress or hostname. You can also cross-reference ip to hostname or vice-versa. Makes use of the wsock32 and Icmp dlls. Calls gethostbyname, gethostbyaddr and IcmpSendEcho functions.Please Vote!

Languages
Top Categories
Global Discovery