imprimir en una pidion BIP-1300

User avatar
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

imprimir en una pidion BIP-1300

Post by wilsongamboa »

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

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 )    endReturn Nil 


tambien he intentado con este codigo sin resultado

Code: Select all | Expand

    ::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
Antonio Linares
Site Admin
Posts: 42491
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 30 times
Been thanked: 67 times
Contact:

Re: imprimir en una pidion BIP-1300

Post by Antonio Linares »

Wilson,

Comprueba el valor que tiene ::Fp

MsgInfo( ::Fp )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Re: imprimir en una pidion BIP-1300

Post by pymsoft »

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

    #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 NILFUNCTION 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

echo bbappapi.lib >> msvc.tmpecho 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

#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
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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
Salvador
Posts: 144
Joined: Sun Dec 18, 2005 3:18 pm
Location: España

Re: imprimir en una pidion BIP-1300

Post by Salvador »

Wilson,

Si realmente imprime sobre puerto com, esto funcionará.

viewtopic.php?t=8361
Saludos
Salvador
User avatar
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Re: imprimir en una pidion BIP-1300

Post by pymsoft »

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
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Re: imprimir en una pidion BIP-1300

Post by pymsoft »

ok
Pedro Gonzalez
User avatar
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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

c:\wilson\cybercel\cypocket\bbappapi.h(247) : error C2143: syntax error : missing ')' before '&'y hace referencia a esta lineaBBAPI 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
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Re: imprimir en una pidion BIP-1300

Post by pymsoft »

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

@ECHO OFFCLSECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿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 :SINTAXif NOT EXIST %1.prg GOTO :NOEXISTECHO Compiling...set mobitron=c:\lavwin\teve\mobitronset jupiterpath=c:\lavwin\teve\jupiterrem set fwdir=c:\ut\fwppc1006rem set hdir=c:\harbour_CE1006set fwdir=c:\ut\fwppc0507set hdir=c:\harbour_CE0507set vcdir=c:\vcerem 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 COMPMOBIIF %CONJUPITER%==SI goto COMPJUPITER%hdir%\bin\harbour %1 /w1 /n /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.logGOTO AVANTI:COMPMOBI%hdir%\bin\harbour %1 /w1 /n /dMOBITRONCOMPILA /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.logGOTO AVANTI:COMPJUPITER%hdir%\bin\harbour %1 /w1 /n /dJUPITERCOMPILA /i%fwdir%\include;%hdir%\include /p %2 %3 > clip.logGOTO AVANTI:AVANTI@type clip.logIF ERRORLEVEL 1 PAUSEIF 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:ENDCOMPILEIF EXIST %1.rc %vcdir%\bin\rc -r -d_CE %1IF EXIST menus.rc %vcdir%\bin\rc -r -d_CE menus.rcecho %1.obj > msvc.tmpecho %fwdir%\lib\FiveCE.lib %fwdir%\lib\FiveCEC.lib  >> msvc.tmpecho %hdir%\lib\rtl.lib  >> msvc.tmpecho %hdir%\lib\vm.lib  >> msvc.tmpecho %hdir%\lib\gtgui.lib  >> msvc.tmpecho %hdir%\lib\lang.lib  >> msvc.tmpecho %hdir%\lib\macro.lib  >> msvc.tmpecho %hdir%\lib\rdd.lib  >> msvc.tmpecho %hdir%\lib\dbfntx.lib  >> msvc.tmpecho %hdir%\lib\dbfcdx.lib  >> msvc.tmpecho %hdir%\lib\dbffpt.lib  >> msvc.tmpecho %hdir%\lib\hbsix.lib  >> msvc.tmpREM echo %hdir%\lib\debug.lib  >> msvc.tmpecho %hdir%\lib\common.lib  >> msvc.tmpecho %hdir%\lib\pp.lib  >> msvc.tmpecho %hdir%\lib\codepage.lib  >> msvc.tmpecho %vcdir%\lib\arm\coredll.lib   >> msvc.tmpecho %vcdir%\lib\arm\corelibc.lib  >> msvc.tmpecho %vcdir%\lib\arm\aygshell.lib  >> msvc.tmpecho %vcdir%\lib\arm\ws2.lib  >> msvc.tmpecho %vcdir%\lib\arm\mfcce400.lib  >> msvc.tmpREM echo %vcdir%\lib\arm\ole32.lib  >> msvc.tmpecho %vcdir%\lib\arm\ceshell.lib  >> msvc.tmpecho %vcdir%\lib\arm\commctrl.lib  >> msvc.tmpecho %vcdir%\lib\arm\wininet.lib  >> msvc.tmpREM ZIPREM echo \lavwin\teve\zlibce.lib  >> msvc.tmpREM MOBITRON - ECLIPSE REM IF %MOBITRON%=="NO" GOTO :NOMOBITRONecho \lavwin\teve\mobitron\lib\barcode.lib >> msvc.tmpREM echo \lavwin\teve\mobitron\lib\printerNET.lib >> msvc.tmpecho \lavwin\teve\mobitron\lib\printerAPI.lib >> msvc.tmpecho \lavwin\teve\mobitron\lib\beep.lib >> msvc.tmpecho \lavwin\teve\mobitron\lib\SerialLibrary.lib >> msvc.tmpREM :NOMOBITRONREM IF %JUPITER%=="NO" GOTO :NOJUPITERecho \lavwin\teve\jupiter\bbappapi.lib >> msvc.tmpecho \lavwin\teve\jupiter\bbsysapi.lib >> msvc.tmpREM :NOJUPITERIF EXIST %1.res echo %1.res >> msvc.tmpIF EXIST menus.res echo menus.res >> msvc.tmpIF %CONJUPITER%==SI goto LINKJUPITER%vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARMGOTO DOPOLINK:LINKJUPITER%vcdir%\bin\link @msvc.tmp /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:THUMB:DOPOLINKrem delete temporary files@del %1.c@del %1.obj@del %1.exp@del %1.libREM @del %1.ppo@del msvc.tmpIF ERRORLEVEL 1 GOTO LINKERRORECHO * Application successfully built   %TIME%GOTO EXITECHO:LINKERRORrem PAUSE * Linking errors *GOTO EXIT:SINTAXECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi¢n PRGECHO                                {-- Don't specify .PRG extensionGOTO EXIT:NOEXISTECHO The specified PRG %1 does not exist:SINMOBITRONecho NO MOBITRON:EXIT



y lo llamo asi:

e.bat

Code: Select all | Expand

SET CONMOBITRON=NOSET CONJUPITER=SIcall build2.bat teveut\cecopy teve.exe "dev:\Storage Card\teve\teve.exe" 



espero te sirva

saludos
Pedro Gonzalez
User avatar
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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
pymsoft
Posts: 383
Joined: Tue Oct 11, 2005 1:01 pm
Location: Savona - Italia
Contact:

Re: imprimir en una pidion BIP-1300

Post by pymsoft »

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
wilsongamboa
Posts: 613
Joined: Wed Oct 19, 2005 6:41 pm
Location: Quito - Ecuador
Been thanked: 5 times

Re: imprimir en una pidion BIP-1300

Post by wilsongamboa »

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
Post Reply