Programs written in Visual C++ 6.0



1. ListViewFilesAX
It's an ActiveX control which displays the list of files in a directory. The control shows names, sizes and creation date of files.
The following methods are realized for the ListViewFilesAX control:
void updateData() refreshes contents
BSTR getDirectory() returns the name of the current directory
void setDirectory(BSTR dir) sets the current directory
BSTR getDrive() returns the name of the current drive
void setDrive(BSTR drive) sets the current drive
BSTR getFileName() returns the name of the selected file
BSTR getFilePath() returns the path to the selected file
boolean isDirSelected() returns true if the selected item is a directory
long getSelectedCount() returns amount of selected items
long getNextSelectedItem(long pos) returns the index of the next selected item (returns -1 if there is no selected item any more)
long getFirstSelectedItem() returns the index of the first selected item (returns -1 if there is no selected item)

The ListViewFilesAX control can generate the following events:
CLICK, DBLCLICK, KEYDOWN, KEYPRESS, KEYUP, MOUSEDOWN, MOUSEMOVE, MOUSEUP, READYSTATECHANGE

The conrol looks as shown in the image:


Download the sources of ListViewFilesAX


2. Select Email
The program selects all e-mail addresses from the file.  The name or the path of that file must be introduced by the user.
All e-mail addresses are output into the ListBox control. The user can save all found addresses into a file.
The program's main window contains the following controls: CEdit, CListBox, CTollBar (with tooltips).
All controls are anchored to the window's edges. The idea of realization of these anchors was borrowed here.

The main window looks so:
Main window

Download the sources of Select Email



3. Calculator
It's a simple calculator which has 3 EditBoxes on its main window. The user must introduce the input expression into
the first one.You can use digits, arithmetical operations (+, -, *, / ) and brackets. Thus the program doesn't
work with fractional numbers.
When you press the "Преобразовать в ОПЗ" ("Convert to PPN") button the expression is converted to the
Postfix Polish Notation. The second EditBox displays the result of that conversion.
When you press the "Вычислить" ("Calculate") button the program calculates the result and put it into the
third EditBox.

Download the sources of Calculator


To the main page

Rambler's Top100
Хостинг от uCoz