Código fuente del segundo CD de Hot Shareware (3 de 5)

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

🌐 Read this in English

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

En 1995 se aprendía a programar leyendo el código de otros: C, ensamblador, Turbo Pascal, Delphi 1 y Clipper que circulaban por las BBS, del CD 02 de Hot Shareware (noviembre de 1995). De cada ZIP mostramos la ficha de Hobby Press y las primeras líneas de su archivo principal.

Todas las hojas: 1 · 2 · 3 · 4 · 5

GLCB

GLCB.ZIP → ATARI.C

GLCB. Librería gráfica para lenguaje C. Expresamente pensada para principiantes. Es una librería C estándar, muy fácil de utilizar, que incorpora funciones para el correcto manejo de: gráficos, sprites, eventos de ratón, eventos de teclado, acceso a ficheros, uso del reloj en tiempo real, animaciones con doble búffer, sonido digitalizado (sin detener la ejecución), gestión de memoria, función aleatoria, etc.

/*
atari.c (module de base pour atari:st,ste,tt,falcon) (basse resolution)
Description des instructions de ce module dans doc.txt
Guillaume LAMONOCA
Supelec (94)
Utiliser Laser C 1.0
Compiler exemple.c et atari.c avec COMPILE dans menu EXECUTE.
Clicker LINK dans ce meme menu. Rajouter atari.o et exemple.o
dans la liste ou figure deja init.o. Donner le nom exemple.prg a
l'executable. Clicker sur DO IT. Vous pouvez le lancer avec RUN.
Laser C n'accepte pas les prototypes (K&R 1ere edition).
Mais il est rapide, peu volumineux et accepte l'assembleur.
Le shell du laser C 1.0 marche mal avec les derniers atari.
(l'execution des programmes sous shell entrainent de nombreuses

Grid Demo

GRIDDEMO.ZIP → GRIDMAIN.PAS

Grid Demo. Contiene un proyecto Delphi y documentación que explica como situar prácticamente cualquier componente en una rejilla.

unit Gridmain;
interface
uses
  SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  Forms, Dialogs, StdCtrls, Dblup2, DB, DBTables, DBLookup, Mask, DBCtrls,
  ExtCtrls, Grids, DBGrids, Buttons, DBQCombo, Calendar;
type
  TForm1 = class(TForm)
    TableGridData: TTable;
    DataSourceGridData: TDataSource;
    TableCust: TTable;
    DataSourceCust: TDataSource;
    DBNavigator1: TDBNavigator;
    DBGrid1: TDBGrid;

HOTKEY

HOTKEY.ZIP → KEYCODES.BAS

HotKey es un Control de Visual Basic para el uso en aplicaciones emergentes. Permite definir cualquier tecla del teclado, incluyendo las del teclado numérico, combinaciones Alt, etc.

'********************************************************
'
'                         HOTKEY.VBX
'
' Virtual Key Codes for Setting the HotKeyCode Property
'
'
'********************************************************
'For use with HotKeyAlt property
Global Const HOTKEY_NO_ALT = 0
Global Const HOTKEY_USE_ALT = 1
'Set HotKeyCode to this value to disable hot key
Global Const HOTKEY_OFF = 0
' Virtual Keys, Standard Set

Demostración de una librería para Visual Basic

INCODEMO.ZIP → INCODEMO.TXT

Demostración de una librería para Visual Basic 3.0. Incluye un tutorial de 3 minutos y un proyecto de ejemplo. esta versión demo sólo permite la conversión de un control. De TreeHouse Projects.

This file is a self-extracting executable. Put it in a separate subdirectory on your hard drive 
I recommend you look at the "3 minute tutorial" topic in the help file and convert CALC.MAK. Thi
Thanks for your interest. TreeHouse Projects

INetMail

INETMAIL.ZIP → INSTALL.TXT

INetMail. Componente para Delphi que permite enviar correo a través de Internet.

            INSTALLATION INFORMATION
 1. Create a directory for the component.
 2. Unzip the contents of the zip file to this directory.
    Move the .hlp and .kwf files to the \delphi\bin directory.
 3. Start up Borland Delphi.
 4. Select Options|Install Components.
 5. Install the component, using the .dcu file.
 6. Exit Delphi. (Do not save any changes to project, if asked).
 7. Run the 'helpinst' program found in '.....\delphi\help'
 8. Open File '......\delphi\bin\delphi.hdx'
 9. Add the new keyword file (.kwf extension) found in the \delphi\bin directory
10. Select File|Save, then Exit
11. The component will be installed in the Internet tab and the
    help file should be active

TInstall Component

INSTALL2.ZIP

TInstall Component. Módulo para Delphi que permite realizar servicios de instalación para aplicaciones escritas en este lenguaje. Puede copiar ficheros, añadir alias al BDE, grupos de ventanas y elementos de programas.

Demo tipo “plasma”

JCLPLASM.ZIP → JCLPLASM.ASM

Demo tipo “plasma”, con código fuente. Un poco antigua, pero didáctica.

; **************************************************************************
; **************************************************************************
; ****                                                                  ****
; ****  JCL-Plasma v1.3a (C) 1994 JCL-software                          ****
; ****                                                                  ****
; ****  This .asm file contains a routine to display a 'plasma' type    ****
; ****  image.  It requires at least a 386, and 486/33 is recommended.  ****
; ****  Also required is a file PLASMA.DAT, which contains image,       ****
; ****  'movement', and colour palette information pregenerated for     ****
; ****  speed by the file PLGENPLM.C                                    ****
; ****                                                                  ****
; ****  This file was compiled using TASM 2.5, and very experienced     ****
; ****  programmers might want to have a quiet laugh about how badly    ****
; ****  this is coded... however, this is BY FAR the fastest plasma     ****

LENSSRC

LENSSRC.ZIP → LENS.INC

Ejemplo de cómo conseguir un efecto de lente o lupa sobre una imagen. Contiene código fuente, ejecutable y explicación técnica ilustrada.

;Generated with a magnification factor of 10
LensDiameter = 50
Lens    DW    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 
    DW    50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71
    DW    100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 1
    DW    150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 1
    DW    200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 3
    DW    250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 366, 418, 5
    DW    300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 414, 466, 517, 569, 5
    DW    350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 463, 566, 567, 618, 669, 6
    DW    400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 511, 563, 615, 666, 718, 718, 719, 7
    DW    450, 451, 452, 453, 454, 455, 456, 457, 458, 510, 613, 664, 716, 717, 768, 769, 820, 8
    DW    500, 501, 502, 503, 504, 505, 506, 507, 560, 662, 663, 715, 766, 818, 819, 819, 870, 8
    DW    550, 551, 552, 553, 554, 555, 556, 557, 661, 713, 764, 816, 817, 868, 869, 869, 920, 9

Magma Tab DLL

MAGMATAB.ZIP → GENERIC.C

Magma Tab DLL. Librería dinámica para Windows 95 compatible con los controles de etiquetas y hojas de propiedades del entorno de 16-bit de Windows v3.x.

// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Copyright ⌐ 1993, 1994  Microsoft Corporation.  All Rights Reserved.
//
//   PROGRAM:   Generic.c
//
//   PURPOSE:   Generic template for Windows applications
//
//
//   PLATFORMS: Chicago,NT
//
//   FUNCTIONS:

Maverick Class Library

MAVCL100.ZIP → MAVPRINT.CPP

Maverick Class Library (MAVCL) v1.00. Libreria para IBM C++ con un conjunto de clases para aplicaciones generales y empresariales. Construida sobre las clases de CSET++ ICLUI. Incluye código fuente y DLL.

/*  File: MAVPRINT.CPP      Updated: Tue Aug 15 15:54:33 1995
Copyright (c) Fabrizio Aversa
===========================================================*/
#define INCL_DEV
#define INCL_PM
#define INCL_SPLDOSPRINT
#include <os2.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <IString.hpp>
#include <iframe.hpp>
#include "mavprint.hpp"
MavPrint::MavPrint()

