I'd certainly like a look at your program, so please do post the link.A possible alternative: there's a program called "Flopper" (do a web search; it's freeware) which lets you run disk images of "boot-up floppies". So you can run replicas of the original Sir-Tech Wizardry games for the IBM-PC, (actually they ran on something called the P-System rather than MS-DOS, but that's irrelevent).
The first three of the series are out there (along with another 100 or so PC games from the 1980s), I've just started playing around with it, but from brief exposure, the leveling up on a contemporary PC (1.13 Ghz Athlon) seems pretty much like it used to be when I was playing Wiz I on 6 MHz PC-AT clone.
Also the first level of the maze is about as deadly to level 1 characters as I remember it being!
Disadvantages: if you're using flopper, you've basically got a old PC or XT on your desktop, no matter what your horsepower: MS-DOS, EGA graphics at best, no access to high memory, no multi-tasking. And you have to reboot to get back to Windows. And the program could use a few bells and whistles-- you can save the game file you're playing, for example, but you can't change its name from inside Flopper.
Consider giving it a try. The price is right, after all...