Results for "Category: Miscellaneous"
Read P3 HU card info. from a HU Loader. Notice! this code will not work on a smart card reader. This code was made to help add functions in David Brewster HUEditor Code.
This code is basically from java 2 sdk. This main engine is actually from java but lots of featutes are added to it. I was really fedup of these java programmers talking about the java applicationb power. So i made a better application in VB which is inherited from java.
Creates an Autocomplete drop down box
This is a list of issues that I had while implementing this technology in one of my programs and how to solve them. This information took me many days to collect and should save you about a week's worth of testing. To understand this you need Srideep Prasad's turorial on "Multithreading" (txtCodeId=24672), also available at PSC. I've tried all multithreading methods listed on PSC and I found this method to be the best.
Displays a floating progress bar next to the cursor. Form follows cursor displaying the progress bar.
Version 2.0!! NOW WITH MIDI PLAYBACK, Can Pick Or Strum!!!! I Have used, not copied as i already had most of it done, Frederick J. Benjamin's RiffMaster 2 idea, mainly for ease of use, I have programmed it myself, the way he programmed the midi inspired mine tho! ALSO! NOW USES DATABASE! U WILL NEED TO REFERENCE DAO 3.6 AND IT IS AN ACCESS 2000 DATABASE! MIDI Uses just the MIDI Mapper for now!
Squeak be gone! Have you ever wondered how to hide the user's cursor (mouse pointer)? Well, this simple API call will do the trick! See what you can do with it, and please vote!
To show how useful a flexgrid is.
Dijkstra's algorithm is of use when working with directional graphs. It constructs the shortest path between a starting-node and a goal-node. The idea of this VB project was to show the work of this algorithm in a visual way.
*** Update: See my new submission here... http://www.exhedra.com/vb/scripts/ShowCode.asp?txtCodeId=42918&lngWId=1 If you do want the original zip then email me at [email protected] *** cSuperClass.cls is i believe the fastest, safest compiled in window subclasser around. Speed: The WndProc is executed entirely in run-time dynamically generated machine code. The class only calls back on messages that you choose. Safety: So far I've not been able to crash the IDE by pressing the end button or with the End statement. Flexible: The programmer can choose between filtered mode (fastest) and all messages mode. In filtered mode the user decides which windows messages they're interested in and can individually specify whether the message is to callback after default processing or before. Before mode additionally allows the programmer to specify whether or not default processing is to be performed subsequently. No module: AFAIK this is the only subclasser ever to eschew the use of a module. So how do I get the address of the WndProc routine? Simple, the dynamically generated machine code lives in a byte array; you can get its address with the undocumented VarPtr function. The real magic in cSuperClass.cls is getting from the WndProc to the callback interface routine using ObjPtr against the owning Form/UserControl, see the assembler .asm model file included in the zip. Speaking of which... it may well be the case that my assembler is sub-optimal. Any experts out there willing to take a look? I thought I had a nifty/dirty stack trick working for a while but it didn't pan out. Should work with VB5 if VarPtr & ObjPtr were in that release? Sample project included. Regards.
This simple example shows you how to create an irregular shapped form (see screenshot). You can choost from the sample, or click on the form to view the tamagotchi-shapped form! What shapes can you make? Send the code to me! Thanks!
This is a clean recusive set of functions that will check and uncheck parent and child nodes of a treeview If you click a node it will check/uncheck all parents and children of this node. These are Simple Recursive functions. Similar to a previous posting but simpler, cleaner and no API's.
Article to show those who do not know about the Templates folder for VB how to save templates to it for future use.
Displays which files were dragged from Windows Explorer (the desktop) to your form. Resolves shortcuts as well, so any shortcuts dropped on the form resolve into the actual file.
Highlight textbox/combobox and its entire contents. Simple but cosmetically useful.
Help beginners to understand some codes. PLEASE RATE IT & VOTE FOR ME.
When you, for example, add listitems to a listbox or combo box Windows repaints the box after each addidtion. This takes up processing time, makes your app look bad (due to flickering) and if you add a lot of items it can take a long time(Especially if the Combo or Listbox Sorted properety is set to true) Windows provides an API called LockWindowUpdate that you can use to keep Windows from updating a control with a hWnd property. This code is a simple way to call that function.
The focus of my article is to demystify the printer object and present it as a magnificient object, which can be used to churn out dashing printouts without the support of any third party reporting tool.
Allow multiple users to use your app which is *licenced* from one server. Here's the deal: User wants to use 10 copies of your app. So rather than send them 10 individual keys, they get a copy of your server software to install on a server that all users can access. Now the user sends you their server UID (generated byt he program, is actually the users HDD Serial No.). You now create a key file for them for 10 users and send it back to them. They now copy this file in to their servers install directory and get 10 licences. 10 users can now connect and use your end application (any 10 with your application installed, but only 10 at a time. ie, installed on 20 machines, but only 10 at a time can use it!). Your users *cannot* use the same key file twice (to get double the amount of licences) as the key file uses a randomly generated number converted in to hex (encoded inside the actual file) to check that the same file with a different name is not trying to be used. Also, the user cannot run two copies of the server software on the same machine, as the software will only allow itself to be run as long as another application with the same name is not running.The key itself is encoded using the RC4 algorithm, then hidden inside a random generated string which is saved as the key file. RC4 encryption code from PSC, Server Control by Drew Lederman.
This TUTORIAL and Sample Code shows and describes how u can easy create a C/C++ Library.dll File and load it with VB References Option! ... u dont need the ugly Declare Lib Statements and its really easy to make (no MFC.dll or unreadable Microsoft C++ Code). Make the DLL, load it with VB Reference Option and see ur C++Functions in VB Object Browser with ur own made Descriptions to it. I also added a .rtf (Wordpad) Tutorial how u create the DLL ... Have fun with it, and if u like it, plz Vote for me :)