compilar BPAINT.C de tsButton con BC++ 5.82

compilar BPAINT.C de tsButton con BC++ 5.82

Postby Patricio Avalos Aguirre » Sat May 29, 2010 4:38 pm

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 ***
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1060
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

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

Postby luisduque » Sun May 30, 2010 3:18 am

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
Fivewin 16.11
Harbour 3.2.0
Visual Studio 2015 community
MariaDb/MySql

Ing. MSc. Luis Duque
http://www.accasoft.net
luisduque
 
Posts: 133
Joined: Mon May 12, 2008 4:13 pm
Location: Venezuela

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

Postby mmercado » Mon May 31, 2010 2:03 am

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.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

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

Postby noe aburto » Sat Jun 05, 2010 8:54 pm

Saludos.

Quiza, debes cambiar los config, de bcc y listo..
Noé Aburto Sánchez
Tec. Prog. de Sistemas. -Morelia, Mich. México.
fwh 20.06, Harbour 3.2.0, bcc 7.4
TsBrowse 9.0, TsButton 7.0, xEdit 6.1
naburtos@gmail.com, noeaburto67@hotmail.com
User avatar
noe aburto
 
Posts: 418
Joined: Wed Nov 26, 2008 6:33 pm
Location: Morelia, Mich. Mexico.


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 55 guests