Source code from the second Hot Shareware CD (4 of 5)

Source code from the second Hot Shareware CD (4 of 5)

🌐 Leer en español

💿 Hot Shareware 02 · November 1995 · Pro: Lenguaje C · 20 ZIP

In 1995 you learned to program by reading other people’s code: C, assembly, Turbo Pascal, Delphi 1 and Clipper passed around BBSes, from Hot Shareware CD 02 (November 1995). For each ZIP we show Hobby Press’s description and the first lines of its main file.

All the sheets: 1 · 2 · 3 · 4 · 5

Pspnum

PSPNUM.ZIP → PSPNUM.TXT

Pspnum.VBX. Se trata de un tipo especial de caja de control para utilizar con números decimales o matrices decimales. Para Visual Basic.

Prospero Software Products Limited
41 Athol Street
Douglas
Isle of Man IM1 1LA
United Kingdom
CONTACT: Frank Vipond
PHN: +44 (0)1624-681090
FAX: +44 (0)1624-681097
EMAIL: CompuServe 100332,1257
About File PSPNUM.ZIP:
-----------------------
This ZIP file contains a full working demonstration of version
1.8 of the PSPNUM VBX (a Custom Control for use with Microsoft
Visual Basic V1.0 or later or with compatible environments).

Q-Assoc

QASSOC.ZIP → TEST.BAS

Q-Assoc. Libreria dinámica (DLL) para Visual Basic. Permite crear una tabla ‘hash’ asociativa para mapear una cadena Visual Basic a otra. Util para crear lenguajes de guiones, controlar alias, variables, etc. Incluye una aplicación de demostración.

Option Explicit
' // QASSOC.DLL - associate two strings
' //              simple hash table implementation for VB
' //              by Erik Aronesty, CSID:73502,1626
' //
' //              contact me for bugs, upgrades, requests, etc.
' map functions
Declare Function CreateMap Lib "qassoc.dll" (ByVal Size As Integer) As Long      ' returns hMap,
Declare Sub DeleteMap Lib "qassoc.dll" (ByVal hMap As Long)                      ' Deletes and i
Declare Function CountMap Lib "qassoc.dll" (ByVal hMap As Long) As Integer       ' Returns # of 
Declare Sub SetVerifyMap Lib "qassoc.dll" (ByVal Value As Integer)               ' TRUE  = slowe
Declare Sub ResizeMap Lib "qassoc.dll" (hMap As Long, ByVal Size As Integer)     ' Creates a new
' association
Declare Function GetAssoc$ Lib "qassoc.dll" (ByVal hMap As Long, ByVal Key$)         ' returns t

RECIO C Library

RECIO213.ZIP → SPEC.TXT

RECIO C Library v2.13. Consiste en una serie de más de cien funciones para facilitar la lectura y grabación de ficheros de texto, tratando cada línea como un registro, y cada registro como un conjunto de campos. Los campos pueden delimitarse por un carácter, como una coma, o por su posición en columnas. Freeware.

    Title: SPECIFICATION OF C LANGUAGE RECIO LIBRARY
Copyright: (C) 1994-1995, William Pierpoint
  Version: 2.13
     Date: September 4, 1995
1.0 RECORD INPUT/OUTPUT <recio.h>
1.1 Introduction
The header <recio.h> declares two types, several macros, and many functions
for performing line oriented input and output.
1.1.1 Record Streams
Input and output are mapped into logical data record streams.  A record
stream is an ordered sequence of characters composed into records, each
record consisting of zero or more characters plus a terminating record
delimiter character.  The terminating record delimiter for a file is the
newline character.

Red Button Example

REDBTN01.ZIP → RED1.PAS

Red Button Example. Ejemplo para Delphi que muestra como crear un programa que arranque en modo minimizado y ejecute una función cuando se haga un doble clic en el icono, en lugar de mostrar el formulario principal.

unit Red1;
interface
uses
  SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  Forms, Dialogs;
type
  TForm1 = class(TForm)
  private
    PROCEDURE WMQueryOpen(VAR Msg : TWMQueryOpen); message WM_QUERYOPEN;
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;
var

Scoper

SCB06.ZIP → README.TXT

Scoper. Analiza los módulos fuente de un proyecto Visual Basic v3 e identifica las variables, constantes, declaraciones de funciones y subrutinas que nunca se utilizan. Una buena ayuda para crear los programas ejecutables más pequeños y mucho más depurados.

