Advertisement

Results for "Category: Miscellaneous"

7_2009-2012 #227322
App Closer

App Closer is a small program which displays all of the open apps on your computer and allows you to choose one to close. This is my first submission, so don't blame me if it's a bit lame. Thanx.

7_2009-2012 #227355
Creating Multiple New Controls At Runtime

Creating New Controls At Runtime useful for creating a front end to Vb6 or a programming like the D++ Programming one.

7_2009-2012 #227359
Netmeeting Finder

This program will scan an IP range to find all computers running netmeeting. I created this to use on my works network to find all the PC's that we have enabled the remote desktop sharing. Pleae note this is my first submission to PSC and all is a bit scary.

7_2009-2012 #227363
A Good ListBox Seach function

This code searches a listbox for a given string, and returns the the ListIndex of the Item that matches the given string.

7_2009-2012 #227368
Turkce Heceleme - Hyphenation in Turkish

This is an implementation of a Finite State Machine for hyphenation in Turkish.

7_2009-2012 #227373
Add a button to the ControlBox (beside the Min, Max and close buttons)

This will add an ADDITIONL button in the ControlBox (beside the the Minmize, Maximize, and Close buttons).

7_2009-2012 #227400
FYI: Multidimensional Array Sort

Another contribution to existing code. Very quickly sort a two-dimensional array containing any amount of members (ex: vArray(5,1000) by simply identifying the member of the array to sort on. This routine has links to the original authors' posts in the source. My only contribution was to tweak for use in more than a 1-dimensional & 2-dimensional/2-member arrays. Please no voting on this one; 99% of it is the work of other coders. PS. Revised by switching the array elements around properly,i.e, from vArray(1000,5) to vArray(5,1000). Revised once again (21 Nov) to offer fast search on sorted array & to properly handle non-zero based arrays.

7_2009-2012 #227405
FYI: Is Your Window HiJacked?

For the paranoid: A simple test to determine if your window is being subclassed. This is a very simple demonstration & usage/expansion is up to you. Not much use without a form, huh? Oops.

7_2009-2012 #227406
LaVolpe PathFinder IV: Non-Tiled Graphs

[No code update; only added the missing RTF file]. Fastest non-tiled graph path finder. Extended my unique approach & believe it is 100% accurate and still very fast. This approach uses window regions to process open space very quickly. Where A* & Dijkstra require known distances between nodes, this project kinda explores on the fly, creating the needed link structure as it explores. Give it a go & if you want to discuss better logic/routines, please email me. P.S. Sorry about the large screenshot: wanted to show you the size of a graph & it's potential speed. Thanx goes to Stavros Sirigos for getting me re-interested in this project. Updated: a bit faster & fixed routine to recognize when start/end nodes in same regional rectangle. Updated 18Jun: added efficiency tweaks & correct path error that occurs maybe 1 out of 1000 paths.

7_2009-2012 #227420
LaVolpe Collection Class

Updated: See end of description for change... A hybrid collection class that kind of combines a TreeView collection (nodes and heirarchy) and the standard VB collection object. Supports arrays, objects & classes. The project exposes over 30 methods/properties to assist in managing the collection. It even has the ability of persisting the collection. Please play and offer suggestions and report bugs. Don't forget to review the RTF document included. 7Dec06::Added SortCollection & IndexFromKeyIndex routines. AddItem,MoveItem now allow sorting too. 14Dec06: Overhauled array serialization. Now supports all arrays, even supports nested variant arrays. Only user intervention would be serialization of your objects, if applicable. Added another test form to test Variant Arrays. 15Dec06::Reference counts on deserialized objects were not always correct. Fixed. 17Dec06: Added support to save stdPic/stdFont objects too. Final version, barring bugs/enhancements.

7_2009-2012 #227422
FYI: vbMemCompare (RTLMemCompare, MemCmp Alternative)

Want to compare 2 same-size bitmaps for equality? Want to compare 2 arrays for equality (even if arrays are different VarTypes)? NT-based systems have RTLCompareMemory, C has MemCmp. Win9x is reduced to byte by byte loops, more or less. This twist on that loop process comes really close to matching the speed of the two aforementioned API functions and can be used in every O/S. Thought I could use this for a project of mine, but the requirement went away. Compile the project for true tests (IDE is always slower). As always, stuffed with lots of comments.

7_2009-2012 #227424
MSDN Articles - FYI

As I move closer to acquiring XP and also moving towards .Net, I came across these two pages on MSDN. One page is a free, softcopy book converting VB6 to .Net & the other actually pertains to VB6 and Vista. I found them worthwhile, and you might too.

7_2009-2012 #227426
FYI: Previous Instance & Command Line Passing

Edited to expand comments & samples: Just one of many ways to check for previous instances across processes, that can also pass command line parameters used to start another instance. By now, many of you realize that App.PrevInstance doesn't work all the time. This version is a non-subclassing approach, a subclassing approach may be slightly cleaner. Compile sample project and test.

7_2009-2012 #227443
FYI: Drag n Drop Unicode FileNames

Add unicode filename support to VB when dropping files or pasting files. Making attempts to understand unicode support, I am discovering some shortfalls within VB. And in this specific case have not found a workaround for the problem so I thought I'd post my attempts. The problem can be experienced when a file name or path name has unicode characters (see screenshot). Unicode support is rather new to me and I am learning as I go. I think this mini-project may help others too. 23Apr07: Removed TLB requirement; no TLB used. 23Apr07: Found logic error. Assumed AddRef was being called by DispCallFunc but it was not; therefore, fixed error that would be calling Release when it shouldn't which could crash IDE.

7_2009-2012 #227444
SelfSub, SelfHook, SelfCallback by Paul Caton

Hooks END safe now, added Paul's CDECL class to project so we don't lose that one either. Continuing on where Paul Caton left off. Paul has moved on from VB and his thunks are too good to let die. The attached contains a complete revamping of his subclassing thunks and significant enhancements to other thunks. The subclassing thunks, I believe are now 100% IDE-safe. I have even placed END statements inside of the subclass procedure and IDE did not die. The usercontrol (UC) crashes occurring when subclassing parent by multiple UCs is now history too. See the top remarks in cSelfSubHookCallBk_Template for overview. The assembly code is provided in .ASM files and can be opened with notepad. 18Jul07: Minor tweak in subclass.asm to attempt crash on compiled app when END executed. 21Jul07: Believe hook thunks now 100% END safe, added CDECL class allowing one to call C++ APIs or ASM thunks. Workaround for making Hook thunks more END-safe is commented in remarks at top of Template class.

7_2009-2012 #227453
Adios LaVolpe

I know this is not truly a programming article. But I wanted to thank all of PSC for your continuous and generous feedback. Even negative feedback is positive when taken as an opportunity to improve weaknesses.

7_2009-2012 #227461
Scroll Example

This is an example of how to scroll a form vertically. It also resizes the controls and moves through the form if the focus is on an unseen control (textboxes in this example).

7_2009-2012 #227485
Easy, Safe Multithreading in Vb6 with Low Overhead - Part 2

Use the ThreadingAPI type library to safely CreateProcess in vb6. by Matthew Curland

7_2009-2012 #227486
Even Better Multithreading with Low Overhead

Theres a code on PSC that says the best stable multithreading in vb6 is done with activex. I say thats the worst advice I've ever heard. This is one of my solutions.

7_2009-2012 #227488
Manifest Creator - Have your programs use Themes under Windows XP

You can make your programs look like true Windows XP programs by adding files called "manifest" files to them. This program provides an easy way to make those files for all of your applications. It includes usage notes on limitations that the manifest files have on them. If you like the code, vote for me please!

Languages
Top Categories
Global Discovery