MBPURGE

MBPRG100.ZIP → MAX_U.H

MBPURGE(P) v1.00. Utilidad que elimina los usuarios que no han sido encontrados en la base de usuarios de Maximus BBS dentro del fichero MEXBANK.DAT generado por MexBank. Incluye código fuente completo, en C.

/*# name=Maximus USER.BBS structure definition
*/
#ifndef __MAX_U_H_DEFINED
#define __MAX_U_H_DEFINED
#include "typedefs.h"
#include "stamp.h"
#define MAX_ALEN         64     /* Max length of usr.msg[] and usr.files[]  */
/* Masks for usr.bits1, below */
#define BITS_HOTKEYS     0x0001 /* Hotkeys, independent of HOTFLASH level   */
#define BITS_NOTAVAIL    0x0002 /* If set, user is NOT normally available   *
                                 * for chat.                                */
#define BITS_FSR         0x0004 /* Full-screen reading in msg areas         */
#define BITS_NERD        0x0008 /* Yelling makes no noise on sysop console  */
#define BITS_NOULIST     0x0010 /* Don't display name in userlist           */

Este archivo contiene tres productos distintos

MCBUNDLE.ZIP → PRODUCT.LST

Este archivo contiene tres productos distintos, a cual más interesante, para programadores bajo Windows, y en especial para Visual Basic: Time to Win, con 640 rutinas, entre ellas: soporte para 2D y 3D, matrices de gran tamaño, números extensos, funciones DOS, fecha, disco, ficheros, entrada/salida a C, ratios financieros, multilenguaje, temporizadores, serialización, etc. VB/Error Handler: control de errores automatizado para las aplicaciones Visual Basic. VB/Tracer-Profiler: calcula los tiempos de ejecución de cada rutina, para facilitar la optimización de las mismas.

