First commit 20/03/1997
This commit is contained in:
30
DATOS/EMP00001/VISUAL.CPP
Normal file
30
DATOS/EMP00001/VISUAL.CPP
Normal file
@ -0,0 +1,30 @@
|
||||
#include <conio.h>
|
||||
|
||||
#include "d:\program\src_dos\libs\bdatos\bdatos.hh"
|
||||
#include "d:\program\src_dos\tpv\tpv_def.h"
|
||||
|
||||
|
||||
BDatos BReg;
|
||||
VENTAS SReg;
|
||||
|
||||
|
||||
void main ( void )
|
||||
{
|
||||
long i;
|
||||
|
||||
if ( BReg.AbrirReg( "ventas.tmp", sizeof( VENTAS ) ) == ERROR )
|
||||
{
|
||||
cprintf( "Error leyendo VENTAS.TMP\r\n" );
|
||||
return;
|
||||
}
|
||||
|
||||
for ( i = 0; i < BReg.Registros(); i++ )
|
||||
{
|
||||
BReg.LeeReg( (void *)&SReg, i );
|
||||
cprintf( "Reg %02d: %09lu %06u %06lu %06lu\r\n", i, SReg.CodigoR, SReg.Cantidad, SReg.PrecioC, SReg.PrecioV );
|
||||
}
|
||||
|
||||
BReg.CerrarReg();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user