Advertisement

Results for "Author: ulli"

ASP_Volume2 #34690
Register DLLs and OCXs with a mouse click

Check it out, download is only 1/2 kB.

ASP_Volume2 #35184
Compute Pi...

...up to 10,000 digits and more.

ASP_Volume2 #35244
Ulli's Chess Playing Program

This is my attempt to make a chess program. The AI still needs a lot of cooking but the UI is done and it knows most rules (read the attached F.I.D.E. Laws Of Chess). Don't try yet to play against the computer - you will win :-) or worse - the program may crash. I myself am a below-average chess player, so I cannot say anything about the program's strenght or style of play. Time limit does not work properly, so give it say 6 or 12 seconds thinking time, more will make you wait virtually forever... Problem solving works though, I think. Unfortunately PSC does not let me upload Gradient.OCX or MsgHook.OCX, so you will have to delete all references to them. Also the TTF Amaze is not uploadable, just substitute another nice looking font for it. The piece images were copied from RJSoft's Chess Program, with his permission. Enjoy.

ASP_Volume2 #35971
Unbreakable Encryption (?)

Class to encrypt and decrypt a clear text with variable character length encoding. There is no relationship between byte boundaries and encrypted characters, ie an encrypted character may theoretically be anything from 1 to 255 bits long; however this depends on the 'quality' of the key. I am not a cryptoanalyst, but I have a hunch that the variable character length makes this code rather difficult if not impossible to break. One approach may be to scan the encryption for repeating bit-groups and guess the meaning of short groups occuring more frequently than others (like "the", "a", "an" and so forth), or for patterns occuring with a language-specific frequency of vowels and consonants. To forestall that, the encrypting engine uses an initial hash (also derived from the key) and XORs every character with that before encrypting, keeping the result of the XOR for the next character. The decrypting engine of course reverses that process. The encryption engine now features an MD5 message digester which produces a key- and message-dependent binary signature. This signature may be included in the encrypted text to verify it's authenticity. Another advantage of prefixing a message with a signature is the additional scrambling of the encryted text through the previous encrypting of the unpredictable signature (see 'hash' above). This makes the encryption key- and text-dependent, that is, the encryption for a particular character is different when the text is different (apart from being different through hashing). Speed (without debugging) is in excess of 40,000 bytes/sec for encrypting and more than 130,000 bps for decrypting (depending of course on your PC's clock frequency).

ASP_Volume2 #36367
Rotate text

Shows how to rotate the orientation of True Type fonts

ASP_Volume2 #36393
Ulli's Source Code Comparator (updated)

This AddIn compares the source code in the VB IDE with the source code that was last saved and shows the differences. If you have been working on a piece of code for a while you can probably not remember all you have done. One click - and this AddIn will tell you. Alterations to the form or to controls in that form are also shown. The comparison is not line number dependent but is controlled by content only. Unaltered lines are shown in black, new lines in red, deleted lines are blue and striken out, and finally changed lines are shown as deleted and new. Empty lines which you might have inserted or deleted are not shown - this is because I found it rather difficult to strike out nothing *g*

ASP_Volume2 #36857
Irregular shaped forms

Class to create an irregular shaped form from a picture. The screen shot sample shows an MM-shaped form and the ears, the black circle and the button make up the form. The remainder inside the circle does not belong to the form.

ASP_Volume2 #36896
Elastic text

Bouncing elastic text effect

ASP_Volume2 #37164
Slider Construction Kit

Replacement for the standard Scrollbar with own pictures for the buttons, thumb and body and with quite a few more properties.

ASP_Volume2 #37448
Game of Checkers with AI

