topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
errores al compilar Leto - solucionado | Hola,
En Borland C++, ¿cuál es la función para GetComputerName( szValue, &ulLen ) ?. Igual debo de añadir alguna lib de Borland, pero no se cuál es.
Además, tengo los siguientes errores al compilar leto, y no tengo ni idea cómo solucionarlos:
[code=fw:ow1gzvk4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/*<br /> * $Id: errint.c,v 1.6 2010/06/02 07:08:44 aokhotnikov Exp $<br /> */</span><br /><br /><span style="color: #B900B9;">/*<br /> * Harbour Project source code:<br /> * The Error API (internal error)<br /> *<br /> * Copyright 1999-2004 Viktor Szakats <viktor.szakats@syenar.hu><br /> * www - <!-- m --><a class="postlink" href="http://www.harbour-project.org">http://www.harbour-project.org</a><!-- m --><br /> *<br /> * Copyright 2009 Alexander S. Kresin <alex / at / belacy.belgorod.su><br /> * updated for Leto db server<br /> *<br /> * This program is free software; you can redistribute it and/or modify<br /> * it under the terms of the GNU General Public License as published by<br /> * the Free Software Foundation; either version 2, or (at your option)<br /> * any later version.<br /> *<br /> * This program is distributed in the hope that it will be useful,<br /> * but WITHOUT ANY WARRANTY; without even the implied warranty of<br /> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br /> * GNU General Public License for more details.<br /> *<br /> * You should have received a copy of the GNU General Public License<br /> * along with this software; see the file COPYING. If not, write to<br /> * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,<br /> * Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class="postlink" href="http://www.gnu.org/">http://www.gnu.org/</a><!-- m -->).<br /> *<br /> * As a special exception, the Harbour Project gives permission for<br /> * additional uses of the text contained in its release of Harbour.<br /> *<br /> * The exception is that, if you link the Harbour libraries with other<br /> * files to produce an executable, this does not by itself cause the<br /> * resulting executable to be covered by the GNU General Public License.<br /> * Your use of that executable is in no way restricted on account of<br /> * linking the Harbour library code into it.<br /> *<br /> * This exception does not however invalidate any other reasons why<br /> * the executable file might be covered by the GNU General Public License.<br /> *<br /> * This exception applies only to the code released by the Harbour<br /> * Project under the name Harbour. If you copy code from other<br /> * Harbour Project or Free Software Foundation releases into a copy of<br /> * Harbour, as the General Public License permits, the exception does<br /> * not apply to the code that you add in this way. To avoid misleading<br /> * anyone as to the status of such modified files, you must delete<br /> * this exception notice from them.<br /> *<br /> * If you write modifications of your own for Harbour, it is your choice<br /> * whether to permit this exception to apply to your modifications.<br /> * If you do not wish that, delete this exception notice.<br /> *<br /> */</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapierr.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapilng.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbdate.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbset.h"</span><br />#if defined <span style="color: #000000;">(</span>__XHARBOUR__<span style="color: #000000;">)</span> || !defined<span style="color: #000000;">(</span>__HARBOUR__<span style="color: #000000;">)</span> || <span style="color: #000000;">(</span> <span style="color: #000000;">(</span>__HARBOUR__ - <span style="color: #000000;">0</span><span style="color: #000000;">)</span> < 0x020000 <span style="color: #000000;">)</span><br /><span style="color: #00D7D7;">#define</span> LETO_ERRCODE ULONG<br />#else<br /><span style="color: #00D7D7;">#define</span> LETO_ERRCODE HB_ERRCODE<br />#endif<br /><br /><span style="color: #00C800;">static</span> BOOL bErrHandlerRun = <span style="color: #000000;">0</span>;<br />extern void leto_errInternal<span style="color: #000000;">(</span> ULONG ulIntCode, const char * szText, const char * szPar1, const char * szPar2 <span style="color: #000000;">)</span>;<br /><br />void hb_errInternalRaw<span style="color: #000000;">(</span> LETO_ERRCODE ulIntCode, const char * szText, const char * szPar1, const char * szPar2 <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> szPar1 == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> szPar1 = <span style="color: #ff0000;">""</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> szPar2 == <span style="color: #00C800;">NULL</span> <span style="color: #000000;">)</span><br /> szPar2 = <span style="color: #ff0000;">""</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> !bErrHandlerRun <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> bErrHandlerRun = <span style="color: #000000;">1</span>;<br /> leto_errInternal<span style="color: #000000;">(</span> <span style="color: #000000;">(</span>ULONG<span style="color: #000000;">)</span> ulIntCode, szText, szPar1, szPar2 <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #000000;">{</span><br /> FILE * hLog;<br /> hLog = hb_fopen<span style="color: #000000;">(</span> <span style="color: #ff0000;">"letodb_crash.log"</span>, <span style="color: #ff0000;">"a+"</span> <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hLog <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> fprintf<span style="color: #000000;">(</span> hLog, <span style="color: #ff0000;">"Unrecoverable error %lu: "</span>, <span style="color: #000000;">(</span>ULONG<span style="color: #000000;">)</span> ulIntCode <span style="color: #000000;">)</span>;<br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> szText <span style="color: #000000;">)</span><br /> fprintf<span style="color: #000000;">(</span> hLog, <span style="color: #ff0000;">"%s %s %s<span style="color: #000000;">\n</span>"</span>, szText, szPar1, szPar2 <span style="color: #000000;">)</span>;<br /> fclose<span style="color: #000000;">(</span> hLog <span style="color: #000000;">)</span>;<br /> <span style="color: #000000;">}</span><br /> <span style="color: #000000;">}</span><br /><br /><span style="color: #000000;">}</span><br /><br />void hb_errInternal<span style="color: #000000;">(</span> LETO_ERRCODE ulIntCode, const char * szText, const char * szPar1, const char * szPar2 <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> hb_errInternalRaw<span style="color: #000000;">(</span> ulIntCode, szText, szPar1, szPar2 <span style="color: #000000;">)</span>;<br /><br /> <span style="color: #B900B9;">/* release console settings */</span><br /> hb_conRelease<span style="color: #000000;">(</span><span style="color: #000000;">)</span>;<br /><br /> <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> hb_cmdargCheck<span style="color: #000000;">(</span> <span style="color: #ff0000;">"ERRGPF"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #000000;">{</span><br /> int *pGPF = <span style="color: #00C800;">NULL</span>;<br /> *pGPF = <span style="color: #000000;">0</span>;<br /> *<span style="color: #000000;">(</span>--pGPF<span style="color: #000000;">)</span> = <span style="color: #000000;">0</span>;<br /> <span style="color: #000000;">}</span><br /><br /> exit<span style="color: #000000;">(</span> EXIT_FAILURE <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span></div>[/code:ow1gzvk4]
Los errores son:
[code=fw:ow1gzvk4]<div class="fw" id="{CB}" style="font-family: monospace;">Error E2141 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">67</span>: <span style="color: #000000;">Declaration</span> syntax error<br />Error E2147 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">68</span>: <span style="color: #ff0000;">'ULONG'</span> cannot start a<br />parameter declaration<br />Error E2451 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">79</span>: <span style="color: #000000;">Undefined</span> symbol<br /><span style="color: #ff0000;">'bErrHandlerRun'</span> in <span style="color: #00C800;">function</span> hb_errInternalRaw<br />Error E2451 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">82</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'ULONG'</span> in<br /><span style="color: #00C800;">function</span> hb_errInternalRaw<br />Error E2121 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">82</span>: <span style="color: #00C800;">Function</span> call missing <span style="color: #000000;">)</span> in<br /><span style="color: #00C800;">function</span> hb_errInternalRaw<br />Error E2451 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">91</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'ULONG'</span> in<br /><span style="color: #00C800;">function</span> hb_errInternalRaw<br />Error E2121 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">91</span>: <span style="color: #00C800;">Function</span> call missing <span style="color: #000000;">)</span> in<br /><span style="color: #00C800;">function</span> hb_errInternalRaw<br />Warning W8057 source\<span style="color: #00C800;">server</span>\errint.c <span style="color: #000000;">98</span>: <span style="color: #000000;">Parameter</span> <span style="color: #ff0000;">'ulIntCode'</span> is<br />never used in <span style="color: #00C800;">function</span> hb_errInternalRaw</div>[/code:ow1gzvk4]
Agradecería muchísimo una ayuda. Además, esto servirá para otros usuarios pues Leto tiene muy buena pinta.
Muchas gracias. |
errores al compilar Leto - solucionado | Aquí subo el archivo:
<!-- m --><a class="postlink" href="http://www.mediafire.com/?25trl2wtlnub88z">http://www.mediafire.com/?25trl2wtlnub88z</a><!-- m --> |
errores al compilar Leto - solucionado | Lucas,
Cambia BOOL por HB_BOOL y ULONG por HB_ULONG |
errores al compilar Leto - solucionado | Antonio,
Mil gracias, funciona pefecto.
Me falta por favor el tema de en Borland C++, ¿cuál es la función para GetComputerName( szValue, &ulLen ) ?. Igual debo de añadir alguna lib de Borland, pero no se cuál es.
Eres el Maestro!!. |
errores al compilar Leto - solucionado | Lucas,
No tienes que añadir nada. La función GetComputerName() es propia del API de Windows:
[url:bymxlnpw]http://msdn.microsoft.com/en-us/library/windows/desktop/ms724295(v=vs.85).aspx[/url:bymxlnpw]
Solo tienes que crear la función en C para acceder a ella:
[code=fw:bymxlnpw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">(</span> GETCOMPUTERNAME <span style="color: #000000;">)</span><br /><span style="color: #000000;">{</span><br /> char buffer<span style="color: #000000;">[</span> MAX_COMPUTERNAME_LENGTH + <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>;<br /> DWORD dwLen = MAX_COMPUTERNAME_LENGTH; <br /><br /> GetComputerName<span style="color: #000000;">(</span> buffer, &dwLen <span style="color: #000000;">)</span>;<br /> hb_retc<span style="color: #000000;">(</span> buffer <span style="color: #000000;">)</span>;<br /><span style="color: #000000;">}</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /> </div>[/code:bymxlnpw] |
errores al compilar Leto - solucionado | Antonio,
Muchas gracias de nuevo.
El problema es que en el .c no encuentra al compilar la función de c GetComputerName
El código en c es:
[code=fw:3g08078r]<div class="fw" id="{CB}" style="font-family: monospace;">#elif defined<span style="color: #000000;">(</span>HB_OS_WIN_32<span style="color: #000000;">)</span> || defined<span style="color: #000000;">(</span> HB_OS_WIN <span style="color: #000000;">)</span><br /><br /> DWORD ulLen = MAX_COMPUTERNAME_LENGTH<span style="color: #000000;">+1</span>;<br /> char szValue<span style="color: #000000;">[</span>MAX_COMPUTERNAME_LENGTH<span style="color: #000000;">+1</span><span style="color: #000000;">]</span>, *szRet;<br /><br /> szValue<span style="color: #000000;">[</span> <span style="color: #000000;">0</span> <span style="color: #000000;">]</span> = <span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br /> GetComputerName<span style="color: #000000;">(</span> szValue, &ulLen <span style="color: #000000;">)</span>;<br /><br /> ulLen = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">(</span> szValue <span style="color: #000000;">)</span>;<br /> szRet = <span style="color: #000000;">(</span>char*<span style="color: #000000;">)</span> hb_xgrab<span style="color: #000000;">(</span> ulLen<span style="color: #000000;">+1</span> <span style="color: #000000;">)</span>;<br /> memcpy<span style="color: #000000;">(</span> szRet, szValue, ulLen <span style="color: #000000;">)</span>;<br /> szRet<span style="color: #000000;">[</span>ulLen<span style="color: #000000;">]</span> = <span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br /> <span style="color: #00C800;">return</span> szRet;<br /><br />#else<br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">NULL</span>;<br /><br />#endif<br /><span style="color: #000000;">}</span><br /> </div>[/code:3g08078r] |
errores al compilar Leto - solucionado | Que error te aparece ? |
errores al compilar Leto - solucionado | Hola,
Estaba usando una versión vieja.
Para descargar hay que hacer
cvs -d:pserver:anonymous@letodb.cvs.sourceforge.net:/cvsroot/letodb co -P -r rel-1-mt letodb
De momento, funciona muy bien.
Muchas gracias por la ayuda. |
errores al compilar adordd.prg | Saudos
Estoy iniciando con el uso de ADORDD y al compilar mi lib me marca estos errores:
Compilando adordd.prg...
adordd.prg(884) Warning W0001 Ambiguous reference: 'ORECORDSET'
adordd.prg(3044) Warning W0001 Ambiguous reference: 'WA_UNIQUE'
adordd.prg(3743) Warning W0002 Ambiguous reference, assuming memvar: 'ARELINFO'
ababo de bajar el adordd y lo inclui en mi lib, no se si sea la version correcta adordd-master.zip |
errores al compilar adordd.prg | Ya verifique con otras versiones de adordd.prg y al parecer no tengo la version correcta o ultima.
Alquien podria decirme donde descargar la ultima version de ADORDD?
gracias |
errores al compilar adordd.prg | Por favor, cambie:
adordd.prg(884) Warning W0001 Ambiguous reference: 'ORECORDSET' oRS
adordd.prg(3044) Warning W0001 Ambiguous reference: 'WA_UNIQUE' WA_INDEXUNIQUE
adordd.prg(3743) Warning W0002 Ambiguous reference, assuming memvar: 'ARELINFO' nWA
Ultima version <!-- m --><a class="postlink" href="https://github.com/AHFERREIRA/adordd.git">https://github.com/AHFERREIRA/adordd.git</a><!-- m --> |
errores con fwh 16.02 | Hola Antonio,
Acabo de instalar la FWH 16.02 y cuando compilo la aplicacion que con FWH 10.1 anda bien me aparece esta lista de errores:
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
c:\bcc55\bin\ilink32.exe -Gn -aa -Tpe -s -I.\OBJ @make.tmp
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'GdipFree' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDisposeImage' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCloneImage' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipAlloc' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDeleteGraphics' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDisposeImageAttributes' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipBitmapGetPixel' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageWidth' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageHeight' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromScan0' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageGraphicsContext' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateImageAttributes' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetImageAttributesRemapTable' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawImageRectRectI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetSmoothingMode' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawLine' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillRectangle' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawRectangle' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillEllipse' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawEllipse' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawArc' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawPath' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillPath' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGraphicsClear' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateFromHDC' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPageUnit' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawImageI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDrawImageRectI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenColor' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenMode' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenWidth' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeletePen' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCreatePen1' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetPenLineCap197819' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeleteBrush' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCloneBrush' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCreateSolidFill' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdiplusStartup' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdiplusShutdown' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathArcI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathLineI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipAddPathRectangleI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipClosePathFigure' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipDeletePath' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreatePath' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromHBITMAP' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetImageAttributesColorMatrix' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateHBITMAPFromBitmap' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImagePixelFormat' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipRotateWorldTransform' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipTranslateWorldTransform' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSetInterpolationMode' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipCreateBitmapFromStream' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipImageRotateFlip' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipBitmapSetPixel' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipSaveImageToFile' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipGetImageThumbnail' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'GdipFillRectangleI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPLUS
Error: Unresolved external 'SHCreateDirectoryExA' referenced from C:\FWH16\LIB\FIVEHC.LIB|MKDIR
Error: Unresolved external 'GdipBitmapLockBits' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipBitmapUnlockBits' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipSetImageAttributesColorKeys' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawImageRectRect' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCloneBitmapAreaI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawArcI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawPolygonI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipFillPolygonI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawBeziersI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawLinesI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawClosedCurve2I' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawCurve2I' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipFillClosedCurve2I' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawPieI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipFillPieI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawEllipseI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipFillEllipseI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDrawRectangleI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipDeleteRegion' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipCreateRegionRectI' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipSetClipRegion' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
Error: Unresolved external 'GdipResetClip' referenced from C:\FWH16\LIB\FIVEHC.LIB|GDIPFWH
** error 2 ** deleting .\FACTH32.exe
me podrias decir como solucionarlo
FWH 16.02 + BCC55 + harbour30 |
errores con fwh 16.02 | You need to add \lib\psdk\gdiplus.lib of your Borland bcc folder.
Please go through buildh.bat and buildx.bat in fwh\samples folder to know which libs are to be included in your link script |
errores con fwh 16.02 | Además, mi consejo es que te actualices a Borland 7 y el harbour más reciente |
errores con fwh 16.02 | Muchas gracias a ambos!!! |
errores con fwh 16.02 | Hola Instale Borland C++ 5.5 pero la gdiplus.lib sigue sin aparecer
Donde la puedo conseguir ?
pregunta: borland c++ 5.5 es igual que BCC7 ?
Gracias |
errores con fwh 16.02 | you need borland c++ 7 |
errores de harbour en castellano | Hola:
¿Alguno tenéis, por favor, un listado con los errores y descripción de los mismos en castellano?.
pej:
DBFNTX/1012 Corrupción detectada. El fichero está corrupto. Posibles soluciones, bla bla
Muchas gracias. Un saludo |
errores de harbour en castellano | Moises,
Tienes que añadir estas líneas al comienzo de tu PRG principal:
REQUEST HB_Lang_ES
REQUEST HB_CODEPAGE_ESWIN
HB_LangSelect("ES") // Para mensajes, fechas, etc..
HB_SetCodePage("ESWIN") // Para ordenación, requiere CodePage.lib |
errores de harbour en castellano | Antonio:
No me refiero a que salgan en el programa, sino tenerlos en papel para el soporte técnico,
Muchas gracias. |
errores de harbour en castellano | Aqui tienes el fichero fuente:
<!-- m --><a class="postlink" href="http://rapidshare.com/files/62296215/msgeswin.zip.html">http://rapidshare.com/files/62296215/msgeswin.zip.html</a><!-- m --> |
errores de memoria en Fwppc version anterior | Antonio tengo fwppc con las siguientes fechas de los archivos
fivece.lib 01/09/2006
fivecec.lib 30/08/2006
en un programa que usa browse cuando le trabajan desde las 8:00 am y pasan de las 2pm les bota del sistema sin dar ningun error, me parece que era un error en manejo de memoria, parece que vi ese mensaje, en todo caso podrias cotizarme la ultima version y claro espero resuelva ese problema (no es problema de programacion porque eso ya revise)
o si hay otra solucion ???
gracias x tu atencion
saludos |
errores de memoria en Fwppc version anterior | Wilson,
La versión actual es la de Julio 2007 y usa el build de Harbour más reciente por lo que incluye todas las mejoras.
La actualización puedes solicitarla desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w -->. El precio es 139,2 euros |
errores de memoria en Fwppc version anterior | gracias Antonio |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Buenas tardes ... solicito ayuda al foro
Se están presentando esporádicamente estos errores
Error # 1
Application
===========
Path and name: C:\RusSoft\ZERUS\ZERUSWIN.EXE (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.2, Build 9200
Time from start: 0 hours 6 mins 54 secs
Error occurred at: 01/02/2015, 16:11:10
Error description: Error BASE/1133 Bound error: array assign
Args:
[ 1] = N 15
Stack Calls
===========
Called from: source\classes\xbrowse.prg => TXBROWSE:GODOWN( 2975 )
Called from: source\classes\xbrowse.prg => TXBROWSE:MOUSEWHEEL( 3953 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:ACTIVATE( 286 )
Called from: C:\Desarro\ZerusGes\VersionActual\FUENTES\COMUNES\FW_FUNCSST1.PRG => BROWSEMY( 3014 )
Error # 2
-------------------- Internal Error Handling Information ---------------------
Subsystem Call ....: BASE
System Code .......: 1133
Default Status ....: .F.
Description .......: Bound error
Operation .........: array assign
Arguments .........: [ 1] = Type: N Val: 1
Involved File .....:
Dos Error Code ....: 0
Trace Through:
----------------
TXBROWSE:GOUP : 2,887 in Module: source\classes\xbrowse.prg
TXBROWSE:KEYDOWN : 2,310 in Module: source\classes\xbrowse.prg
TWINDOW:HANDLEEVENT : 0 in Module:
TCONTROL:HANDLEEVENT : 1,733 in Module: Source\Classes\control.prg
TXBROWSE:HANDLEEVENT : 12,612 in Module: source\classes\xbrowse.prg
_FWH : 3,341 in Module: Source\Classes\window.prg
DIALOGBOXINDIRECT : 0 in Module:
TDIALOG:ACTIVATE : 286 in Module: Source\Classes\dialog.prg
BUSCAREGISTRO : 764 in Module: C:\Desarro\ZerusGes\VersionActual\FUENTES\COMUNES\FW_FUNCSST3.PRG
//*********************************************************
código de construcción con txbrowse
//*********************************************************
FUNCTION BrowseLibre( oDlgSel ,vConBrw, oPanBrw, cAliTab,cFunEsp, vFunBrw,cManOrd,cActbus,fFunDCl,cTipCol,nFonBro )
LOCAL oCajDia, cCol, aItem , oBrwFW2 , K := 1 , oCol
LOCAL nColPos := 1
local aRowGrad, aSelGrad, aStdGrad
local n := RGB( 157, 248, 255 )
LOCAL aFont := Array( 5 )
LOCAL oFonBro
DEFINE FONT aFont[ 1 ] NAME "Arial" SIZE 8, 10
DEFINE FONT aFont[ 2 ] NAME "Times New Roman" SIZE 10, 16
DEFINE FONT aFont[ 3 ] NAME "Arial Black" SIZE 12, 10
DEFINE FONT aFont[ 4 ] NAME "Courier New" SIZE 14, 10 BOLD
DEFINE FONT aFont[ 5 ] NAME "Tahoma" SIZE 0, -12
IF nFonBro == NIL
oFonBro := M->oFonAc11
ELSEIF nFonBro == 1
oFonBro := aFont[ 1 ]
ELSEIF nFonBro == 2
oFonBro := aFont[ 2 ]
ELSEIF nFonBro == 3
oFonBro := aFont[ 3 ]
ELSEIF nFonBro == 4
oFonBro := aFont[ 4 ]
ELSEIF nFonBro == 5
oFonBro := aFont[ 5 ]
ELSE
oFonBro := M->oFonAc11
ENDIF
XbrNumFormat( 'E', .t. )
aRowGrad := { { .5, RGB( 232, 241, 252 ), RGB( 232, 241, 252 ) }, ;
{ .5, RGB( 210, 225, 244 ), RGB( 235, 243, 253 ) } }
aSelGrad := { { .5, RGB( 255, 255, 251 ), RGB( 255, 237, 178 ) }, ;
{ .5, RGB( 255, 218, 103 ), RGB( 255, 233, 162 ) } }
SELECT &cAliTab
IF cManOrd == NIL
(cAliTab)->( DBGOTOP() )
ENDIF
WITH OBJECT ( oBrwFW2 := TXBrowse():New( oPanBrw ) )
//:lKinetic := .F.
:nMarqueeStyle := MARQSTYLE_HIGHLCELL
:nColDividerStyle := LINESTYLE_BLACK
:nRowDividerStyle := LINESTYLE_BLACK
:lColDividerComplete := .T.
:nHeaderLines := 1
:nFooterLines := 1
:nDataLines := 1
:lFooter := .T.
:lFastEdit := .T.
:nFreeze := 1
:cAlias := cAliTab
:nStretchCol := 1
:nMarqueeStyle := 4
:bClrSelFocus := { || { CLR_GREEN, aSelGrad } }
:bClrRowFocus := { || { CLR_GREEN, aRowGrad } }
IF fFunDCl <> NIL
:bLDblClick := { || IF(fFunDCl=="FIN",oDlgSel:End() , &(fFunDCl) ) }
ENDIF
IF cActBus <> NIL // ALIAS(cAliTab) <> "LEC" .OR.
:bSeek := {|c| DBSEEK(UPPER(C) ) }
ENDIF
:bKeyDown := { | nKey | EvaluaMyTecla(oDlgSel ,cAliTab,oBrwFW2,@nKey,cFunEsp,vFunBrw ) }
FOR EACH aItem IN vConBrw
WITH OBJECT (oCol := oBrwFW2:AddCol())
<!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->DataFont := {|| oFonBro }
:bStrData := &( "{||" + aItem[ 1 ] + "}" )
SELECT &cAliTab // ASEGURAR SEGUIR EN EL ALIAS INICIAL
:cHeader := aItem[ 2 ]
:nHeadStrAlign := AL_CENTER
IF aItem[ 3 ] <> NIL
:cEditPicture := aItem[ 3 ]
ENDIF
IF aItem[ 5 ] <> NIL
:nWidth := aItem[ 5 ] * 8
ENDIF
IF aItem [ 4 ] // SI ES VERDADERO HABILITA CAPTURA CON GET
:nEditType = EDIT_GET
:lAutoSave := .F.
:bOnPostEdit := {|o, v, n| IIF ( n != VK_ESCAPE, ModificaColumna(oBrwFW2,cAliTab,SUBS(ALLTRIM(aItem[1]),ATNUM('>',aItem[1],1)+1),v,;
"VALID LOCAL",IF( LEN(aItem)>5,aItem[6],NIL),IF(LEN(aItem)>6,aItem[7],NIL),IF(LEN(aItem)>7,aItem[8],NIL) ), NIL ) }
ENDIF
END
:aCols[ :nFreeze ]:bClrStd := {|| { RGB(191,51,4) ,RGB(234,234,234) } } // CLR_WHITE, CLR_BLUE
NEXT nFor
IF cTipCol <> NIL
IF ALLTRIM( buscaDriverTabla(cAliTab) ) == "SQLRDD" .OR. ALLTRIM( buscaDriverTabla(cAliTab)) == "SQLEX"
:bClrStd := { || If( (cAliTab)->( recno() ) % 2 == 0, { CLR_WHITE, RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ELSE
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, { CLR_WHITE, RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ENDIF
ELSE
//:bClrStd := {|| {RGB(0,0,0), IIF( MOD( (cAliTab)->( ORDKEYNO() ) , 2 ) == 0, RGB(234,234,234), RGB(255,255,242) ) } }
IF ALLTRIM( buscaDriverTabla(cAliTab) ) == "SQLRDD" .OR. ALLTRIM( buscaDriverTabla(cAliTab)) == "SQLEX"
:bClrStd := { || If( (cAliTab)->( recno() ) % 2 == 0, { RGB(0,0,0), RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ELSE
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, { RGB(0,0,0), RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ENDIF
ENDIF
IF cAliTab == "TRA"
IF (cAliTab)->cEstadoTra == "I"
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, ;
{ RGB(0,0,0), IF((cAliTab)->cEstadoTra == "I", RGB(190,224,156),RGB( 234,234,234 )) },;
{ RGB(0,0,0), IF((cAliTab)->cEstadoTra == "I", RGB(190,224,156),RGB( 255,255,242 )) } ) }
ENDIF
ENDIF
//:aCols[ 10 ]:bClrStd := {|| { iif( Field->Salary > 100000, CLR_HRED, CLR_HBLUE), CLR_GRAY } }
//:aCols[ 10 ]:nDataStrAlign := AL_RIGHT
:cAlias := cAliTab
:CreateFromCode()
:SetRDD()
:SetFocus()
<!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->Client := oBrwFW2
:AdjClient()
:SelectCol(nColPos)
// :nMoveType = MOVE_NONE
// oDlgSel:oClient := oBrwFW2
END
//oBrwFW2:nMoveType = MOVE_NONE
RETURN BrowseLibre := oBrwFW2
Saludos
JOHNSON RUSSI
COLOMBIA |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | The error is not with xbrowse.
Error is here:
:bStrData := &( "{||" + aItem[ 1 ] + "}" )
With xbrowse or anywhere we should not create a codeblock using Loop Variable. Thiis is a well known principle since 16-bit Clipper days. Ignoring this fundamental principle results in error like this.
Example:
WRONG METHOD:
for n := 1 to 5
bCodeBlock := { || aArray[ n ] }
next
We should create codeblock in a different function using the principle of detatched variables.
CORRECT METHOD:
//------------
for n := 1 to 5
bCodeBlock := MakeCodeBlock( aArray, n )
next n
function MakeCodeBlock( aArray, n )
return { || aArray[ n ] }
//------------------
In your above example the correct way is :
//----------------
FOR EACH aItem IN vConBrw
<...........>
:bEditValue := MakeEditValueBlock( aItem[ 1 ] )
<...........>
NEXT
<.......>
static function MakeEditValueBlock( cField )
return &( "{ || " + cField + " }" ) |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | I see that you are creating columns in a loop because you wanted to use a common function to create browse from parameters.
XBROWSE command syntax provides a very simple and robust way of creating browse from parameters.
Create a multi-dim array like this:
aColInfo := { ;
{ cExpression1, [ cHeader1 ], [ cPicture1 ], [ nColWidth1 ], [lnAlign1], [cSortOrder1] }, ;
........
{ cExpressionN, [ cHeaderN ], [ cPictureN ], [ nColWidthN ], [lnAlignN], [cSortOrderN] } }
In each row, first column is compulsory. Columns 2 to 6 are optional. Each row can contain different number of elements. You can use NIL to skip a column. The row can also have more than 6 columns.
Now create xbrowse like this:
@ r, c XBROWSE OF oWnd DATASOURCE <cAlias> COLUMNS aColInfo <other clauses>
I am giving a simple example of creating xbrowse with paramters. You can improve upon it for your own requirements.
[code=fw:3om24ab6]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />REQUEST DBFCDX<br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oRs, oCn<br /> <span style="color: #00C800;">local</span> aColInfo<br /><br /> aColInfo := <span style="color: #000000;">{</span> ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"TRIM(FIRST)+', '+TRIM(LAST)"</span>, <span style="color: #ff0000;">"CustName"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Age"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"999"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"HireDate"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"dd-mmm-yyyy"</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, <span style="color: #00C800;">nil</span>, .t. <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"Salary/10000"</span>, <span style="color: #ff0000;">"Sal Thou"</span>, <span style="color: #ff0000;">"9999.9999"</span> <span style="color: #000000;">}</span> <span style="color: #000000;">}</span><br /><br /> USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #00C800;">NEW</span> <span style="color: #0000ff;">ALIAS</span> CUST SHARED VIA <span style="color: #ff0000;">"DBFCDX"</span><br /> SET ORDER <span style="color: #0000ff;">TO</span> TAG FIRST<br /><br /> ParamXBrowse<span style="color: #000000;">(</span> <span style="color: #ff0000;">"CUST"</span>, aColInfo, .t., .t. <span style="color: #000000;">)</span><br /><br /> CLOSE CUST<br /><br /> oCn := FW_OpenAdoConnection<span style="color: #000000;">(</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\x</span>brtest.mdb"</span> <span style="color: #000000;">)</span><br /> oRs := FW_OpenRecordSet<span style="color: #000000;">(</span> oCn, <span style="color: #ff0000;">"CUSTOMER"</span> <span style="color: #000000;">)</span><br /> ParamXBrowse<span style="color: #000000;">(</span> oRs, aColInfo, .t., .t. <span style="color: #000000;">)</span><br /> oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oCn:<span style="color: #000000;">Close</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ParamXBrowse<span style="color: #000000;">(</span> cDataSource, aColInfo, lAutosort, lFastEdit <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrw, oFont<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">500</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br /> @ <span style="color: #000000;">10</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-10</span>,<span style="color: #000000;">-10</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> DATASOURCE cDataSource COLUMNS aColInfo ;<br /> CELL LINES NOBORDER<br /><br /> AEval<span style="color: #000000;">(</span> aColInfo, <span style="color: #000000;">{</span> |a,i| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> Len<span style="color: #000000;">(</span> a <span style="color: #000000;">)</span> > <span style="color: #000000;">6</span> .and. a<span style="color: #000000;">[</span> <span style="color: #000000;">7</span> <span style="color: #000000;">]</span> == .t., oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> i <span style="color: #000000;">]</span>:<span style="color: #000000;">nEditType</span> := EDIT_GET, <span style="color: #00C800;">nil</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> WITH OBJECT oBrw<br /> :<span style="color: #000000;">nStretchCol</span> := STRETCHCOL_WIDEST<br /> :<span style="color: #000000;">lAutoSort</span> := <span style="color: #000000;">(</span> lAutoSort == .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">lFastEdit</span> := <span style="color: #000000;">(</span> lFastEdit == .t. <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> END<br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /> <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:3om24ab6]
[url=https://imageshack.com/i/idXoRNnRj:3om24ab6][img:3om24ab6]http://imagizer.imageshack.us/v2/xq90/661/XoRNnR.jpg[/img:3om24ab6][/url:3om24ab6] |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | nageswaragunupudi ..
Thanks for your reply, and implement it according to your instructions, I'll put in evidence with my clients and hope for results
regards
Gracias por su respuesta, ya lo implemente según sus indicaciones, lo pondré en pruebas con mis clientes y esperare los resultados
Saludos
Johnson Russi |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Antonio.
El error persiste aunque es esporádico, ya realice el cambio de:
:bStrData := &( "{||" + aItem[ 1 ] + "}" )
por esta forma:
:bStrData := MakeEditValueBlock( aItem[ 1 ] )
Este error se esta presentando desde la actualización de mi versión de fwh 10.04 por 14.12
Anexo error.log
Saludos
Johnson Russi
Application
===========
Path and name: D:\RUSSOFT\zerus\zeruswin.exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.2, Build 9200
Time from start: 7 hours 55 mins 45 secs
Error occurred at: 01/14/2015, 16:04:49
Error description: Error BASE/1133 Bound error: array assign
Args:
[ 1] = N 14
Stack Calls
===========
Called from: source\classes\xbrowse.prg => TXBROWSE:GODOWN( 2975 )
Called from: source\classes\xbrowse.prg => TXBROWSE:MOUSEWHEEL( 3953 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:ACTIVATE( 286 )
Called from: C:\Desarro\ZerusGes\VersionActual\FUENTES\COMUNES\FW_FUNCSST1.PRG => BROWSEMY( 3018 ) |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Not correct:
[code=fw:2n7msok5]<div class="fw" id="{CB}" style="font-family: monospace;">:<span style="color: #000000;">bStrData</span> := MakeEditValueBlock<span style="color: #000000;">(</span> aItem<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> </div>[/code:2n7msok5]
This is correct:
[code=fw:2n7msok5]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aItem <span style="color: #000000;">)</span><br />:<span style="color: #000000;">bEditValue</span> := MakeEditValueBlock<span style="color: #000000;">(</span> aItem, n <span style="color: #000000;">)</span><br />...<br />...<br /><span style="color: #00C800;">next</span> n<br />...<br />...<br /><br /><span style="color: #B900B9;">//--------------</span><br /><span style="color: #00C800;">function</span> MakeEditValueBlock<span style="color: #000000;">(</span> aArray, n <span style="color: #000000;">)</span><br /><span style="color: #00C800;">return</span> &<span style="color: #000000;">(</span> <span style="color: #ff0000;">"{ || "</span> + aArray<span style="color: #000000;">[</span> n <span style="color: #000000;">]</span> + <span style="color: #ff0000;">" }"</span> <span style="color: #000000;">)</span><br /><span style="color: #B900B9;">//---------------</span><br /><br /> </div>[/code:2n7msok5] |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Ok.
Hare la corrección y lo pondré en prueba
Gracias |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Realice los cambios , pero aun se presenta el error esporádicamente
Application
===========
Path and name: D:\ZERUS\ZERUSWIN.EXE (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.2, Build 9200
Time from start: 0 hours 0 mins 37 secs
Error occurred at: 01/21/2015, 19:39:58
Error description: Error BASE/1133 Bound error: array assign
Args:
[ 1] = N 15
Stack Calls
===========
Called from: source\classes\xbrowse.prg => TXBROWSE:GODOWN( 2975 )
Called from: source\classes\xbrowse.prg => TXBROWSE:VSCROLL( 2800 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:ACTIVATE( 286 )
Called from: C:\Desarro\ZerusGes\VersionActual\FUENTES\COMUNES\FW_FUNCSST1.PRG => BROWSEMY( 2979 )
//*************************
FUNCTION BROWSEMY()
....
ACTIVATE DIALOG oDlgSelX CENTER ;
ON INIT ( oDlgSelX :SetFocus(),;
->FILA 2979 oBrwCon := BrowseLibre(oDlgSelX , vConBrw, oPanBrw, cAliTab,cFunEsp,vFunBrw, cManOrd,cActbus,fFunDCl) , .F. )
RETURN
//**************************
FUNCTION BrowseLibre( oDlgSel ,vConBrw, oPanBrw, cAliTab,cFunEsp, vFunBrw,cManOrd,cActbus,fFunDCl,cTipCol,nFonBro )
LOCAL oCajDia, cCol, aItem , oBrwFW2 , K := 1 , oCol
LOCAL nColPos := 1
local aRowGrad, aSelGrad, aStdGrad
local n := RGB( 157, 248, 255 )
LOCAL aFont := Array( 5 )
LOCAL oFonBro
DEFINE FONT aFont[ 1 ] NAME "Arial" SIZE 8, 10
DEFINE FONT aFont[ 2 ] NAME "Times New Roman" SIZE 10, 16
DEFINE FONT aFont[ 3 ] NAME "Arial Black" SIZE 12, 10
DEFINE FONT aFont[ 4 ] NAME "Courier New" SIZE 14, 10 BOLD
DEFINE FONT aFont[ 5 ] NAME "Tahoma" SIZE 0, -12
IF nFonBro == NIL
oFonBro := M->oFonAc11
ELSEIF nFonBro == 1
oFonBro := aFont[ 1 ]
ELSEIF nFonBro == 2
oFonBro := aFont[ 2 ]
ELSEIF nFonBro == 3
oFonBro := aFont[ 3 ]
ELSEIF nFonBro == 4
oFonBro := aFont[ 4 ]
ELSEIF nFonBro == 5
oFonBro := aFont[ 5 ]
ELSE
oFonBro := M->oFonAc11
ENDIF
XbrNumFormat( 'E', .t. )
aRowGrad := { { .5, RGB( 232, 241, 252 ), RGB( 232, 241, 252 ) }, ;
{ .5, RGB( 210, 225, 244 ), RGB( 235, 243, 253 ) } }
aSelGrad := { { .5, RGB( 255, 255, 251 ), RGB( 255, 237, 178 ) }, ;
{ .5, RGB( 255, 218, 103 ), RGB( 255, 233, 162 ) } }
SELECT &cAliTab
IF cManOrd == NIL
(cAliTab)->( DBGOTOP() )
ENDIF
WITH OBJECT ( oBrwFW2 := TXBrowse():New( oPanBrw ) )
//:lKinetic := .F.
:nMarqueeStyle := MARQSTYLE_HIGHLCELL
:nColDividerStyle := LINESTYLE_BLACK
:nRowDividerStyle := LINESTYLE_BLACK
:lColDividerComplete := .T.
:nHeaderLines := 1
:nFooterLines := 1
:nDataLines := 1
:lFooter := .T.
:lFastEdit := .T.
:nFreeze := 1
:cAlias := cAliTab
:nStretchCol := 1
:nMarqueeStyle := 4
:bClrSelFocus := { || { CLR_GREEN, aSelGrad } }
:bClrRowFocus := { || { CLR_GREEN, aRowGrad } }
IF fFunDCl <> NIL
:bLDblClick := { || IF(fFunDCl=="FIN",oDlgSel:End() , &(fFunDCl) ) }
ENDIF
IF cActBus <> NIL // ALIAS(cAliTab) <> "LEC" .OR.
:bSeek := {|c| DBSEEK(UPPER(C) ) }
ENDIF
:bKeyDown := { | nKey | EvaluaMyTecla(oDlgSel ,cAliTab,oBrwFW2,@nKey,cFunEsp,vFunBrw ) }
FOR EACH aItem IN vConBrw
WITH OBJECT (oCol := oBrwFW2:AddCol())
<!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->DataFont := {|| oFonBro }
:bStrData := MakeEditValueBlock(aItem, 1 ) // cambio según recomendación
:cHeader := aItem[ 2 ]
//:Cargo := aItem[ 1 ]
:nHeadStrAlign := AL_CENTER
IF aItem[ 3 ] <> NIL
:cEditPicture := aItem[ 3 ]
ENDIF
//
IF aItem[ 5 ] <> NIL
:nWidth := aItem[ 5 ] * 8
ENDIF
//
IF aItem [ 4 ] // SI ES VERDADERO HABILITA CAPTURA CON GET
:nEditType = EDIT_GET
:lAutoSave := .F.
:bOnPostEdit := {|o, v, n| IIF ( n != VK_ESCAPE, ModificaColumna(oBrwFW2,cAliTab,SUBS(ALLTRIM(aItem[1]),ATNUM('>',aItem[1],1)+1),v,;
"VALID LOCAL",IF( LEN(aItem)>5,aItem[6],NIL),IF(LEN(aItem)>6,aItem[7],NIL),IF(LEN(aItem)>7,aItem[8],NIL) ), NIL ) }
ENDIF
END
:aCols[ :nFreeze ]:bClrStd := {|| { RGB(191,51,4) ,RGB(234,234,234) } } // CLR_WHITE, CLR_BLUE
NEXT nFor
IF cTipCol <> NIL
// :bClrStd := {|| { CLR_WHITE, IIF( MOD( (cAliTab)->( ORDKEYNO() ) , 2 ) == 0, RGB(234,234,234), RGB(255,255,242) ) } }
IF ALLTRIM(M->cTipSer) == "SQLRDD" .OR. ALLTRIM(M->cTipSer) == "SQLEX"
:bClrStd := { || If( (cAliTab)->( recno() ) % 2 == 0, { CLR_WHITE, RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ELSE
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, { CLR_WHITE, RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ENDIF
ELSE
//:bClrStd := {|| {RGB(0,0,0), IIF( MOD( (cAliTab)->( ORDKEYNO() ) , 2 ) == 0, RGB(234,234,234), RGB(255,255,242) ) } }
IF ALLTRIM(M->cTipSer) == "SQLRDD" .OR. ALLTRIM(M->cTipSer) == "SQLEX"
:bClrStd := { || If( (cAliTab)->( recno() ) % 2 == 0, { RGB(0,0,0), RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ELSE
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, { RGB(0,0,0), RGB( 234,234,234 ) }, { RGB(0,0,0), RGB( 255,255,242 ) } ) }
ENDIF
ENDIF
IF cAliTab == "TRA"
IF (cAliTab)->cEstadoTra == "I"
:bClrStd := { || If( oBrwFW2:KeyNo() % 2 == 0, ;
{ RGB(0,0,0), IF((cAliTab)->cEstadoTra == "I", RGB(190,224,156),RGB( 234,234,234 )) },;
{ RGB(0,0,0), IF((cAliTab)->cEstadoTra == "I", RGB(190,224,156),RGB( 255,255,242 )) } ) }
ENDIF
ENDIF
//:aCols[ 10 ]:bClrStd := {|| { iif( Field->Salary > 100000, CLR_HRED, CLR_HBLUE), CLR_GRAY } }
//:aCols[ 10 ]:nDataStrAlign := AL_RIGHT
:cAlias := cAliTab
:CreateFromCode()
:SetRDD()
:SetFocus()
<!-- s:o --><img src="{SMILIES_PATH}/icon_surprised.gif" alt=":o" title="Surprised" /><!-- s:o -->Client := oBrwFW2
:AdjClient()
:SelectCol(nColPos)
// oDlgSel:oClient := oBrwFW2
END
RETURN BrowseLibre := oBrwFW2
//*********************************************************************************
STATIC FUNCTION MakeEditValueBlock(vVecIte,nNroIte)
RETURN &("{||" + vVecIte[nNroIte] + "}") |
errores de xbrowse ??? NO SOLUCIONADO ??? AYUDA | Antonio ... buenas tardes
Anexo mas errores de xbrowse.. (tres)
he modificado mi función para armar el browse según indicaciones ,,, y el error persiste
1 ...******************************************
Application
===========
Path and name: Z:\ZERUS\zeruswin.exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.1, Build 7600
Time from start: 0 hours 0 mins 32 secs
Error occurred at: 02/12/2015, 11:35:53
Error description: Error BASE/1133 Bound error: array assign
Args:
[ 1] = N 1
Stack Calls
===========
Called from: source\classes\xbrowse.prg => TXBROWSE:GOUP( 2887 )
Called from: source\classes\xbrowse.prg => TXBROWSE:KEYDOWN( 2310 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:ACTIVATE( 286 )
2...************************************
Application
===========
Path and name: Y:\RUSSOFT\ZERUS\zeruswin.exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.1, Build 7601 Service Pack 1
Time from start: 1 hours 43 mins 30 secs
Error occurred at: 02/12/2015, 10:28:33
Error description: Error BASE/1111 Argument error: LEN
Args:
[ 1] = U
Stack Calls
===========
Called from: => LEN( 0 )
Called from: source\classes\xbrowse.prg => (b)TXBROWSE:TXBROWSE( 566 )
Called from: => TXBROWSE:COLATPOS( 0 )
Called from: source\classes\xbrowse.prg => (b)TXBROWSE:TXBROWSE( 568 )
Called from: => TXBROWSE:SELECTEDCOL( 0 )
Called from: source\classes\xbrowse.prg => TXBROWSE:PAINT( 1390 )
Called from: source\classes\xbrowse.prg => TXBROWSE:DISPLAY( 1368 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1699 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:ACTIVATE( 286 )
3... *******************************
Application
===========
Path and name: Z:\RUSSOFT\ZERUS\zeruswin.exe (32 bits)
Size: ********* bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20141202)
FiveWin Version: FWHX 14.12
Windows version: 6.2, Build 9200
Time from start: 0 hours 6 mins 50 secs
Error occurred at: 02/11/2015, 17:53:12
Error description: Error BASE/1084 Argument error: /
Args:
[ 1] = N 371
[ 2] = U
Stack Calls
===========
Called from: source\classes\xbrowse.prg => TXBROWSE:MOUSEROWPOS( 3182 )
Called from: source\classes\xbrowse.prg => TXBROWSE:MOUSEMOVE( 3567 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: Source\Classes\control.prg => TCONTROL:HANDLEEVENT( 1733 )
Called from: source\classes\xbrowse.prg => TXBROWSE:HANDLEEVENT( 12612 )
Called from: Source\Classes\window.prg => _FWH( 3345 )
Called from: => SYSREFRESH( 0 )
Called from: Source\Classes\dialog.prg => TDIALOG:END( 526 ) |
errores en compilacion | He instalado la Version 11 y Estoy compilando el ejemplo de la Carpeta makes\bormake\alert.prg
y me da un monton de errores y no se por donde comenzar
Si alguien me puede orientar
Gracias
// FiveWin Clipper Alert replacement
#include "FiveWin.ch"
//-----------------------------------------------------------------//
function Main()
local nOption
nOption = Alert( "take an option",;
{ "&One", "&Two", "T&hree" },;
"Please, select" )
MsgInfo( nOption )
Another() // function located at one.prg
MsgInfo( More() ) // More is located at two.c
return nil
//-----------------------------------------------------------------//
procedure AppSys // XBase++ requirement
return
[b:1o95bcvh]Utilizo este Build que es muy antiguo y posiblemente este aqui el problema[/b:1o95bcvh]
:BUILD
make -f %1.mak %2 %3 > make.log
if errorlevel 1 goto BUILD_ERR
:BUILD_OK
if exist %1.exe %1.exe
goto EXIT
:BUILD_ERR
notepad make.log
goto EXIT
:EXIT
[b:1o95bcvh]Alert.mak[/b:1o95bcvh]
#Borland make sample, (c) FiveTech Software 2005-2009
HBDIR=c:\programacion\fw11\harbour
BCDIR=c:\Borland\bcc582
FWDIR=c:\programacion\fw11\fwh
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\
#important: Use Uppercase for filenames extensions, in the next two rules!
PRG = \
alert.PRG \
one.PRG
C = \
two.C
PROJECT : Alert.exe
Alert.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc
echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp
Alert.res : Alert.rc
$(BCDIR)\bin\brc32.exe -r Alert.rc
[b:1o95bcvh]Y me sale la siguiente lista[/b:1o95bcvh]
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
c:\programacion\fw11\harbour\bin\harbour .\alert.PRG /L /N /W /Oobj\ /Ic:\programacion\fw11\fwh\include;c:\programacion\fw11\harbour\include
c:\Borland\bcc582\bin\bcc32 -c -tWM -Ic:\programacion\fw11\harbour\include -oobj\alert obj\alert.c
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
obj\alert.c:
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 56: Unable to open include file 'stdarg.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 57: Unable to open include file 'stdio.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 58: Unable to open include file 'stdlib.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 59: Unable to open include file 'string.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 60: Unable to open include file 'limits.h'
Error E2209 c:\programacion\fw11\harbour\include\hbsetup.h 57: Unable to open include file 'limits.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 77: Unable to open include file 'stdint.h'
Warning W8017 c:\programacion\fw11\harbour\include\hbdefs.h 574: Redefinition of 'HB_LONG_LENGTH' is not identical
Error E2257 c:\programacion\fw11\harbour\include\hbdefs.h 605: , expected
Error E2141 c:\programacion\fw11\harbour\include\hbdefs.h 1572: Declaration syntax error
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1573: ) expected
Error E2141 c:\programacion\fw11\harbour\include\hbdefs.h 1574: Declaration syntax error
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1575: ) expected
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1576: ) expected
Error E2147 c:\programacion\fw11\harbour\include\hbdefs.h 1577: 'wchar_t' cannot start a parameter declaration
Error E2451 obj\alert.c 23: Undefined symbol 'NULL'
Error E2141 obj\alert.c 23: Declaration syntax error
Error E2190 obj\alert.c 23: Unexpected }
Error E2040 obj\alert.c 23: Declaration terminated incorrectly
Error E2190 obj\alert.c 32: Unexpected }
Error E2109 obj\alert.c 32: Not an allowed type in function hb_vm_SymbolInit_ALERT
*** 20 errors in Compile ***
** error 1 ** deleting .\obj\alert.OBJ |
errores en compilacion | He instalado la Version 11 y Estoy compilando el ejemplo de la Carpeta makes\bormake\alert.prg
y me da un monton de errores y no se por donde comenzar
Si alguien me puede orientar
Gracias
// FiveWin Clipper Alert replacement
#include "FiveWin.ch"
//-----------------------------------------------------------------//
function Main()
local nOption
nOption = Alert( "take an option",;
{ "&One", "&Two", "T&hree" },;
"Please, select" )
MsgInfo( nOption )
Another() // function located at one.prg
MsgInfo( More() ) // More is located at two.c
return nil
//-----------------------------------------------------------------//
procedure AppSys // XBase++ requirement
return
Utilizo este Build que es muy antiguo y posiblemente este aqui el problema
:BUILD
make -f %1.mak %2 %3 > make.log
if errorlevel 1 goto BUILD_ERR
:BUILD_OK
if exist %1.exe %1.exe
goto EXIT
:BUILD_ERR
notepad make.log
goto EXIT
:EXIT
Alert.mak
#Borland make sample, (c) FiveTech Software 2005-2009
HBDIR=c:\programacion\fw11\harbour
BCDIR=c:\Borland\bcc582
FWDIR=c:\programacion\fw11\fwh
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\
#important: Use Uppercase for filenames extensions, in the next two rules!
PRG = \
alert.PRG \
one.PRG
C = \
two.C
PROJECT : Alert.exe
Alert.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res
echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj obj\two.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc
echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
rem Uncomment these two lines to use Advantage RDD
rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp
Alert.res : Alert.rc
$(BCDIR)\bin\brc32.exe -r Alert.rc
Y me sale la siguiente lista
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
c:\programacion\fw11\harbour\bin\harbour .\alert.PRG /L /N /W /Oobj\ /Ic:\programacion\fw11\fwh\include;c:\programacion\fw11\harbour\include
c:\Borland\bcc582\bin\bcc32 -c -tWM -Ic:\programacion\fw11\harbour\include -oobj\alert obj\alert.c
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
obj\alert.c:
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 56: Unable to open include file 'stdarg.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 57: Unable to open include file 'stdio.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 58: Unable to open include file 'stdlib.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 59: Unable to open include file 'string.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 60: Unable to open include file 'limits.h'
Error E2209 c:\programacion\fw11\harbour\include\hbsetup.h 57: Unable to open include file 'limits.h'
Error E2209 c:\programacion\fw11\harbour\include\hbdefs.h 77: Unable to open include file 'stdint.h'
Warning W8017 c:\programacion\fw11\harbour\include\hbdefs.h 574: Redefinition of 'HB_LONG_LENGTH' is not identical
Error E2257 c:\programacion\fw11\harbour\include\hbdefs.h 605: , expected
Error E2141 c:\programacion\fw11\harbour\include\hbdefs.h 1572: Declaration syntax error
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1573: ) expected
Error E2141 c:\programacion\fw11\harbour\include\hbdefs.h 1574: Declaration syntax error
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1575: ) expected
Error E2293 c:\programacion\fw11\harbour\include\hbdefs.h 1576: ) expected
Error E2147 c:\programacion\fw11\harbour\include\hbdefs.h 1577: 'wchar_t' cannot start a parameter declaration
Error E2451 obj\alert.c 23: Undefined symbol 'NULL'
Error E2141 obj\alert.c 23: Declaration syntax error
Error E2190 obj\alert.c 23: Unexpected }
Error E2040 obj\alert.c 23: Declaration terminated incorrectly
Error E2190 obj\alert.c 32: Unexpected }
Error E2109 obj\alert.c 32: Not an allowed type in function hb_vm_SymbolInit_ALERT
*** 20 errors in Compile ***
** error 1 ** deleting .\obj\alert.OBJ |
errores en compilacion | Intenta a compilar los archivos de la carpeta \samples primero...
Buildh tutor01
o
Buildx tutor01
dependiendo de si usar Harbour o xHarbour... No olvides de colocar las Rutas correctas en el .BAT antes de compilar..... |
errores en compilacion | Bayron
He compilado los otros prg. y no he tenido problemas, pero con este si.
No obstante gracias por tu respuesta. |
errores en compilacion | Parece que no has definido los ficheros de configuración de Borland.
Hazlo como se explica aqui:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=13098">viewtopic.php?f=17&t=13098</a><!-- l --> |
errores en compilacion | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=22660&p=120941#p120941">viewtopic.php?f=6&t=22660&p=120941#p120941</a><!-- l --> |
errores en compilacion | Antonio
Tenias razon en el Bcc32.cfg estaba el error yo tenia c:Borland\bcc582\include y al revisarlos me he dado cuenta.
lo he corregido y ahora me da el siguiente
echo c:\Borland\bcc582\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\Borland\bcc582\lib\psdk\msimg32.lib + >> b32.bc
echo c:\Borland\bcc582\lib\psdk\rasapi32.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
c:\Borland\bcc582\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external 'GetModuleFileNameExA' referenced from C:\PROGRAMACION\FW11\FWH\LIB\FIVEH.LIB|GETTASKS
** error 2 ** deleting Alert.exe
Muchas gracias por contestarme Antonio
Saludos |
errores en compilacion | te falta enlazar la libreria psapi.lib de Borland |
errores en compilacion | Antonio
He hecho lo que me dices como me daba este error he vuelto a instalar el Bcc582 pero nada sigue el mismo error
echo c:\Borland\bcc582\lib\psdk\iphlpapi.lib + >> b32.bc
echo c:\Borland\bcc582\lib\psdk\msimg32.lib + >> b32.bc
echo c:\Borland\bcc582\lib\psdk\rasapi32.lib + >> b32.bc
echo c:\Borland\bcc582\lib\pdsk\psapi.lib, >> b32.bc
IF EXIST Alert.res echo Alert.res >> b32.bc
c:\Borland\bcc582\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Unable to open file 'PSAPI.LIB'
** error 2 ** deleting Alert.exe |
errores en compilacion | Tienes un pequeño error en esta línea:
echo c:\Borland\bcc582\lib\pdsk\psapi.lib, >> b32.bc
has escrito pdsk en vez de psdk |
errores en compilacion | Antonio
las prisas traen estos errores.
Lo he corregido y al fin ha funcionado correctamente.
Muchas a gracias por todo Antonio
Saludos |
errori casuali saltuari | ho saltuariamente errori di dati errati tipo argument error in funzioni trim, left, calcoli matematici, workare not in use quando il dbf è ancora aperto (uso dbfntx), ecc.
non sono errori ripetibili, per cui presumo che si alterino dati in memoria.
stesso problema in computer diversi window 7 o 10 32 e 64 bit
anche passando a compilare da xharbour + bcc5.1 con harbour + vc2015 o 2017 il problema rimane.
come si può affrontare questo problema?
qualche post già esistente? ma non so come cercare.
grazie |
errori casuali saltuari | Probabilmente avrai già risolto, comunque ho avuto anche io gli stessi problemi saltuari usando DBFNTX. In sintesi il problema era un bug di una versione di FWH poi upgradando è andato ok.
Qui trovi il post completo: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=36140">viewtopic.php?f=3&t=36140</a><!-- l --> |
errors when triying to link SQLRDD | Hi,
I am trying to evaluate SQLRDD from xHarbour.com and I get some errors:
[quote:1xqbtvb2]Error: Unresolved external '_HB_FUN_HB_JSONENCODE' referenced from C:\XHB2\LIB\BCC\SQLBCC58.LIB|sqlrdd2
Error: Unresolved external 'SQLInstallerError' referenced from C:\XHB2\LIB\BCC\SQLBCC58.LIB|sqlsrodbc
Error: Unresolved external 'SQLConfigDataSource' referenced from C:\XHB2\LIB\BCC\SQLBCC58.LIB|sqlsrodbc
* Linking errors *[/quote:1xqbtvb2]
Y use BCC 582 and xHarbour.org build 1.2.1.
Also, I don´t have at bcc52\lib\psk\odbccp32.lib
Any help?.
Thanks. |
errorsys | I tried to compile and link for the first time a fivetech program with harbour and bcc55 to become a 32 bits program.
The compiling and linking gave no problem but when opening some functions I have the following error message:
Error base/1081 Argument error:+ from Errorsys, line:0
In the 16 bits program i do not have that kind of error messages.
I thank you for any answer
many greetings |
errorsys | Jds,
What FWH version are you using ?
Please compile FWH\source\function\errsysw.prg as another PRG of your application, so when the error happens we can see the line number where it fails, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
errorsys | I use the FWH 6.12 dowloaded from the FTS website and de Harbour and Bcc55 also dowloaded.
Do You want I incoporate the errsysw.prg in my global program as a function?? |
errorsys | Can I send you (how?) a copy of my "simple" CA Clipper-FW program that run very well in 16 bits? |
errorsys | Jds,
If your application uses several PRG files, then add FWH source\function\errsysw.prg as another PRG of your app.
You can email me to <!-- e --><a href="mailto:alinares@fivetechsoft.com">alinares@fivetechsoft.com</a><!-- e --> Please create a ZIP file and rename it as *.ZOP so gmail does not block the attached file, thanks |
errorsys | I do not use prgs in my programs.I send you the zipt (zop) faggwin32.prg file |
errorsys | Jds,
I need the DBFs that your use from your PRG too |
errorsysw | Hola foro,
Tengo el siguiente problema, estoy traspasando una aplicación de fw a fwh25, y me ocurre lo siguiente, tengo una opción que pinta un grafico en una ventana, y cuando los datos que se buscan en el fichero para comparar suele pasar que no hayan datos, y entonces se genera el error de division por cero que segun el errorsysw debería devolver el control a la función con un retorno de cero, pues sí, devuelve el control, pero cuando esto es seguido + de 3 veces, se sale del programa sin aviso alguno, alguien podría decirme que puede pasar.
Saludos.
Manolo |
errorsysw.prg | When I compile errorsysw.prg
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6703)
Copyright 1999-2010, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
errsysw.prg(377) Warning W0028 Unreachable code
0 error
here the piece of code
363 static function DoBreak()
364
365 BREAK
366
377 return nil
I compile with these parameters
SET HARBOURCMD=/a /es2 /gc0 /m /n /q /w2 /wb-
I modified errorsysw.prg with these simple controls
IF M->cUte_dos <> NIL
cErrorFile := M->cUte_dos + "_error.log"
ELSE
cErrorFile := "error.log"
ENDIF
MemoWrit( cErrorFile, cErrorLog ) |
errorsysw.prg | Marco
change /w2 by /w |
errorsysw.prg | When I open files ( tDatabase via tData ) I assign a default alias. Of course, we open the file using the filename. The default alias ( calculated ) allows us to open the same file different times without a problem.
When working with errorsysw, we have the following code to list dbf files:
[code=fw:3i5ezb71]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> cErrorLog += CRLF + <span style="color: #ff0000;">"DataBases in use"</span> + CRLF + <span style="color: #ff0000;">"================"</span> + CRLF<br /> <span style="color: #00C800;">for</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">255</span><br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// cErrorLog += (Alias(n))->( cFile ) + CRLF</span><br /> cErrorLog += CRLF + Str<span style="color: #000000;">(</span> n, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">": "</span> + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <span style="color: #0000ff;">Select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> == n,<span style="color: #ff0000;">"=> "</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">)</span> + ;<br /> PadR<span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span>, <span style="color: #000000;">15</span> <span style="color: #000000;">)</span> + Space<span style="color: #000000;">(</span> <span style="color: #000000;">20</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"RddName: "</span> + ;<br /> <span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> RddName<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + CRLF<br /> cErrorLog += <span style="color: #ff0000;">" =============================="</span> + CRLF<br /> cErrorLog += <span style="color: #ff0000;">" RecNo RecCount BOF EOF"</span> + CRLF<br /> cErrorLog += <span style="color: #ff0000;">" "</span> + Transform<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> RecNo<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"9999999"</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">" "</span> + Transform<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> RecCount<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, <span style="color: #ff0000;">"9999999"</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">" "</span> + cValToChar<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> BoF<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + ;<br /> <span style="color: #ff0000;">" "</span> + cValToChar<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> <span style="color: #0000ff;">Alias</span><span style="color: #000000;">(</span> n <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> EoF<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + CRLF + CRLF<br /> </div>[/code:3i5ezb71]
Because the default ( generated ) Alias is random, it does not help me identify the involved dbf on the error log. We not only pass the cAlias but we also pass cFile ( the file name that is actually opened ). I would like to include the actual file name, but can't seem to find a way to pull it out in this situation.
Note the commented line in the code. That forces the error program to quit without displaying anything.
Any suggestions will be greatly appreciated. |
errorsysw.prg | ( cAlias )->( DBINFO( DBI_FULLPATH ) ) --> cFileName
You need to include "dbinfo.ch" |
errorsysw.prg | Thank you. That works perfectly. |
errror en el ejemplo invoices.prg | Hola,
Compilo el ejemplo y hago click en los menús (archivo, edición, etc) y el programa se cuelga, diciendo que invoices.exe dejó de funcionar.
Alguna pista?
Muchas gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
errror on :bCellToolTip | Itry to modify into
:bCellToolTip := { |oCol|If(!Empty(oCol:Value),oCol:cHeader + " " + oBrw:aRow[ 1 ] + CRLF + if(oCol:Value,"Occupato","Libero" ),) }
it not make error but now i not see the tooltip |
errror on :bCellToolTip | [b:2k5p1qyg]correct with[/b:2k5p1qyg]
:bCellToolTip := { |oCol|If(valtype(oCol:Value)="L",oCol:cHeader + " " + oBrw:aRow[ 1 ] + CRLF + if(oCol:Value,"Occupato","Libero" ),) } |
errror on :bCellToolTip | I have an error on :bCellToolTip when the final user move the mouse on a cell where is not the bitmap
Please the picture pls
[img:f87x9ous]https://s33.postimg.cc/cnb3p61m7/image.png[/img:f87x9ous]
it happened when I move the mouse on 31 June or 31 september ( these day not exist)
I have this code
[code=fw:f87x9ous]<div class="fw" id="{CB}" style="font-family: monospace;"> @ <span style="color: #000000;">05</span>,<span style="color: #000000;">05</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">470</span>, <span style="color: #000000;">90</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /> ARRAY aRes<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #0000ff;">AUTOCOLS</span> LINES CELL NOBORDER<br /><br /> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>:<span style="color: #000000;">cHeader</span> := <span style="color: #ff0000;">'Mese'</span><br /><br /> <span style="color: #00C800;">for</span> n := <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">32</span><br /> WITH OBJECT oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> n <span style="color: #000000;">]</span><br /> :<span style="color: #000000;">nWidth</span> := <span style="color: #000000;">24</span><br /> :<span style="color: #000000;">cHeader</span> := LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">SetCheck</span><span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\l</span>evel2.bmp'</span>, <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\l</span>evel1.bmp'</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> :<span style="color: #000000;">bCellToolTip</span> := <span style="color: #000000;">{</span> |oCol| oCol:<span style="color: #000000;">cHeader</span> + <span style="color: #ff0000;">" "</span> + oBrw:<span style="color: #000000;">aRow</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> + CRLF + <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oCol:<span style="color: #000000;">Value</span>,<span style="color: #ff0000;">"Occupato"</span>,<span style="color: #ff0000;">"Libero"</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> END<br /> <span style="color: #00C800;">next</span></div>[/code:f87x9ous] |
errsysw | Amigos tube que incluir el archivo errsysw.prg en mis proyectos para que reporte los errores de ejecución, se puede hacer algo para que no tenga que incluirlos en todos mis proyectos? gracias. |
errsysw | Debería incluirse automaticamente. Prueba el ejemplo samples\TestErro.prg |
errsysw | [quote="Antonio Linares"]Debería incluirse automaticamente. Prueba el ejemplo samples\TestErro.prg[/quote]
Antonio, a ver si no entiendo mal este parche o programa como quieramos decirle se debe agregar? si es asi lo estoy haciendo, o sea agrego ese archivo a mis proyectos., mi pregunta iva dirijida y se puede hacer algo para no tener que incluirlo cada vez a mis proyectos. |
errsysw | Gustavo,
Y si se produce un error y no tienes gestor de errores, que pasaría ? |
errsysw | [quote="Antonio Linares"]Gustavo,
Y si se produce un error y no tienes gestor de errores, que pasaría ?[/quote]
Antonio:
Usando solo el FIvewin cuando se producia un error saltaba en pantalla el error y en que linea se producia.
Mi pregunta esta AHORA referida al FWH con el xHarbour, que est error no salta y me dijeron que sumara ese archivo para que realice esta operación, mi pregunta es: hay alguna forma para que no tenga que esta incluyendo este archivo a todas mis aplicaciones?
Espero que me hayas entendido. |
errsysw | Prueba el ejemplo samples\TestErro.prg.
Debería saltar el gestor de errores automaticamente, ó posiblemente estés usando las librerías en un orden equivocado. |
errsysw | Best practice to prevent a zero divisor error?
Thanks in advance
Otto |
errsysw | Otto,
We have just published a new FWPPC build that properly manages the zero divisor error:
[code:8urr1uo4]
if oError:GenCode == EG_ZERODIV
return 0
end
[/code:8urr1uo4] |
errsysw | With the new FWPP I get the following errors.
Regards
Otto
inventur.c
Creating library inventur.lib and object inventur.exp
FiveCEC.lib(DRIVES.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(CTRL2CHR.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(GETFILE.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(HARBOURC.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(MGETCREA.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(NOTIFY.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(WNDSAY.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(GETDLGIT.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(MOVETO.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(TEXT.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(WNDMOVE.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(FWBMP.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(FWCE.obj) : error LNK2019: unresolved external symbol hb_stackReturn
Item referenced in function "void __cdecl HB_FUN_WIDETOANSI(void)" (?HB_FUN_WIDETOANSI@@YAXXZ)
FiveCEC.lib(AYGSHELL.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(FONTS.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(WNDCENTE.obj) : error LNK2001: unresolved external symbol hb_stackReturnItem
FiveCEC.lib(FWCE.obj) : error LNK2019: unresolved external symbol hb_stackBaseItem referenced in function "void __cdecl HB_FUN_MSGINFO(void)" (?HB_FUN_MSGINFO@@YAXXZ)
inventur.exe : fatal error LNK1120: 2 unresolved externals |
errsysw | Otto,
You have to download Harbour too from the FWPPC download page and install it too. |
errsysw | Could you please check this.
Regards
Otto
Harbour Compiler Alpha build 45.0 (Flex)
Copyright 1999-2005, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'inventur.prg' and generating preprocessed output to 'inventur.ppo'...
Lines 487, Functions/Procedures 11
Generating C source output to 'inventur.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.
inventur.c
Creating library inventur.lib and object inventur.exp
rdd.lib(dbf1.obj) : error LNK2019: unresolved external symbol hb_sxDeCrypt refer
enced in function hb_dbfGetRec
rdd.lib(dbf1.obj) : error LNK2019: unresolved external symbol hb_sxPtoD referenc
ed in function hb_dbfGetValue
dbffpt.lib(dbffpt1.obj) : error LNK2001: unresolved external symbol hb_sxPtoD
rdd.lib(dbf1.obj) : error LNK2019: unresolved external symbol hb_sxEnCrypt refer
enced in function hb_dbfPutRec
rdd.lib(dbf1.obj) : error LNK2019: unresolved external symbol hb_sxDtoP referenc
ed in function hb_dbfPutValue
dbffpt.lib(dbffpt1.obj) : error LNK2001: unresolved external symbol hb_sxDtoP
inventur.exe : fatal error LNK1120: 4 unresolved externals |
errsysw | Otto,
You have to link hbsix.lib too. |
errsysw | Thank you.
All ok now.
Regards
Otto |
errsysw - division by zero | Hello Antonio,
Is there a reason why
“by default, division by zero yields zero”
is not included.
Why is the source code errsysw.prg in FWPPC in folder classes?
Thanks in advance
Otto |
errsysw - division by zero | Otto,
It is included in errsysw.prg:
[code=fw:17do3c4w]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> ShowError<span style="color: #000000;">(</span> oError <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> cError := oError:<span style="color: #000000;">Description</span><br /> <span style="color: #00C800;">local</span> n<br /> <br /> <span style="color: #00C800;">if</span> oError:<span style="color: #000000;">GenCode</span> == EG_ZERODIV<br /> <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /> end<br /><br /> ...<br /> </div>[/code:17do3c4w]
We use just one set of files for both FWH and FWPPC, so in order to have a different errsysw.prg from FWH, we need to place FWPPC one in classes folder. |
errsysw - division by zero | Hello Antonio,
thank you. Yes you are right. But I don’t understand why if
tisch->menge is 0 the program freezes:
nPreis := tisch->wert / tisch->menge
I use now this code which works:
if tisch->menge <> 0
nPreis := tisch->wert / tisch->menge
endif
Best regards,
Otto |
errsysw FWH1308 | no devuelve la línea de error,
sólo devuelve el msj => Too many recursive
Estoy tratando de usar la versión anterior de errsysw(1303) no exito
alguien sabe resolver?
gracias |
errsysw FWH1308 | Por favor copia aqui el contenido de error.log gracias |
errsysw FWH1308 | Antonio,
no está generando el error.log
sólo muestra el siguiente error:
[img:3idv1g45]http://img10.imageshack.us/img10/9104/ve3c.jpg[/img:3idv1g45]
grato. |
errsysw FWH1308 | Usa esto:
ErrorBlock( { | oError | MsgInfo( oError:Description ) } )
So the errorsys of FWH is not used and you will get the description of the error |
errsysw FWH1308 | Antonio,
Es buena cosa grabar en un archivo, de forma "temprana" una sencilla descripcion, con lo mas basico del error: la descripcion y la pila de llamadas.
Se podria hacer que si el error "normal" se "logra" construir, entonces borrar el primero grabado. El archivo se podria llamar fwout.log o algo asi.
Esto por qué. Pues porque algunas veces, al recoger tanta informacion el gestor de errores, puede ocurrir que se produzca un error recurrente que termina... bueno... ya lo sabes tu mejor que nadie.
Solo era una idea |
errsysw FWH1308 | Paco (hmpaquito)
Si, tienes razón es una buena idea para resolver los errores recurrentes.
No habia caido en esa solución, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
errsysw FWH1308 | Antonio
ErrorBlock( { | oError | MsgInfo( oError:Description ) } ) <= sólo muestra "variavel nao existe" y luego in otro dlg muestra "erro na recuperacao do erro" |
errsysw FWH1308 | ErrorBlock( { | oError | MsgInfo( oError:Description ), MsgInfo( ProcLine( 3 ), ProcName( 3 ) ) } )
Tal vez tengas que usar 4 en vez de 3 para obtener el número de línea correcto y el nombre de la función. |
errsysw FWH1308 | Antonio,
ErrorBlock( { | oError | MsgStop( "Description: "+OemToAnsi(oError:Description)+CRLF+"File: " + ProcFile( 3 )+CRLF+"ProcName: " + Trim( ProcName( 3 ) ) + "( " + NTRIM( ProcLine( 3 ) ) + " )", "Error") } )
como posso saber o nome da variavel que causou o erro?
[img:2cfgzvcv]http://img7.imageshack.us/img7/6590/xgm1.jpg[/img:2cfgzvcv] |
errsysw FWH1308 | proc ErrorSys()
ErrorBlock( { | oError | MsgStop( "Description: "+OemToAnsi(ErrorMessage( oError ))+CRLF+"File: " + ProcFile( 3 )+CRLF+"ProcName: " + Trim( ProcName( 3 ) ) + "( " + LTrim(Str(ProcLine( 3 ))) + " )", "Error") } ) <= me sirvió en parte
// ErrorBlock( { | e | ErrorDialog( e ) } )
return
Alguien tiene uno errosys.prg que se ejecuta en FWH1308 ?
gracias |
errsysw FWH1308 | Prueba a mostrar el valor de oError:SubSystem tambien |
errsysw FWH1308 | Antonio
utilizando el famoso método de eliminación => /* */ <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
eliminando el código abajo:
/*
for j = 1 to 8
if ! Empty( ( nTarget := ( Alias( n ) )->( DbRSelect( j ) ) ) )
cErrorLog += Space( 8 ) + Str( j ) + ": " + ;
"TO " + ( Alias( n ) )->( DbRelation( j ) ) + ;
" INTO " + Alias( nTarget ) + CRLF
// uValue = ( Alias( n ) )->( DbRelation( j ) )
// cErrorLog += cValToChar( &( uValue ) ) + CRLF
endif
next
*/
o dialog é exibido
nota: uso sqlrdd (no sé si tiene algo a ver) |
errsysw FWH1308 | Ahora queda claro que el problema viene de SQLRDD, posiblemente de alguna función de esas que usa FWH errorsys y que SQLRDD no soporta |
errsysw.prg | Mr Antonio
The expression Str( ProcLine( 1 ), 3 ) ) at line 79 may be changed as Str( ProcLine( 1 ), 4 ) ) because many program modules can have lines exceeding 999. |
errsysw.prg | Nageswararao,
Done, many thanks! |
errsysw.prg | Using errsysw.prg and I would like to modify it in the following manner:
When there is a "data width error" it should notify the user to change the data and the program auto shortens the data then returns to the program rather then closing down the program. All help will be appreciated. |
errsysw.prg | Harvey,
I wouldn't suggest handling it that way. You end up with questionable data and you don't know which ones are questionable.
I would expand the database fields and/or restrict the data entry field. If the users are entering valid long data so expanding the database field would be a better solution. If the long data is not valid then restricting the data input field is a better solution.
Regards,
James |
errsysw.prg | Thanks james. Your suggestion won't work. I need to inform user of the problem and prompt them to fix the data. If you have any idea on how best to dode this in errysysw I'd appreciate it. |
errsysw.prg | Harvey,
My concern is that there may be a better solution other than modifying errsysw.prg that either you don't know about or don't understand.
Why won't either of my suggestions work? Is the data coming from some unconrolled source such as a file import?
I think this error only comes from numerical data. How is the user going to "fix" it? Assuming the source data is real, are they then going to be forced to change the number and if so, aren't you going to end up with a number that is not real?
Do you know that there is a way to trap errors without modifying errsysw.prg?
James |
errsysw.prg | The problem generally happens when the user is playing around and reviewing the progrm and puts in not real data. Boom error width. I need to trap it let the user know they made a mistake or their real data is to large they need to fix it.
JAmes the data already goes to 999,999,999 can't make it larger. Also too many dbfs to expand. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.