Command Line Calculator
7
This class uses reflection to locate option setters. Client class must contains methods setFile (to receive file names from the command line) and setOption### (to receive option ###).
(See also adapter-based implementation)
(See also adapter-based implementation)
5
This class illustrates mixed GUI/command line parameters passing. Any parameter may be specified in the command line. All unspecified parameters will be read using GUI dialog box.
9
Below is a bit of code which sets up drag and drop in a treeview. This is handy for if you have a list of items that can be sorted by the user.
Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.
private TreeNode sourceNode;
This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
Here is a bit of code to demonstrate how to do this. First create a new Windows executable project. Drop a TreeView component on the form, and let's name it 'myTree' for this demonstration. Go ahead and populate it with some dummy data; enough data to see the dragging and dropping in action. You will need a variable global to the form's scope.
private TreeNode sourceNode;
This is used to track the item we are dragging in our TreeView. Then define the event handlers listed below.
5
It is a simple converter which converts your number into roman number.
Due to roman numbers it can converts 4 digits.
Due to roman numbers it can converts 4 digits.
6
Code snippet that prints MAC addresses for Ethernet type devices.
1
leroi
Shows a few objects I built to perform some screen scraping...
6
Gives factorials for a given value.
5
I've found it kind of complicated to strip newline chars from a file with just the commandline. This tiny piece of code does just that.
I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
-5
Converts a hexadecimal string to an integer.
5
Simple C++ program that creates a directory with the asked username, and places 2 files within the directory that contain the asked for username and the asked for password.
This is an edit of another snippet I made, but I have fixed the creation of the user's folder so it is named after the user.
FlyingIsFun1217
This is an edit of another snippet I made, but I have fixed the creation of the user's folder so it is named after the user.
FlyingIsFun1217









