Results for "Author: ulli"
This pocket calculator is meant as an example for the almost forgotten State Transition Table technique. With this technique the complete behaviour pattern is stored in a two-dimensional table containig Reactions to input-triggers (in this case key presses, but depending on circumstances the triggers may be anything else), and States. An STT is an ideal tool to control game characters for example because it allows different reactions to identical inputs. The code is documented and also contains a short description of how it works. It's worth the download if you want to learn more about STTs, so give it a try. Download is 18 kB.
See for yourself... download is only 1.5 kB
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.
This is a prefabricated database browser to be used with bookmark- and clone-supporting SQL databases (MS-Access for example). It lets the user browse a database or search for specific entries and then select an entry for further processing. The appearance and contents are customizable. Everything above the blue line is part of the OCX Control. Simply stick it in a form, set a few properties and you're go with a commercial quality browser/record selector. A cross linked help file is included. Download is only 20.5 kB.
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.
Bouncing elastic text effect
Replacement for the standard Scrollbar with own pictures for the buttons, thumb and body and with quite a few more properties.
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*
Hi Folks, hi Ian, this site has the title 'Free(!) Source Code for the Taking' and I just cannot believe that the production plus handling plus P&P plus administration plus extras (mind No Profit) will cost a hundred bucks per CD. The community may wish to know, how you, Ian, have arrived at that figure, and it would be a nice and decent gesture if you could publish that. I am not greedy or anything like that, I just think, we have a right to know. Anyway, if you cannot publish that, I wish to have all my submissions deleted. Btw I consider it an insult to give us back what we submitted as a 'Price for Superior Coding'.
This Add-In creates a Cross Reference Listing for your VB Projects. The X-Ref shows all Public, Global, Friend and Private Data- and Code-Member definitions, where they are defined, their scope (Private / Public / Friend), and what they are: Sub or Function, Property, Event, Variable or Constant. Also shown are all references to these members with ComponentName.MemberName as well as Line and Column numbers. References to Components are also shown. The Cross Reference Listing may be exported to a color-coded RTF file (see screen shot) or to the Clipboard for subsequent pasting into the project or anywhere else. This is the second in the my suite of VB-Add-Ins and goes together with the Code Formatter. It will help you to professionally document your projects in a tidy and consistent way. Compile the DLL into your VB directory and then use the Add-Ins Manager to load the Cross Reference Add-In into VB. Fixed bugs with Resorce Files and Related Documents and added Icons as well as references to Controls, Libraries, and References.
Analyse Access Database Tables and Fields and optionally alter contents.
Shows how to rotate the orientation of True Type fonts
This AddIn helps you to explore and document your projects. The documentation is incorporated into the source code and may be printed by the Code Formatter Source Print Facility (updated version soon to follow). Compile the DLL into your VB directory and then use the Add-Ins Manager to load the Explorer Add-In into VB. The Splitterbar.OCX (included in the .zip file) is a Control based on a submission by eidos here at PSC. You should copy it to the Windows System Folder and register it using RegSvr32.
This OCX records all mouse and keyboard activities for later playback with original timing. May (but should not) also be used as a stealth keylogger. Try playing back the attached TEST.RCD file :-).
Example to show how to synchronize painting to the Monitor's vertical scan frequency. Painting occurs invisibly during vertical retrace.
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).
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.
...up to 10,000 digits and more.
A new type of progress indicator (mileage counter and speedometer), similar to the one you have in your car. Check it out, download is only 17 kB.
This pocket calculator is meant as an example for the almost forgotten State Transition Table technique. With this technique the complete behaviour pattern is stored in a two-dimensional table containig Reactions to input-triggers (in this case key presses, but depending on circumstances the triggers may be anything else), and States. An STT is an ideal tool to control game characters for example because it allows different reactions to identical inputs. The code is documented and also contains a short description of how it works. It's worth the download if you want to learn more about STTs, so give it a try. Download is 18 kB.