SCOPER B.06
SCOPER analyzes VB3 project source modules and identifies
variables, constants, function - subroutine declarations and code
that are never used. All project source modules must be saved as
text.
Shareware users can use the SCOPER report to manually remove dead
code in their VB3 projects.
Registered users can have SCOPER automatically rewrite their code
(in a different directory) eliminating all unused elements. In a
few seconds, the registered version will create a new copy of your
project, including custom CONSTANT.TXT, WIN30API.TXT, VBSQL.BI,
etc. containing ONLY the elements your project needs.
Registered users can have SCOPER produce an optional cross
reference report, filtered by any desired combination of scope and

Selector Control

SELVB20.ZIP → SHAREWAR.TXT

Selector Control (VBX). Control de selección al estilo interruptor, para Visual Basic.

What Is Shareware?
Shareware distribution gives users a chance to try software before
buying it.  If you try a Shareware program and continue using it, you
are expected to register.  Individual programs differ in detail -- some
request registration while others require it, some specify a maximum
trial period.  With registration, you get anything from the simple right
to continue using the software to an updated program with printed manual.
Copyright laws apply to both Shareware and commercial software, and the
copyright holder retains all rights, with a few specific exceptions as
stated below.  Shareware authors are accomplished programmers, just like
commercial programmers, and the programs are of comparable quality.  (in
both cases there are good programs and bad ones!)  The main difference is
in the method of distribution.  The author specifically grants the right to
copy and distribute the software, either to all and sundry or to a specific

Slider Control

SLIVB20.ZIP → SHAREWAR.TXT

Slider Control (VBX). Control deslizante para Visual Basic. Puede utilizarse en barras de desplazamiento, instrumentos de medida o como sustituto de las barras de scroll.

What Is Shareware?
Shareware distribution gives users a chance to try software before
buying it.  If you try a Shareware program and continue using it, you
are expected to register.  Individual programs differ in detail -- some
request registration while others require it, some specify a maximum
trial period.  With registration, you get anything from the simple right
to continue using the software to an updated program with printed manual.
Copyright laws apply to both Shareware and commercial software, and the
copyright holder retains all rights, with a few specific exceptions as
stated below.  Shareware authors are accomplished programmers, just like
commercial programmers, and the programs are of comparable quality.  (in
both cases there are good programs and bad ones!)  The main difference is
in the method of distribution.  The author specifically grants the right to
copy and distribute the software, either to all and sundry or to a specific

Librería para Windows

SPLINE11.ZIP → MANUAL.TXT

Librería para Windows (DLL) que contiene funciones para crear curvas de interpolación. Puedes ser definidas en 2 o 3 dimensiones. Ayuda de demostración de las funciones. Escrita en Visual Basic, fuente incluido. Para ver la demo ejecutar Splinapp.exe, código fuente en incluido. Shareware.

SPLINES.DLL Copyright (c) 1993-95 by Andrew S. Dean - All rights reserved.
SPLINES.DLL is a Windows DLL distributed as shareware.  SPLINES.DLL
can be used from any Windows language or environment which supports
DLL calls.  See the file REGISTER.TXT for information on registration.
SPLINES.DLL is a function library for creating spline curves.
Several types of splines are supported (Bezier splines, B splines,
Beta splines and Tau splines).  Curves can be defined in 2D
or 3D.  All splines in the library are cubic splines.
Splines are defined by interpolating between a set of distinct
control points.  Both control points and the resulting curves are
stored in arrays of xyzTD structures.  To create a curve, an xyzTD
array of control points is passed to a spline function.  The
function returns another xyzTD array filled with the interpolated
points which define the curve.  Parameters can be used to control

Star Wars Ship Builder

SWSB.ZIP → SWSHIP.BAS

Star Wars Ship Builder v2.0. Simple juego, realizado en Basic, cuyo objetivo es definir la construcción de una nave espacial. No incluye ejecutable, tan solo el código fuente.

100 CLS
COLOR 15
101 WIDTH 40
900 PRINT "            *****************"
COLOR 7
102 PRINT "            *SW SHIP BUILDER*"
COLOR 8
103 PRINT "            *****************"
COLOR 15
PRINT
PRINT
PRINT
PRINT
PRINT

Time to Win Ligth

T2WLIGHT.ZIP → T2WLIGHT.BAS

Time to Win Ligth. Versión reducida de esta potente librería de funciones para Visual Basic y otros lenguajes en entorno Windows. Contiene 360 rutinas, entre ellas: funciones de fecha y hora, manipulación de bits, matrices, DOS, disco, ficheros, conversiones IEEE, test del tipo IsX, cadenas, etc.