******************************************************************************************
* PRODUCT.LST                                                                            *
******************************************************************************************
All products receive ONE YEAR FULL SUPPORT
1. 'TIME TO WIN'                                                 : SWREG #4045 : $61.00
2. 'TIME TO WIN Light'                                           : SWREG #5808 : $25.00
3. 'VB/Error Handler'                                            : SWREG #4380 : $30.00
4. 'VB/Tracer-Profiler'                                          : SWREG #5294 : $34.00
5. 'Bundle of TIME TO WIN, VB/Error Handler, VB/Tracer-Profiler' : SWREG #5499 : $99.00
1. 'TIME TO WIN' : SWREG #4045
------------------------------
'TIME TO WIN' is a Dynamic Link Library for Visual Basic« 3.0
'TIME TO WIN' contains more over 640 routines featuring :
    ò 2-D routines

Turbo C/C++ Memory Manager

MEMMAN2B.ZIP → READ.ME

Turbo C/C++ Memory Manager v2b. Copia de evaluación de un gestor de memoria que permite acceder a todos los recursos disponibles en memoria, etc.

-------------------------------------------------------------------------------
Turbo C/C++ Memory Manager    Version 2b - 19-8-94   (c) R.J.Taylor August 1994
-------------------------------------------------------------------------------
                    Thanks for aquiring this package
For the record, you are now in possession of the shareware evaluation copy of
a memory manager that will give you access to all the available memory
resources of your computer (...and more!)
The memory manager is written in C, and accessed from a 'C' program through
"memory.h", and there is also a "wrapper" module, "BigArray.cpp" which provides
the benefit of C++ operator overloading to accessing the memory.
The library implements a handle based memory allocation procedure that will
allocate buffers of up to 4GB from conventional, expanded, extended (XMS)
or virtual memory.
You don't have to mess around with the details of allocating this memory, just

MID-KIT

MK1_23.ZIP → WATCOM.DOC

MID-KIT v1.23. Motor de sonido para Watcom. MID-KIT es un potente motor MIDI, con 32 canales para efectos de sonido digital. Funciona con C o C++. Shareware, $50.

                   The WATCOM C/C++ Game Programmer's FAQ
||        ||   ||   |||||||| ||||    ||||      ||  ||    cccc  /
||        ||  ||||     ||   ||  ||  ||  ||    ||||||||  cc    /
||        || ||  ||    ||  ||      ||    ||  || |||| ||  cccc/
||        || ||  ||    ||  ||      ||    ||  ||  ||  ||     /
 ||  ||  || ||    ||   ||  ||      ||    || ||   ||   ||   /
 || |||| || ||||||||   ||  ||      ||    || ||   ||   ||  /  cccc   +   +
  |||||||| ||      ||  ||   ||  ||  ||  ||  ||   ||   ||    cc     +++ +++
   ||  ||  ||      ||  ||    ||||    ||||   ||   ||   ||     cccc   +   +
                             Game Programmer's
   ***********************   *******               **************
   ***********************  *********            *******    *******
   ********                ***********         *******         *******
   ********               *************        *******         *******

Mmbutton

MMBUTTON.ZIP

Mmbutton.VBX. Versión mejorada del control de botones estándar de Visual basic. Puede utilizarse para crear botones con relieves (deprimidos o alzados), sombras en los textos y otros efectos 3D. Se incluye un programa de demostración.

MaxTop

MTOP_101.ZIP → MAXTOP.C

