Results for "Volume: 2002ASP"
Create a screen saver in VB!
Create program manager groups and icons from your code!
useful when you need to center an MDI child form within the parent windo
DtWinVer is a routine which provides a comprehensive method to determine which OS the program that calls it is running on. All methods it uses are fully documented on various articles on the MSDN CD. The routine provides the emulated OS aswell as the underlying OS. e.g. to a Dos program Windows 95 looks like MS-DOS 7.0.
16 AND 32 bit functions to read/write ini files--very useful!
add a horizontal scroll bar to a listbox or combo box
One of the posts that keeps reappearing in the programming newsgroups is how to enumerate all the serial ports installed. The problem is that there is no standard Win32 API call which allows serial port enumeration. The approach that this code uses is calling CreateFile directly. If the port cannot be opened, the code examines the error code to see if it was accessed denied error in which case it knows that the port exists even though it could not open the port. .
A very simple utility to allow you to call the ShellExecute API from the command line. Places where you might find ShelExec useful are in adding an Autorun.inf file to your CD-R / CD-RW Discs. For example suppose you have a HTML page called index.htm on the root of your CD which you would like to run automatically whenever the user inserts the CD. All you need to do is put ShelExec.exe, some ico file and the index.htm files into the root directory and create a autorun.inf file with the following contents: [autorun] open=ShelExec.exe index.html icon=youricon.ico Items that ShelExec can handle include any file which is registered with the shell e.g. Word .Doc files, Text Files, batch files etc etc. It can also handle URLs such as "http://somesite.com", "ftp://www.microsoft.com" and "mailto:pjn@indigo.ie". The more technically minded of you may say why is there a need to have this program since you can use "start filename" on autorun CD's without any apparent problems. The problem with this approach is that it does not work on NT because on NT "start" is implemented as an "Internal" command in cmd.exe (as opposed to a standard exe on 95/98) with the upshot that your CD's will not AutoRun on NT 4 or Windows 2000. Using ShelExec will mean that your CD's will autorun on all OS's which support it. The zip file contains the ShelExec source code and a prebuilt version of ShelExec.
This is the source code of the great old classic game Wolfenstein 3D!!! Visit http://programmerdude.homepage.com for more!
Removes trailing spaces from the end of a string. See "trim" to remove leading spaces.
DGB - A simple database program, Version 1, shows how to use linked lists, printing, clipboard, and other stuff.
The purpose for me was to create a simple game so that I could get exposure to Artifical Intellegence. I think I've suceeded in making a good bit of code with good, human like AI. I don't think you could find a more challenging player. If anyone can make this code shorter let me know.
BLACKJACK VS THE COMP, My code probably isn't that great, but it works...
This is a better random number generator than comes standard. It's from a very good book on algoritms. You should read it
How to Activate CapsLock and NumLock from Code
The goal of the present HTTPFS project is to enable access to remote files, directories, and other containers (e.g., structured text documents, OS tables) through an HTTP pipe. HTTPFS system permits retrieval, creation and modification of these resources as if they were regular files and directories on a local filesystem. The remote host can be any UNIX or Win9x/WinNT box that is capable of running a Perl CGI script, and accessible either directly or via a web proxy or a gateway. HTTPFS runs entirely in user space. The current implementation fully supports reading as well as creating, writing, appending, and truncating of files on a remote HTTP host. HTTPFS provides an isolation level for concurrent file access stronger than the one mandated by POSIX file system semantics, closer to that of AFS. Both a programmatic interface with familiar open(), read(), write(), close(), etc. calls, and an interactive interface, via the popular Midnight Commander file browser, are provided. HTTPFS offers a glimpse of one of Plan9's jewels -- a uniform file-centric naming of disparate resources -- but without Plan9. This file system showcases HTTP, which is capable of far more than merely carrying web pages. HTTP can aspire to be the kingpin protocol that glues computing, storage, etc. resources together to form a distributed system -- the role 9P plays in Plan9. HTTPFS articles argue that unlike a popular catch phrase, it is the OS itself that is the browser. The client framework has been tested on GNU/Linux 2.0.36, HP-UX 10.xx, Sun Ultra-2/Solaris 2.6. An HTTPFS server will run on anything that can execute a Perl CGI script -- and this really means anything. The server has been tested on HP-UX B10.xx with a Netscape Server/1.12, Sun/Solaris 2.6 and Linux with an Apache/1.3.x server, and with Microsoft-IIS on WinNT 4.0.
The DegreesToXYsubroutine, calculates the X (horizontal) and Y (vertical) coordinates of any point, measured in degrees, on the circumference of a circle or ellipse.
Get you a easy way for creating and using timers on your window application. This code use two timers and you can see how to start and stop the timer.
Prompting the User for a Directory in Win95. Windows' common dialogs are great if you want the user to select a file, but what if you want them to select a directory? Call the following function, which relies on Win32's new SHBrowseForFolder function:
This VC++ 6.0 project shows creation of menu in dialogbox and also a contextmenu on right button click.