Scream Through Searches With Byte Arrays
This subroutine shows how byte arrays can speed a search though a file.The routine is called with the file name, a string to look for, a flagthat tells it to
This subroutine shows how byte arrays can speed a search though a file.The routine is called with the file name, a string to look for, a flagthat tells it to
Running applications written in VB3 in the WIN95 OS is not always aclean conversion. This code would work fine in Windows for Workgroups 3.11,but would GPF in WIN95. SS3D2.VBX, which
When loading a form, reduce the “flicker” and “flash” of the GUI by using these Windows API functions: ‘Declarations Section#If Win32 Then Declare Function LockWindowUpdate _ Lib “user32” _ (ByVal
To have a program programmatically close another program, use this code: ‘ Close an existing program Title = “VBApp” ihWnd = FindWindow(0&, Title) ihTask = GetWindowTask(ihWnd) iRet = PostAppMessage(ihTask, WM_QUIT,
Optional parameters are a great new feature in VB4, but the ParamArraykeyword is an overlooked addition to function and subroutine declarations.The ParamArray keyword allows an unspecified number of Variantparameters to
When a control is deleted from a form, any code behind that controlis not deleted. It still exists in the code in the General area. Such strandedcode might not be
The DegreesToXYsubroutine, part of CodeBank’s standard procedurelibrary, calculates the X (horizontal) and Y (vertical) coordinatesof any point, measured in degrees, on the circumference of a circleor ellipse. As you can
Designing monitor resolution-independent applications is a frequentproblem Visual Basic programmers face. The simplest solution isto design forms at the 640 by 480 resolution found in most lap-topcomputers. Such a form
When you’re finished tinkering with your apps, close and restart VBbefore making the final EXE. This simple action can reduce the size ofyour EXE by 10 to 30 percent (many