Page 1 of 1

compilar BPAINT.C de tsButton con BC++ 5.82

PostPosted: Sat May 29, 2010 4:38 pm
by Patricio Avalos Aguirre
Estimados

estoy recompilando TSbutton con la version de borland C++ 5.82 pero el archivo BPAINT.C me arroja los siguentes errores, si alguien puede revisarlo y dar con la solucion

Code: Select all  Expand view
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
..\source\function\BPAINT.C:
Error E2349 ..\source\function\BPAINT.C 100: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
        GetObject( ( HGDIOBJ ) ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ), sizeof( BITMAP ),( LPSTR ) &bm ) ; //linea 100

Error E2349 ..\source\function\BPAINT.C 153: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
        DrawMasked( hDC, ( bV22 ? hShape : LOWORD( hShape ) ), //linea 153
                  rct.top + ( bPressed ? 1 : 0 ), rct.left  + ( bPressed ? 1 : 0 ) ) ;

Error E2349 ..\source\function\BPAINT.C 286: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
    if( ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ) ) //linea 286

Error E2349 ..\source\function\BPAINT.C 296: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
                DrawBitmap( hDC, ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ), nTop, //linea 296
                           nLeft - ( ibmWidth * ( iClip - 1 ) ), 0, 0, 0 ) ;

Error E2349 ..\source\function\BPAINT.C 299: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
                DrawBitmap( hDC, ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ), nTop, nLeft, //linea 299
                           ( bAdjust ?  nWidth - 2 : 0 ), ( bAdjust ?  nHeight - 2 : 0 ), 0 ) ;

Error E2349 ..\source\function\BPAINT.C 305: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
                DrawMasked( hDC, ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ), nTop, //linea 305
                           nLeft - ( ibmWidth * ( iClip - 1 ) ) ) ;

Error E2349 ..\source\function\BPAINT.C 308: Nonportable pointer conversion in function HB_FUN_SBTNPAINT
    DrawMasked( hDC, ( bV22 ? hBitMap1 : LOWORD( hBitMap1 ) ), nTop, nLeft ) ; //linea 308

Warning W8065 ..\source\function\BPAINT.C 1016: Call to function 'GetTextExtent' with no prototype in function HB_FUN_DRAWRADIO
    iExt       = LOWORD( GetTextExtent( hDC, cText, iLen ) ) ; //linea 1016

Warning W8065 ..\source\function\BPAINT.C 1392: Call to function 'GetTextExtent' with no prototype in function cDrawBoxes
    iWidth      = LOWORD( GetTextExtent( hDC, cLabel, iLen ) ) ;//linea 1392

*** 7 errors in Compile ***

Re: compilar BPAINT.C de tsButton con BC++ 5.82

PostPosted: Sun May 30, 2010 3:18 am
by luisduque
Hola

para que no te salgan esos errores tienes que compilar de la siguiente manera

c:\bcc582\bin\bcc32 -D__HARBOUR__ -c nombredearchivo.c

te recomiendo que los siguientes archivos estén configurados así
Ubicación: c:\bcc582\bin

BCC32.CFG
-I"c:\bcc582\include;c:\bcc582\include\dinkumware";c:\fwh\include;c:\harbour\include"
-L"c:\bcc582\lib"

ilink32.cfg
-L"c:\bcc582\lib"

en el caso que quieras colocarlo en una libreria haces lo siguiente

en mi caso necesite compilar dib.c y dibbmp.c lo que hice fue
cuando obtuve los Obj los copie en donde estaba la libreria

c:\bcc582\bin\tlib fivehc.lib -+ dibbmp.obj
c:\bcc582\bin\tlib fivehc.lib -+ dib.obj


espero que le sirva de ayuda a varios que puedan tener este problema

Re: compilar BPAINT.C de tsButton con BC++ 5.82

PostPosted: Mon May 31, 2010 2:03 am
by mmercado
Hola Patricio:
Patricio Avalos Aguirre wrote:estoy recompilando TSbutton con la version de borland C++ 5.82 pero el archivo BPAINT.C me arroja los siguentes errores, si alguien puede revisarlo y dar con la solucion

Tienes una versión muy atrasada de TSButton, mándame un mail para devolverte una más actual y poder resolver, en su caso, los posibles errores.

Un abrazo.

Manuel Mercado Gómez.

Re: compilar BPAINT.C de tsButton con BC++ 5.82

PostPosted: Sat Jun 05, 2010 8:54 pm
by noe aburto
Saludos.

Quiza, debes cambiar los config, de bcc y listo..