MaxTop v1.01. Esta utilidad lee el fichero de usuarios USER.BBS de Maximus v3.00 y genera un fichero con el listado de los mejores usuarios (según envios, recepciones y llamadas). Incluye código fuente en C. Funciona en DOS y OS/2.

#define RDS_TITLE     "MAXTOP"                  /*  Program Name      */
#ifdef __OS2__
  #undef  RDS_TITLE
  #define RDS_TITLE   "MAXTOPP"                 /*  Program Name      */
#endif
#define RDS_DATES     "1995"                    /*  Copyright Date    */
#define RDS_VERSION   "1.01"                    /*  Version Number    */
#define NUM_TO_LIST   10                        /*  List Top n Users  */
/*
                              MAXTOP / MAXTOPP
                                Version 1.00
             Copyright (c) Bob Swift, 1995.  All Rights Reserved.
   This program is used to read the Max 3.00 USER.BBS file and generate a
   file listing the top users (upload, download, calls) for the BBS.  The

NodeFinder Data File 6/25/95

NFDATA.ZIP → README.DOC

NodeFinder Data File 6/25/95. Base de datos en formato dBase (DBF) para NodeFinder v1.0, conteniendo cada uno de los identificativos de nodo conocidos para CompuServe.

                   NODE FINDER DATA - JUNE 25TH 1995
                   =================================
NODEFIND.DBF is a DBF data file for NodeFinder 1.0. If you do not have
NodeFinder you may download a copy from the same location where this data
file was downloaded.
CompuServe nodes are added regularly (there are now over 5000 of them),
and the data file in NodeFinder must be updated if you want a complete
node list. This is an updated data file, containing every known
CompuServe node ID as of June 25th 1995. This file is updated regularly.
To use, replace your existing NODEFIND.DBF file with this new one. Then
run NODEFIND /R to rebuild your NodeFinder index file. You MUST perform
this step.
That's all there is to it. Enjoy.
NodeFinder is (C) EmTek Systems

Object Library

OBJLIB.ZIP → VBOOP2.TXT

Object Library. Base de datos para código que permite almacenar y reutilizar objetos implementados en código nativo Visual Basic.

#: 26702 S2/Beginner's Corner
    21-Feb-95  14:50:28                              Thread=J20
Sb: #26247-OO vb
Fm: Kathleen Joeris 75330,156
To: Pete Washburn 73750,3141
Pete,
Sorry I did not reply sooner; I was busy over the weekend.
(For anyone who wants to look at Pete's article: it is in the Beginner's
Corner (sect 2) as VBOOP.ZIP.)
Pete: I do not understand one aspect of what you are doing.  This has to do
with creating a new object of an inherited class.
First question is what hOBJ is passed when the NEW_OBJECT is called?
Second question, when does the pipeInstance and WaterpartInstance arrays get
redimensioned?

Dragover

OUTLDRP.ZIP

Dragover.BAS. Código fuente en Visual Basic v3 que muestra como arrastrar y soltar elementos (incluyendo elementos hijos) dentro de una caja de esquema (outline box).

ProjectSnap for Visual Basic

PSNP10.ZIP → VENDOR.DOC

ProjectSnap for Visual Basic v1.00, Caledonia Systems. Carga, compila y ejecuta proyectos en un solo paso. Permite elegir un proyecto a partir de la lista completa disponible en el ordenador. Ahorra tiempo y evita la navegación por los directorios. De los mismos autores de ToolThings. Requiere VBRUN300.DLL. Shareware, $25.

ProjectSnap for Visual Basic
Version 1.00
V E N D O R    I N F O R M A T I O N
Updated:  July 1995
This file provides information for Shareware Distributors, Disk Vendors and
Computer Clubs who wish to distribute the ProjectSnap for Visual Basic 1.00
package.
BBS SYSOPs:  Please refer to the SYSOP.DOC text file for information.
Individual and Company Users:  Please refer to LICENSE.DOC and REGISTER.DOC
for information.
For sample descriptions which you may use to describe the product please
refer to the DESCRIBE.DOC text file.
---------------------------------------------------------------------------
                         Distribution Requirements

Los programas son de sus autores: aquí solo los reseñamos. Si tienes el CD, el archivo está en la ruta indicada; el CRC32 sirve para comprobar que tu copia está entera.

💿 Todo el CD 02

¿Tenías este CD o la revista? Cuéntanos en el grupo de Telegram: Grupo de Telegram

¿Te gustó? Síguenos en las redes

Cada semana publicamos cosas nuevas: no te las pierdas.

YouTubeFacebookXInstagramTelegram