This is a game of Checkers which employs true alpha-beta pruning, iterative search deepening and principal variation move ordering. It runs to a ply of 12 to 18 analysing about 200,000 positions when given 30 seconds thinking time. I am not good at playing the game, so I don't know if it can be beaten - I haven't been able yet (with the planned moves list switched off) ;-[. The rules are included - found them somewhere on the WWW. This is an updated version with a few bugs killed and with Conditional Compilation to implement the American Checkers Federation Rules (where the pieces do not jump backwards). Other updates include: board editing, problem solver mode (solving a 17-move problem in under five minutes), better graphics, and piece and square highlighting. Found this in one of my arcives, so I thought I might as well upload it again.

ASP_Volume2 #37948
A li'l joke

See for yourself... download is only 1.5 kB

ASP_Volume2 #38012
Ulli's Math Module

This is a String Parser / Math Formula Evaluator OCX-Control. It contains over 100 functions: simple add / subtract, mult and div, roots, exponentiation and logarithm, math, trig and stat functions, conversions, LCD, SCM, primes, faculty, dates and times, differentiation and integratation and l.b.n.l. some functions for fuzzy sets and for plotting curves. All functions can be combined into huge formulae like for examüle Sin(33°+12'+21")*pi-e+3.3e4+sqr(5*(21-9)) which incidentally returns 33006.748173093. The Control also supports formulae with letters or names instead of numbers like r²*pi Whenever the Control detects a token in a formula, it will query the value for the token and the client may supply anything that is a valid formula including further tokens, thus enabling chain-calculations. A user accessible result stack is also implemented. Anyway - it's a treasure chest for math routines (for example containes a very fast prime number generator which can compute 100,000 primes in less than 2 (two!!!) seconds on an AMD Athlon(TM) XP1800+). A cross-linked help file is included as well as two sample proggies to test and demonstrate the capabilities. Download is 36 kB.

ASP_Volume2 #38451
Custom ToolTip Class (update)

This demo application demonstrates the use of a Custom Tooltip Class supporting square and ballon style tooltips, centered at the corresponding control or at the mouse pointer hot spot, with or without title. Individual back- and forecolors are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. The code is easy to follow and well documented. And on top of that the class is very easy to use. Check it out, download is only 6.4 kB. (Sorry the screenshot didn't come out very well)

ASP_Volume2 #38463
Enumeration Spelling

How to keep the upper/lower case of Enumeration members

ASP_Volume2 #38982
DropDownControlContainer

This little container OCX works like dropdown combo exept that it can contain other controls. Dropdown and Collapse can be set to occur either on MouseEnter/Exit or on TitleClick. For those of you interested in how to use Mouse Tracking this is a good example because it uses Subclassing and the Windows MouseLeave and MouseHover system messages to control it's behavior. Try it, download is only 8.5 kB. Tested (and probably works on) Win32 only!

ASP_Volume2 #39094
Ulli's Code Formatter 2.17.9

***Bug Fix*** This Visual Basic Add-In will format your code for a generally accepted indentation - one tab per structure level, the tab width being obtained from the IDE. It will also check your code for some of the most common ommissions and traps. Included are a Code Printer, a Copy Facility, a Code Structure Viewer and an option to create WinXP manifest files and to modify your code to make use of them. Simply compile the DLL into your VB directory and then use the AddIns Manager to add it to the AddIns Menu.

ASP_Volume2 #39112
Safe Array Properties

A little set of routines and a test driver to read table or array properties: whether it is (re)dimensioned or still undimensioned, the number of dimensions, LBound and UBound for each dimension and a few other things that may come in handy. No fuss about skipping around Errors or such, just the proper way to do it.

ASP_Volume2 #39118
Hibernation Prevention

A little set of routines to prevent Windows from switching into StandBy or Sleep Modes. Use them if you have a long-running or overnight application which cannot be interrupted or suspended by Windows going into hibernation after a period of user idleness (as may be optioned in System Administration).

ASP_Volume2 #39520
Extended Timer

This is an extended timer OCX control permitting Intervals between 10 millisecs and 52 weeks. Although it has quite a few more properties it is still a direct replacement for the standard VB timer control. Check it out, download is only 5kB. Also, it's a good example for beginners who want to learn how to make OCXes.

ASP_Volume3 #48059
Ulli's Sudoku Solver (4x faster again)

This is an object-oriented Sudoku Solver combining the "cross hatching" strategy with a backtrack algorithm. It solves easy puzzles in about 600 µsecs and really hard ones usually in under 150 msecs (when compiled) on my old AMD Athlon XP1800+. The most evil one I could find is in the screen shot.

Languages
Top Categories
Global Discovery