Advertisement

Results for "Category: Files/ File Controls/ Input/ Output"

C_Volume2 #75775
Open any file...

This code will open any file with its creator. It is very small and simple... worth a look at. It works on all versions of Windows. Please let me know what you think of it and vote if you like.

C_Volume2 #75795
FileReady Function

Here is a useful function I created to solve a problem I was having in processing files for one of my applications. This function works better than trying to use the VB 'OPEN' command because it will always return the correct state of the file (even on a file that is being FTP'd at the time of the test.) See remarks in the FileReady function on it's use, as well as a sample at the end of this note.

C_Volume2 #75825
Code Statistics v2.0

This will get various statistics of your code. it can scan projects, forms, modules, classes and controls. The informations retreived.. well, just look at the picture. The code is a definate improvement on the last version which only scanned projects, forms and modules. This version can scan classes and controls, plus gets the amount of declared variables, properties and api decalrations. The code itself has also been slightly re-structured for ease in inserting any other files you wish to scan for. Let me know if you have any suggestions, as these improvements were suggested in the feedback from the last version. Any votes are also appreciated :) Thank you.

C_Volume2 #75838
Copy and Paste files with clipboard

A simple example on how to copy and paste files with the windows clipboard. Just like the windows explorer does

C_Volume2 #75844
ActiveX Installer 1.1

This code creates a small self-extracting EXE which can be used for installing ActiveX controls and DLLs. You can display a license agreement and have the component(s) automatically registered. This version allows multiple files to be added to the EXE and has a new interface. You can also save your projects for later use. Be sure to compile the Stub project before running the AXExe project.

C_Volume2 #75888
Compressed File Viewer

Stripped code from Dana Seaman's FolderView project. I stripped the project so that the result was only the code that enumerated compressed files. With this code you can view the contents of compressed files (zip, cab, rar, and ace). Note that this code does not compress or uncompress files, it simply enumerates the contents of the compressed files. Also works with shared files over a network. Dana 's original code is at: http://www.planet-source-code.com/xq/ASP/txtCodeId.23292/lngWId.1/qx/vb/scripts/ShowCode.htm All of the code here is Dana's except for the minor stuff like the "Dump to Text File" subroutine and the browsing function. You will notice that there are alot of variables that have been commented out. Those are just the byproducts of the original and bigger project. They were not needed for the compressed file enumeration but i left them in the code. I want to personally thank Dana for such good work.

C_Volume2 #75915
pjl_setmessage

A small module to set the status message on PJL printers (HP's etc).

C_Volume2 #75940
Scan with vb

With this code you can scan pictures by a scanner Yuo can select a TWAIn and of curse scan. When you download you will download a dll file that you will need to scan in vb

C_Volume2 #75982
FileSystem module

BAS Module that handle several FileSystemObject methods using Windows API calls. Several new functions were added. This module will make file/folders operations a breeze.

C_Volume2 #75990
FileAttribs

allows viewing and changing of file and folder attributes batch or one at a time. contains warning msg boxes where nessary

C_Volume2 #76005
_*Who said it had to be called msvbvm60.dll? under 1 SECOND FLAT FOR 20 MB !!!! VERSION 3*

This is is originally from Mark Withers . Mark Withers Mark Withers Mark Withers I do not want anyone to tell me I steal code. I just wanted to show Mark how to Update is code... I got it running under 1 second for a 20 Mb file... yes!!! under 1 second no, no API required... only pure VB optimization... I first calculated all FileLen and Len before the loop... this is THE optimisation that did all the thing then I used a buffer for looping through the file and I added null chars at the end of the dll name if it was too short, because in C++, strings ends with null chars I hope this helps you Mark Best regards, Jean-Philippe Leconte Senior programmer Win32/64 expert C++ / VB

C_Volume2 #76008
Convert INI Files to XML

Take your Desktop apps into this decade by using XML files for INI Files. This Module will translate or convert your exsisting INI files into XML. If you are interested in the source code to access elements in your XML Files in place of INI Values, let me know

C_Volume2 #76014
Auto Run Registry Entry

If you have ever needed to have your program start at the same time as windows starts without putting the program into the start up menu but have been unable to figure out how to do it then just follow the following text.

C_Volume2 #76042
Hyper-link / mailto

Easily lets you add a link from you VB application or open default email program.

C_Volume2 #76044
TreeviewFrom/ToFile

This example builds on Srinis example found on www.vb-helper.com. Srinis example loaded data to a treeview from a text file with tabs denoting indentation. My contribution is the save treeview to file function. It only saves one level of childs, it was all I needed for my other project. Srinis example loads more than one level of childs. I am shure some small modifications to my example will enable it to save multiple levels of childs, but thats your jobb ;)

C_Volume2 #76047
Drag-dropping, dynamic controll adding

Sorry last entry had no .BAS FILE, SORRY FOLKS... It demonstrates how to use the drag & drop methods. It also shows you how to dynamically add controls in run time and how to move controls around. The prog lets you create controls and have them snap to a grid.

C_Volume2 #76069
Read INI

Opens a INI-file and Get the value of ex: "Screensaver=" without using any system calls!!!

C_Volume2 #76070
ShellExec, Wait and Check for changes for a file.

This sample program calls the Windows API to ShellExecute to a file you select. Then it opens the file with it's associated program, waits for the program to end, and identifies if the file has been changed. Rock ON!

C_Volume2 #76118
FindSystemFolders

Returns the path to a system folder, based on input. This code is based on a submission by 'Don'. Originally the code only found the System Folder on the machine. I have added all of the system folders (MyDocuments, System, Cookies, etc), and made it into a class/dll for ease of use. The code is relatively self explanatory, however, I have added comments, just in case.

C_Volume2 #76193
OCX >Virtual Hard Drive< OCX

Creates Virtual HDDs , BUT now it automatically converts the LongPath to ShortPath , so it is great for newbies.The *.zip file includes a very nice sample and the ocx.Vote if you want...

Languages
Top Categories
Global Discovery