Option Explicit
' definition for win.ini section
Global Const GET_TIME_SEPARATOR = 1
Global Const GET_DATE_SEPARATOR = 2
Global Const GET_TIME_FORMAT = 3
Global Const GET_DATE_FORMAT = 4
Global Const GET_CURRENCY = 5
Global Const GET_LANGUAGE = 6
Global Const GET_COUNTRY = 7
Global Const GET_COUNTRY_CODE = 8
Global Const GET_LIST_SEPARATOR = 9
Global Const GET_DEFAULT_PRINTER = 10
' definition for drive type
Global Const DRIVE_UNKNOW = 0

ThunderBolt para Visual Basic

TBOLT.ZIP → TBOLT.TXT

ThunderBolt para Visual Basic v1.11 es un programa que se adjunta a Visual Basic, y provee al programador de más de 40 utilidades.

Now Windows 95 compatible!
ThunderBolt for Visual Basic (v1.11) attaches itself to VB and enhances it with more than 40 too
ThunderBolt Features:  Many control alignment tools, freezing of control and form positions, boo
Available in SWREG as #5298.

TBOLT112

TBOLT112.ZIP

ThunderBolt para Visual Basic es un programa que se adjunta a Visual Basic, y provee al programador de más de 40 utilidades. Este paquete actualiza cualquier versión posterior a la 1.0 a la versión 1.12.

The Printer

THEPRN26.ZIP → CATALOG.DOC

The Printer v2.6. Base de datos extremadamente útil para programadores. Contiene los códigos de impresión de cientos de impresoras. Ayuda a eliminar la pesadilla que supone para muchos programadores el hecho de encontrar la forma de formatear texto en docenas o cientos de impresoras de los usuarios, para imprimir en negrita, en cursiva, etc. Los códigos de impresión siempre son necesarios, en cualquier programa que tenga que utilizar una impresora para sus informes.

                           Programs by Pro~Formance
       This describes many of our programs.  There's something here for
       EVERYONE.  So please glance at each description.  A price list
       and an order form are on the last 2 pages.  For more informa-
       tion on these or our other programs, or to order:
          Call:   Rob Smetana    (415) 863-0530  (9-5 Pacific time)
         Write:   Pro~Formance   132 Alpine Terrace
                                 San Francisco, CA  94117
                                 USA
       ==============================================================
       PDT                                 The Pro~Formance Data Tool
       ==============================================================
       Very simply, PDT is the finest file editor available!  If you
       ever need to edit dBase, other database files, binary or EBCDIC

Time to Win

TIME2WIN.ZIP → TIME2WIN.BAS

Time to Win. Librería para Visual Basic v3.0 con 640 rutinas de todo tipo. En este archivo sólo se incluye esta librería, mientras que en otro paquete se pueden encontrar las versiones Light, así como controles de errores y depuradores para Visual Basic.

Option Explicit
' definition for win.ini section
Global Const GET_TIME_SEPARATOR = 1
Global Const GET_DATE_SEPARATOR = 2
Global Const GET_TIME_FORMAT = 3
Global Const GET_DATE_FORMAT = 4
Global Const GET_CURRENCY = 5
Global Const GET_LANGUAGE = 6
Global Const GET_COUNTRY = 7
Global Const GET_COUNTRY_CODE = 8
Global Const GET_LIST_SEPARATOR = 9
Global Const GET_DEFAULT_PRINTER = 10
' definition for drive type
Global Const DRIVE_UNKNOW = 0

Tip of the Day

TIPDAY.ZIP → TIPOFDAY.TXT

Tip of the Day v2.0. ¿Quieres tener una pantallita con la ayuda del día, al estilo de Windows 95 o PowerPoint en tus propias aplicaciones? Tip Of the Day es un anexo para Visual Basic que te permitirá hacer eso, precisamente.

Tip Of The Day 2.0
Tip of The Day is a "plug-in" form and code module for Visual Basic for
Windows that reproduces the Tip Of The Day screen that is used by that other
large software manufacturer?!?!?  It allows you to have tips for your
application just as Windows 95, Word, PowerPoint, and various other
applications do.  It is 100% source code and does not require any .VBX's!
Simply add the files to your project and...PRESTO...your application now
has a Tip Of The Day!  Included is TipEdit, a tip editor that allows you to
create and add tips to your application simplifying the creation of your .TOD
file.  Cut your overhead and use PURE CODE!
The following files should be in your directory:
        TIPOFDAY.TXT    This file that your are reading...I hope!
        TIPOFDAY.EXE    The TipOfTheDay Demonstration Executable
        TIPEDIT.EXE     The TipOfTheDay Tip Editor Executable

