imprimir en una pidion BIP-1300

imprimir en una pidion BIP-1300

Postby wilsongamboa » Tue Jun 16, 2009 2:55 am

Buenas noches
Esta maquina tipo handheld tiene una impresora termal integrada, la empresa que nos vendio este equipo asegura que se debe imprimir en el puerto com1: yo he intentado con este codigo bajado del foro no me da error pero no imprime nada

Code: Select all  Expand view

method Print() Class tWg_Print

    Local i
    Local err
    Local aTmp

    ::cPort := 'com1:'
            ::Fp := CreateFile( ::cPort, GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
            SetComm(::Fp, 9600, .F., 8, 1) // Configura el puerto
            err := GetLastError()
            IF err = -1
                MsgInfo(err,"Error!")
                CloseHandle( ::Fp )
                ::Fp := Nil
                Return Nil
            ENDIF
            for i = 1 to Len( ::cText )
                WriteByte( ::Fp, Asc( SubStr( ::cText, i, 1 ) ) )
                sysrefresh()
            next
            CloseHandle( ::Fp )
    end


Return Nil

 


tambien he intentado con este codigo sin resultado

Code: Select all  Expand view

    ::cFile := 'com1:'
        ::Fp := fcreate( ::cFile )
        aTmp := ListAsArray( ::cText ,CRLF)
        for i = 1 to Len( aTmp )
            fwrite( ::Fp, aTmp[ i ] + CRLF )
        next
        fClose( ::Fp )

 


si alguien pudiera darme una mano, el sistema que hice para este aparato funciona muy bien solo me falta la impresion, mi version de fwppc es de

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Pocket PC - April 2007 Harbour development power│
│ (c) FiveTech, 1993-2007 for Microsoft Windows Pocket PC │
└────────────────────────────────────────────────────────────────────────────┘
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'Jose_Pok.prg' and generating preprocessed output to 'Jose_Pok.ppo'.

Jose_Pok.prg(5575) Warning W0027 Meaningless use of expression: 'Logical'
Jose_Pok.prg(5575) Warning W0027 Meaningless use of expression: 'Logical'
Lines 13431, Functions/Procedures 161
Generating C source output to 'Jose_Pok.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

gracias x su ayuda

saludos

Att
Wilson 'W' Gamboa A
swrite@uio.satnet.net
pd: no tenemos ningun manual y en la web tampoco encontre nada que nos ayude
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby Antonio Linares » Tue Jun 16, 2009 6:22 am

Wilson,

Comprueba el valor que tiene ::Fp

MsgInfo( ::Fp )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41206
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: imprimir en una pidion BIP-1300

Postby pymsoft » Tue Jun 16, 2009 11:54 am

Wilson, creo que no es tan sencillo como enviar a imprimir a la puerta com...

seguramente con ese terminal te vino un cd con una lib para que puedas incluir en tu programa. Ademas, deberas hacerte las funciones en C para poder usarlas desde tu programa.

Yo lo hice para un jupiter pidion, no se si sera parecido, pero por el nombre creo que si.


Code: Select all  Expand view

    #pragma BEGINDUMP
   
    #include "hbapi.h"
    #include "windows.h"
    #include "C:\LAVWIN\TEVE\JUPITER\bbappapi.h"
    #include "C:\LAVWIN\TEVE\JUPITER\bberror.h"

    static HBBPRINTER hPrinter;
 
    HB_FUNC( PRT_OPEN )
    {
 
        hPrinter = BBPrinterOpen( 0 );
 
        if ( !hPrinter )
        {
            return;
        }

    }

    HB_FUNC( PRT_CLOSE )
    {

      DWORD dwRet = BBPrinterWaitUntilPrintEnd( hPrinter );  
        BBPrinterClose( hPrinter );

    }

    HB_FUNC( PRT_INIT )
    {

        BBPrinterSetLineSpacing( hPrinter, 8 );                     // Set line spacing 1/18 inch.
        BBPrinterSetDensity( hPrinter, BB_PRINT_DENSITY_100PERCENT );   // Set density 100%  
        BBPrinterInit( hPrinter );

    }
 
    HB_FUNC( PRT_PRINTBITMAP )
    {
        BBPrinterPrintBitmap( hPrinter, (LPCTSTR) hb_parc(1), BB_PRINT_BITMAP_NORMAL );
    }

    HB_FUNC( PRT_PRINTTEXT )
    {
        BBPrinterPrint( hPrinter, (LPCTSTR)hb_parc(1), (DWORD)hb_parnl(2) );
    }

    HB_FUNC( PRT_PROVASTAMPA )
    {
        HBBPRINTER hPrinter = BBPrinterOpen( 0 );
 
        if ( !hPrinter )
        {
            return;
        }

        BBPrinterSetLineSpacing( hPrinter, 8 );                     // Set line spacing 1/18 inch.
        BBPrinterSetDensity( hPrinter, BB_PRINT_DENSITY_100PERCENT );   // Set density 100%  
        BBPrinterInit( hPrinter );
        BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
        BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
        BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
        BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
        BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      DWORD dwRet = BBPrinterWaitUntilPrintEnd( hPrinter );  
        BBPrinterClose( hPrinter );

    }

//LPCTSTR

    //BBPrinterPrint( hPrinter, _T("LineSpacing 1/6, Density 60% \n"), BB_PRINT_DEFAULT );
      //BBPrinterInit( hPrinter );
    //BBPrinterWaitUntilPrintEnd( hPrinter );
    //BBPrinterClose( hPrinter );    
   
    #pragma ENDDUMP
 
    ********
    FUNCTION Prt_LineFeedByLine( nRighe )
    ********
    LOCAL i
      DEFAULT nRighe := 1
      FOR i := 1 TO nRighe
        Prt_PrintText( AnsiToWide( CRLF ), BB_PRINT_DEFAULT )
      NEXT
    RETURN NIL

FUNCTION ProvaStampaPidion()
LOCAL i


  //Prt_ProvaStampa()

  Prt_Open()
  Prt_Init()
  Prt_PrintText( AnsiToWide( "Prova Riga 1"  + CRLF ), BB_PRINT_DEFAULT )
  Prt_PrintText( AnsiToWide( "Prova Riga 2"  + CRLF ), BB_PRINT_CENTERALIGN )
  Prt_PrintText( AnsiToWide( "Prova Riga 3"  + CRLF ), BB_PRINT_RIGHTALIGN )
  Prt_PrintText( AnsiToWide( "Prova Riga 4"  + CRLF ), BB_PRINT_DOUBLEWIDTH )
  Prt_PrintText( AnsiToWide( "Prova Riga 5"  + CRLF ), BB_PRINT_DOUBLEHEIGHT )
  Prt_PrintText( AnsiToWide( "Prova Riga 6"  + CRLF ), BB_PRINT_DOUBLESIZE )
  Prt_PrintText( AnsiToWide( "Prova Riga 7"  + CRLF ), BB_PRINT_UNDERLINE )
  Prt_PrintText( AnsiToWide( "Prova Riga 8"  + CRLF ), BB_PRINT_CENTERALIGN + BB_PRINT_UNDERLINE )

/*
#define BB_PRINT_EMPHASIZE          1
#define BB_PRINT_CENTERALIGN        2
#define BB_PRINT_RIGHTALIGN         4
#define BB_PRINT_DOUBLEWIDTH        8
#define BB_PRINT_DOUBLEHEIGHT       16
#define BB_PRINT_DOUBLESIZE         24
#define BB_PRINT_UNDERLINE          32
*/


  FOR i := 1 TO 4
    Prt_PrintText( AnsiToWide( CRLF ), BB_PRINT_DEFAULT )
  NEXT
  //Sleep(100)
  Prt_Close()

  msginfo("Chiusa")

RETURN NIL


 


tienes que linkear ademas la libreria del pidion

Code: Select all  Expand view

echo bbappapi.lib >> msvc.tmp
echo bbsysapi.lib >> msvc.tmp
 



y compilar en este modo porque sino no anda

%vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:THUMB

poner esto ademas al inicio de tu programa:

Code: Select all  Expand view

#define BB_PRINTER_SEORO            0
#define BB_PRINTER_SEIKO            1
#define BB_PRINTER_NONE             2

#define BB_PRINT_DEFAULT            0
#define BB_PRINT_EMPHASIZE          1
#define BB_PRINT_CENTERALIGN        2
#define BB_PRINT_RIGHTALIGN         4
#define BB_PRINT_DOUBLEWIDTH        8
#define BB_PRINT_DOUBLEHEIGHT       16
#define BB_PRINT_DOUBLESIZE         24
#define BB_PRINT_UNDERLINE          32

#define BB_PRINT_DENSITY_60PERCENT  0
#define BB_PRINT_DENSITY_70PERCENT  1
#define BB_PRINT_DENSITY_80PERCENT  2
#define BB_PRINT_DENSITY_90PERCENT  3
#define BB_PRINT_DENSITY_100PERCENT 4
#define BB_PRINT_DENSITY_110PERCENT 5
#define BB_PRINT_DENSITY_120PERCENT 6
#define BB_PRINT_DENSITY_130PERCENT 7
#define BB_PRINT_DENSITY_140PERCENT 8
#define BB_PRINT_DENSITY_DEFAULT    BB_PRINT_DENSITY_90PERCENT
#define BB_PRINT_DENSITY_MIN        BB_PRINT_DENSITY_60PERCENT
#define BB_PRINT_DENSITY_MAX        BB_PRINT_DENSITY_140PERCENT

#define BB_PRINT_LINESPACING_ONESIXTH   24
#define BB_PRINT_LINESPACING_DEFAULT    24
#define BB_PRINT_LINESPACING_MAX        255

#define BB_PRINT_BARCODE_UPCA       65
#define BB_PRINT_BARCODE_JAN13      67
#define BB_PRINT_BARCODE_JAN8       68
#define BB_PRINT_BARCODE_CODE39     69
#define BB_PRINT_BARCODE_ITF        70
#define BB_PRINT_BARCODE_CODABAR    71
#define BB_PRINT_BARCODE_CODE93     72
#define BB_PRINT_BARCODE_CODE128    73
#define BB_PRINT_BARCODE_CODE128A   73
#define BB_PRINT_BARCODE_CODE128B   74
#define BB_PRINT_BARCODE_CODE128C   75

#define BB_PRINT_BARCODE_WIDTH_THIN         2
#define BB_PRINT_BARCODE_WIDTH_NORMAL       3
#define BB_PRINT_BARCODE_WIDTH_THICK        4
#define BB_PRINT_BARCODE_WIDTH_MORETHICK    5
#define BB_PRINT_BARCODE_WIDTH_MOSTTHICK    6

#define BB_PRINT_BARCODE_ALIGN_LEFT         0
#define BB_PRINT_BARCODE_ALIGN_CENTER       2
#define BB_PRINT_BARCODE_ALIGN_RIGHT        4

#define BB_PRINT_BITMAP_NORMAL              0
#define BB_PRINT_BITMAP_DOUBLE_HEIGHT       1
#define BB_PRINT_BITMAP_DOUBLE_WIDTH        2
#define BB_PRINT_BITMAP_DOUBLE              3
#define BB_PRINT_BITMAP_ALIGN_CENTER        4
#define BB_PRINT_BITMAP_ALIGN_RIGHT         8

#define BB_PRINT_FONTTYPE_42                0
#define BB_PRINT_FONTTYPE_40                1
#define BB_PRINT_FONTTYPE_32                2

#define BB_PRINT_FONTSET_ASCII              0
#define BB_PRINT_FONTSET_HANGUL             1
#define BB_PRINT_FONTSET_SYMBOL             2
#define BB_PRINT_FONTSET_THAI               3
 



espero te sirva.


saludos
Pedro Gonzalez
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Tue Jun 16, 2009 4:34 pm

Gracias Pedro y Antonio voy a ir probando las dos posibilidades ya posteare los resultados QUE GRAN FORO!!!
Un abrazo
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Wed Jun 17, 2009 7:31 pm

Pedro perdon que te moleste
No he logrado conseguir las librerias ni los archivos .h
me los podrias pasar ( imagino han de ser las mismas )
en el cd de instalacion trato de instalarlos y me da un error
saludos
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby Salvador » Wed Jun 17, 2009 8:11 pm

Wilson,

Si realmente imprime sobre puerto com, esto funcionará.

viewtopic.php?t=8361
Saludos
Salvador
Salvador
 
Posts: 144
Joined: Sun Dec 18, 2005 3:18 pm
Location: España

Re: imprimir en una pidion BIP-1300

Postby pymsoft » Thu Jun 18, 2009 7:33 am

Wilson,

Las librerias y los .h no son de instalar, basta copiarlos en la carpeta que prefieras.

De todos modos si quieres te mando las librerias por mail, es mas, mira en tu mail.


Saludos.
Pedro Gonzalez
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Thu Jun 18, 2009 2:52 pm

Pedro
MUCHAS GRACIAS x tu colaboracion
voy a hacer pruebas y posteo los resultados
el tema es que en el CD no existen ni librerias ni nada es mas me da un error al querer instalar unos manuales que trae
Gracias x todo

saludos

Wilson
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby pymsoft » Thu Jun 18, 2009 3:01 pm

ok
Pedro Gonzalez
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Thu Jun 18, 2009 3:38 pm

Pedro al tratar de compilar con lo que me enviastes (gracias) tengo este error ( bueno tengo mas pero inicio con este )

Code: Select all  Expand view

c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2143: syntax error : missing ')' before '&'
y hace referencia a esta linea
BBAPI DWORD WINAPI BBBarcodeGetParameter(HBBBARCODE hBarcode, BYTE paramCode, BYTE& paramValue);
 


que podra ser ??

gracias x tu ayuda

saludos
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby pymsoft » Thu Jun 18, 2009 4:10 pm

Wilson,

no tengo idea que pueda ser, te mando mi batch a ver si ves alguna diferencia con el tuyo.

build2.bat

Code: Select all  Expand view

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for Pocket PC - September 2006           Harbour development power ³Ü
ECHO ³ (c) FiveTech, 1993-2006                    for Microsoft Windows Pocket PC ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO Compiling...

set mobitron=c:\lavwin\teve\mobitron
set jupiterpath=c:\lavwin\teve\jupiter
rem set fwdir=c:\ut\fwppc1006
rem set hdir=c:\harbour_CE1006
set fwdir=c:\ut\fwppc0507
set hdir=c:\harbour_CE0507

set vcdir=c:\vce
rem set include=%vcdir%\include\arm;%hdir%\include;%mobitron%\inc;"C:\Programmi\Windows CE Tools\wce400\STANDARDSDK\Mfc\Include";
set include=%vcdir%\include\arm;%hdir%\include;%mobitron%\inc;%jupiterpath%;
set lib=%vcdir%\lib;%hdir%\lib;

ECHO PER MOBITRON = %CONMOBITRON%
ECHO PER JUPITER = %CONJUPITER%

IF %CONMOBITRON%==SI goto COMPMOBI
IF %CONJUPITER%==SI goto COMPJUPITER
%hdir%\bin\harbour %1 /w1 /n /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.log
GOTO AVANTI

:COMPMOBI
%hdir%\bin\harbour %1 /w1 /n /dMOBITRONCOMPILA /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.log
GOTO AVANTI

:COMPJUPITER
%hdir%\bin\harbour %1 /w1 /n /dJUPITERCOMPILA /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.log
GOTO AVANTI

:AVANTI

@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT

%vcdir%\bin\clarm -TP -W3 -c /DARM /DUNICODE /I%hdir%\include /I%fwdir%\include /I"C:\Programmi\Windows CE Tools\wce400\STANDARDSDK\Mfc\Include" %1.c
:ENDCOMPILE

IF EXIST %1.rc %vcdir%\bin\rc -r -d_CE %1
IF EXIST menus.rc %vcdir%\bin\rc -r -d_CE menus.rc

echo %1.obj > msvc.tmp
echo %fwdir%\lib\FiveCE.lib %fwdir%\lib\FiveCEC.lib  >> msvc.tmp
echo %hdir%\lib\rtl.lib  >> msvc.tmp
echo %hdir%\lib\vm.lib  >> msvc.tmp
echo %hdir%\lib\gtgui.lib  >> msvc.tmp
echo %hdir%\lib\lang.lib  >> msvc.tmp
echo %hdir%\lib\macro.lib  >> msvc.tmp
echo %hdir%\lib\rdd.lib  >> msvc.tmp
echo %hdir%\lib\dbfntx.lib  >> msvc.tmp
echo %hdir%\lib\dbfcdx.lib  >> msvc.tmp
echo %hdir%\lib\dbffpt.lib  >> msvc.tmp
echo %hdir%\lib\hbsix.lib  >> msvc.tmp
REM echo %hdir%\lib\debug.lib  >> msvc.tmp
echo %hdir%\lib\common.lib  >> msvc.tmp
echo %hdir%\lib\pp.lib  >> msvc.tmp
echo %hdir%\lib\codepage.lib  >> msvc.tmp

echo %vcdir%\lib\arm\coredll.lib   >> msvc.tmp
echo %vcdir%\lib\arm\corelibc.lib  >> msvc.tmp
echo %vcdir%\lib\arm\aygshell.lib  >> msvc.tmp
echo %vcdir%\lib\arm\ws2.lib  >> msvc.tmp
echo %vcdir%\lib\arm\mfcce400.lib  >> msvc.tmp
REM echo %vcdir%\lib\arm\ole32.lib  >> msvc.tmp
echo %vcdir%\lib\arm\ceshell.lib  >> msvc.tmp
echo %vcdir%\lib\arm\commctrl.lib  >> msvc.tmp
echo %vcdir%\lib\arm\wininet.lib  >> msvc.tmp

REM ZIP
REM echo \lavwin\teve\zlibce.lib  >> msvc.tmp

REM MOBITRON - ECLIPSE
REM IF %MOBITRON%=="NO" GOTO :NOMOBITRON
echo \lavwin\teve\mobitron\lib\barcode.lib >> msvc.tmp
REM echo \lavwin\teve\mobitron\lib\printerNET.lib >> msvc.tmp
echo \lavwin\teve\mobitron\lib\printerAPI.lib >> msvc.tmp
echo \lavwin\teve\mobitron\lib\beep.lib >> msvc.tmp
echo \lavwin\teve\mobitron\lib\SerialLibrary.lib >> msvc.tmp
REM :NOMOBITRON

REM IF %JUPITER%=="NO" GOTO :NOJUPITER
echo \lavwin\teve\jupiter\bbappapi.lib >> msvc.tmp
echo \lavwin\teve\jupiter\bbsysapi.lib >> msvc.tmp
REM :NOJUPITER

IF EXIST %1.res echo %1.res >> msvc.tmp
IF EXIST menus.res echo menus.res >> msvc.tmp

IF %CONJUPITER%==SI goto LINKJUPITER
%vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARM
GOTO DOPOLINK

:LINKJUPITER
%vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:THUMB

:DOPOLINK

rem delete temporary files
@del %1.c
@del %1.obj
@del %1.exp
@del %1.lib
REM @del %1.ppo
@del msvc.tmp

IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built   %TIME%
GOTO EXIT
ECHO

:LINKERROR
rem PAUSE * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi¢n PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:SINMOBITRON
echo NO MOBITRON

:EXIT




y lo llamo asi:

e.bat

Code: Select all  Expand view

SET CONMOBITRON=NO
SET CONJUPITER=SI
call build2.bat teve


ut\cecopy teve.exe "dev:\Storage Card\teve\teve.exe"


 



espero te sirva

saludos
Pedro Gonzalez
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Thu Jun 18, 2009 5:36 pm

Muchas Gracias ya lo reviso
Att
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Fri Jun 19, 2009 6:35 pm

esrtimados no doy con el error
si alguien puede ayudarme gracias

aca esta el error

c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2143: syntax error : missing ')' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2143: syntax error : missing '{' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2059: syntax error : '&'
c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2059: syntax error : ')'
c:\wilson\cybercel\cypocket\bbappapi.h(249) : error C2143: syntax error : missing ')' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(249) : error C2143: syntax error : missing '{' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(249) : error C2059: syntax error : '&'
c:\wilson\cybercel\cypocket\bbappapi.h(249) : error C2059: syntax error : ')'
c:\wilson\cybercel\cypocket\bbappapi.h(259) : error C2143: syntax error : missing ')' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(259) : error C2143: syntax error : missing '{' before '&'
c:\wilson\cybercel\cypocket\bbappapi.h(259) : error C2059: syntax error : '&'
c:\wilson\cybercel\cypocket\bbappapi.h(259) : error C2059: syntax error : ')'
c:\wilson\cybercel\cypocket\bbappapi.h(825) : error C2081: 'BBRFReader_Type' : name in formal parameter list illegal
c:\wilson\cybercel\cypocket\bbappapi.h(826) : error C2143: syntax error : missing ')' before '*'
c:\wilson\cybercel\cypocket\bbappapi.h(826) : error C2081: 'BBRFReader_Type' : name in formal parameter list illegal
c:\wilson\cybercel\cypocket\bbappapi.h(826) : error C2143: syntax error : missing '{' before '*'
c:\wilson\cybercel\cypocket\bbappapi.h(826) : error C2059: syntax error : ')'
c:\wilson\cybercel\cypocket\bbappapi.h(826) : error C2059: syntax error : ';'
c:\wilson\cybercel\cypocket\bbappapi.h(827) : error C2143: syntax error : missing ')' before '*'
c:\wilson\cybercel\cypocket\bbappapi.h(827) : error C2081: 'BBRFReader_RFBaudRateTypeA' : name in formal parameter list illegal
c:\wilson\cybercel\cypocket\bbappapi.h(827) : error C2143: syntax error : missing '{' before '*'
c:\wilson\cybercel\cypocket\bbappapi.h(827) : error C2059: syntax error : ','
c:\wilson\cybercel\cypocket\bbappapi.h(827) : error C2059: syntax error : ')'
pidion.prg(71) : error C2275: 'DWORD' : illegal use of this type as an expression
c:\vce\include\arm\windef.h(158) : see declaration of 'DWORD'
pidion.prg(71) : error C2146: syntax error : missing ';' before identifier 'dwRet'
pidion.prg(71) : error C2065: 'dwRet' : undeclared identifier
LINK : fatal error LNK1181: cannot open input file 'Jose_Pok.obj'
* Application successfully built


por ejemplo este error
c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2143: syntax error : missing ')' before '&'
esta en esta linea del archivo .h
BBAPI DWORD WINAPI BBBarcodeGetParameter(HBBBARCODE hBarcode, BYTE paramCode, BYTE& paramValue);

Antonio ? talvez es alguna declaracion del c mal hecha ??

gracias x todo

saludos
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Re: imprimir en una pidion BIP-1300

Postby pymsoft » Mon Jun 22, 2009 8:13 am

Wilson,

muestra en tu prg como llamas a las funciones en C, muestra tambien como haces para compilar y dime si las dimensiones de
estos archivos son iguales a las mias:

32.568 bbappapi.h
37.258 bbappapi.lib
348 bberror.h
16.426 bbsysapi.h
15.252 bbsysapi.lib


a mi me paso algo similar la primera vez que intente compilarlo, luego lo resolvi, pero no recuerdo como, pero seguramente este en el modo de compilar, porque recien en estos dias, tuve que copiar toda mi configuracion a otro pc, porque estoy cambiando pc de trabajo y me basto copiar todo como lo tenia en el otro.


saludos
Pedro Gonzalez
User avatar
pymsoft
 
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia

Re: imprimir en una pidion BIP-1300

Postby wilsongamboa » Mon Jun 22, 2009 2:20 pm

Pedro gracias x contestar asi las tengo

[code]
18/06/2009 08:48 31,707 bbappapi.h
18/06/2009 08:45 37,258 bbappapi.lib
18/06/2009 08:48 5,055 bbappapi2.h
18/06/2009 08:48 328 bberror.h
18/06/2009 08:49 15,972 bbsysapi.h
18/06/2009 08:45 15,252 bbsysapi.lib
</code>
las librerias estan ok, pero no estan igual los .ch porfa podrias enviarmelos zipeados

saludos

Wilson
pd: gracias x tu tiempo
Wilson 'W' Gamboa A
Wilson.josenet@gmail.com
User avatar
wilsongamboa
 
Posts: 548
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador

Next

Return to FiveWin para Pocket PC

Who is online

Users browsing this forum: No registered users and 5 guests