Advertisement

Results for "Author: ulli"

6_2008-2009 #198427
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!

6_2008-2009 #198428
Memory Mapped File Wrapper Class

A Memory Mapped File resides in virtual memory from the moment it is opened until it is closed. This makes access to it very fast, in fact read and write merely consist of data moves in memory. All parts of the file are accessible by means of a zero based offset and the length of the data chunks you can transfer is only limited by the file size itself. The system will swap out and in pages of virtual memory as necessary. Only when you close the file the data are "lazily" written to disc, and the Physical Write Operations are limited to the altered memory pages. When you open an MMF you are required to supply an estimate of how large the file is gonna be. Any reasonable estimate will be fine, however, you cannot exceed this estimate, ie you can't extend a file while it is open, but you can truncate the file size to the actual size used when you close it. You can extend an existing file by giving the appropriate estimate when you open it and truncating it to the larger size when closing. MMFs are byte oriented and that requires a bit of understanding the data types which VB uses and how they are represented physically. The class contains tools however to handle the different aspects.

6_2008-2009 #198429
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.

6_2008-2009 #198430
Enumeration Spelling

How to keep the upper/lower case of Enumeration members

6_2008-2009 #198431
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)

6_2008-2009 #198432
KnightRider ActiveX Custom Control

This is a KnightRider Custom Control with customizable Back- and ForeColors, Size, Speed, and Effect. The appearance and effects can be viewed in the IDE; that is it is already active in Design Mode :- just set the Enabled-property to True. It was inspired by a previous submission to PSC.

6_2008-2009 #198433
A Noisy Class

Simple Sound Mixer Wrapper Class plus Test Driver. Unfortunately the Mixer interface is rather complicated - maybe written by a musician *g* - so there are quite a few mystic API calls with plenty of params, mixer-constants with ugly names, cryptic structure types, and virtual memory address pointers from one structure into the next. And Micro$oft's documentation is slim, to put it polite, but I tried my best to put all that into a wrapper with a simple interface: You choose the Channel and SoundControl; this will return True if the selection was successful, and then Get or Let the Value. (Note that ALL values are in % - for booleans (like Mute) the value 0 means False and 100 means True - one hundred percent true, so to say).

6_2008-2009 #198434
VB IDE Full Screen (Update #2)

This little AddIn toggles VB's code pane windows between normal display mode and full screen display mode. Simply compile the .dll into your VB folder and then use the Add-Ins manager to load it into VB. Updates include: safeguard against accidentaly closing a codepane or VB while in maximized state, and an emergeny fallback in case VB crashes while maximized. So the necessity to manually re-do the registry after a crash should have gone. Some of your feedback suggestions have also been added.

6_2008-2009 #198435
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).

6_2008-2009 #198436
Ulli's Profiler AddIn V 2.4.4

This AddIn will put all necessary instrumentation into your project to create a run profile. Then during execution profile data are acquired and finally evaluated and shown. New: You can now also replay your program code execution at different speeds. ► Bug reported by hedgehog fixed.

6_2008-2009 #198437
Sort without sorting (one million elements in 3(!) seconds) Update

This Sort-Class can be used to retrieve the elements in a one-dimensional table of strings in either ascending or descending sequence. The table itself is not altered in any way by this process, rather pointers into the table are returned which point to the elements in the table in the requested order. Tests on a 1800 MHz Athlon processor have shown that the Sort is in fact the fastest I know, sorting 100,000 elements on a five byte random sort key in under 0.3 seconds. The speed varies only very slightly with the number of elements to be sorted, so one million elements take about three seconds to sort. Any special presorting has no measurable effect on speed (Quicksort by contrast is almost killed by a presorted sequence).

6_2008-2009 #198438
Binary Adder Demo

My son and I made this for his IT class. You set or reset the operands bits, the mode, and the injected carry; the binary result, the intermediate and final carry and the overflow bit are then computed and displayed by applying the actual logic in the diagram. Download 8 kB

6_2008-2009 #198439
Am I running in the IDE?

The proper way to find out whether your code is running in the IDE or was compiled

6_2008-2009 #198440
A Very Flat Std Command Button

Make a standard command button very flat ;-)

6_2008-2009 #198441
Nested Arrays Solution

Example

6_2008-2009 #198442
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.

6_2008-2009 #198443
A Hungry Cat

This is a little cat which yearns for the mouse - at least it follows it with the eyes all the time. You can drag it anywhere you like, and it goes away when you doubleclick it. Try it, download is only five kB.

6_2008-2009 #198444
A Standard Message Box with TimeOut

This is a normal Message Box, but with a timer which will make it disappear after a certain amount of time. The return value depends on whether the user clicked one of the buttons (when the normal MsgBox return values are handed back) or whether the box was closed automatically - in this case a zero is returned.

6_2008-2009 #198445
GPF Interceptor

This project shows how you can intercept GPFs. Instead of crashing your application in case of a GPF, a PopUp is openend showing error details and giving the user the choice between continuing the buggy application or terminating it in a neat and proper way. (This is based on a previous submission. Tested on WinXP only.)

6_2008-2009 #198446
Talking Custom Tooltips

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 and fonts are also possible as well as an assortment of Icons to be displayed in the tooltip and finally individual delay- and show-times. And whats more - the tooltip can now speak using Microsoft's Speech Object Library (SpVoice in sapi.dll), no XVoice.dll or VText.dll! 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 10 kB.

Languages
Top Categories
Global Discovery