TurboPack

TPPDEMO.ZIP

TurboPack. Conjunto de controles para Visual Basic, Delphi, Power Builder y similares. Incluye Hotmap v2.0: definición de regiones regulares o irregulares; TiTleSpy v5.0: mejora el control sobre las barras de título; MCursor v2.0: cursores del ratón con posibilidad de imágenes y definición del punto activo; PopHelp v2.0: ventanas emergentes de ayuda, como en Excel, etc.; ScrollDial v1.0: navegación rápida en extensas listas de elementos; InputSpy v1.0: control sobre cualquier evento de teclado o ratón.

VB/Error-Handler

VBERRHND.ZIP → VBERRHND.BAS

VB/Error-Handler. Control de errores automático para aplicaciones Visual Basic. Sólo contiene este control, mientras que en otros paquetes puedes encontrar el conjunto completo: Time to Win, VB/Error y VB/Profiler.

Option Explicit
Global Const VB_LNG_FRENCH = 1
Global Const VB_LNG_DUTCH = 2
Global Const VB_LNG_GERMAN = 3
Global Const VB_LNG_ENGLISH = 4
Global Const VB_LNG_ITALIAN = 5
Global Const VB_LNG_SPANISH = 6
Global Const VB_LNG_CATALAN = 7
Global Const VB_LNG_POLISH = 8
Const MB_MESSAGE_LEFT = 0
Declare Sub cPushID Lib "vbhnderr.dll" (IDArray As Integer, ByVal nID As Integer)
Declare Sub cPopID Lib "vbhnderr.dll" (IDArray As Integer, ByVal nID As Integer)
Declare Sub cPopLastID Lib "vbhnderr.dll" (IDArray As Integer)
Declare Function cGetID Lib "vbhnderr.dll" (IDArray As Integer, ByVal nPosition As Integer) As I

Vb HelpWriter

VBHW.ZIP → VBHW.TXT

Vb HelpWriter v2.0, soporta Visual Basic 4.0 y Windows 95. Simplemente apunte sobre su proyecto y teclee. Su código será actualizado y generará automáticamente un fichero de ayuda. ¡Lo único que queda por hacer es introducir el texto! Esta versión gratuíta genera hasta 30 tópicos.

**NOW SUPPORTS VB 4.0/Win '95!** Version 2.0i of VB HelpWriter, the award winning help authoring

GreenTree Technologies

VBMSG20.ZIP → VBMSG20.TXT

GreenTree Technologies, Inc., los nuevos propietarios de Vb Messenger anuncian la versión 2.0 de este producto, que incorpora nuevos controles y una API más completa.

GreenTree Technologies, Inc., the new owners of VB Messenger(tm), is announcing VB Messenger 2.0

Demostración de cómo llamar a la API Novell de NWCALLS

VBNW.ZIP → VBNW.BAS

Demostración de cómo llamar a la API Novell de NWCALLS.DLL (no incluida) desde Visual Basic.

Option Explicit
'  VB Declarations for a few of the Netware API NWCALLS.DLL functions.
'  Declarations and VB sample code written by Steve Jackson
'  Compuserve 72040,1640 (personal account, email checked frequently)
'  Compuserve 71003,1250 (work account, may be unreliable if coworkers
'                         do not pass along messages to me)
'  Feedback is welcome!  Please send comments to me on CompuServe!
'  Job offers welcome on my personal account (grin).
'  NWCALLS.DLL is not written by me, and is not included in this demo.
'  It is published by (and copyrighted by) Novell.
'  You may be able to get NWCALLS.DLL from your network adminstrator,
'  or you can download it from NOVFILES as part of the Novell Win Client,
'  or you order the entire Software Developers Kit from Novell.  The SDK
'  is documented for the C programmer, and contains many many more calls,

The programs belong to their authors: we only review them here. If you have the CD, the file is at the path shown; the CRC32 lets you check your copy is intact.

💿 The whole CD 02

Did you have this CD or the magazine? Tell us in the Telegram group: Telegram group

Enjoyed it? Follow us on social media

We post new things every week: don't miss them.

YouTubeFacebookXInstagramTelegram