topic
stringlengths
1
63
text
stringlengths
1
577k
Construir Harbour con BCC 63 7.4
Ya ese branch eras mas compatible con mingw que con lis borland...
Construir Harbour con BCC 7.1
Buen día He bajado los fuentes de Harbour y también he tratado de realizar la compilación sin obtener éxito. El resultado que obtengo es el siguiente [code=fw:31xqln4z]<div class="fw" id="{CB}" style="font-family: monospace;">C:\Harbour>win-make.exe clean <br />! Building Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #0000ff;">from</span> source - http:<span style="color: #B900B9;">//harbour-project.org</span><br />! MAKE: <span style="color: #000000;">win</span>-make.exe <span style="color: #000000;">4.1</span> sh.exe clean  <br />! HB_HOST_PLAT: <span style="color: #000000;">win</span> <span style="color: #000000;">&#40;</span>x86_64<span style="color: #000000;">&#41;</span>  HB_SHELL: <span style="color: #000000;">nt</span><br />! HB_PLATFORM: <span style="color: #000000;">win</span> <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span> <br />! HB_COMPILER: <span style="color: #000000;">bcc64</span> <br />! Component: <span style="color: #ff0000;">'zlib'</span> found in C:/Harbour/src/3rd/zlib <span style="color: #000000;">&#40;</span><span style="color: #00C800;">local</span><span style="color: #000000;">&#41;</span><br />! Component: <span style="color: #ff0000;">'pcre'</span> found in C:/Harbour/src/3rd/pcre <span style="color: #000000;">&#40;</span><span style="color: #00C800;">local</span><span style="color: #000000;">&#41;</span><br />! Component: <span style="color: #ff0000;">'gpm'</span> not supported <span style="color: #0000ff;">on</span> win platform<br />! Component: <span style="color: #ff0000;">'slang'</span> not found. Configure with HB_WITH_SLANG.<br />! Component: <span style="color: #ff0000;">'curses'</span> not found. Configure with HB_WITH_CURSES.<br />! Component: <span style="color: #ff0000;">'x11'</span> not found. Configure with HB_WITH_X11.<br />! Component: <span style="color: #ff0000;">'wattcp/watt-32'</span> not supported <span style="color: #0000ff;">on</span> win platform<br />! <span style="color: #ff0000;">'hbdossrl'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform or compiler not supported<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gtcrs'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>component not found<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gtdos'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform not supported<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gtos2'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform not supported<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gtsln'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>component not found<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gttrm'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform or compiler not supported<span style="color: #000000;">&#41;</span><br />! <span style="color: #ff0000;">'gtxwc'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>component not found<span style="color: #000000;">&#41;</span><br />! Warning: <span style="color: #000000;">hbmk2</span> not found, contrib/make.hb skipped.<br />! Warning: <span style="color: #000000;">hbmk2</span> not found, config/postinst.hb skipped.<br /> </div>[/code:31xqln4z] Los valores que tienen HB_PLATFORM y HB_COMPILER son @set HB_PLATFORM=win @set HB_COMPILER=bcc64 Estoy usando Win10 Saludos
Construir Harbour con BCC 7.1
Despues de win-make.exe clean tienes que llamar a win-make.exe (sin el clean)
Construir Harbour con BCC 7.1
Antonio, gracias por responder. Ahora obtengo el siguiente aviso [code=fw:z3mbby4p]<div class="fw" id="{CB}" style="font-family: monospace;">! Building Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #0000ff;">from</span> source - http:<span style="color: #B900B9;">//harbour-project.org</span><br />! MAKE: <span style="color: #000000;">win</span>-make.exe <span style="color: #000000;">4.1</span> sh.exe   <br />! HB_HOST_PLAT: <span style="color: #000000;">win</span> <span style="color: #000000;">&#40;</span>x86_64<span style="color: #000000;">&#41;</span>  HB_SHELL: <span style="color: #000000;">nt</span><br />! HB_PLATFORM: <span style="color: #000000;">win</span> <span style="color: #000000;">&#40;</span>x86<span style="color: #000000;">&#41;</span> <br />! HB_COMPILER: <span style="color: #000000;">bcc64</span> <br />! Component: <span style="color: #ff0000;">'zlib'</span> found in C:/Harbour/src/3rd/zlib <span style="color: #000000;">&#40;</span><span style="color: #00C800;">local</span><span style="color: #000000;">&#41;</span><br />! Component: <span style="color: #ff0000;">'pcre'</span> found in C:/Harbour/src/3rd/pcre <span style="color: #000000;">&#40;</span><span style="color: #00C800;">local</span><span style="color: #000000;">&#41;</span><br />! Component: <span style="color: #ff0000;">'gpm'</span> not supported <span style="color: #0000ff;">on</span> win platform<br />! Component: <span style="color: #ff0000;">'slang'</span> not found. Configure with HB_WITH_SLANG.<br />! Component: <span style="color: #ff0000;">'curses'</span> not found. Configure with HB_WITH_CURSES.<br />! Component: <span style="color: #ff0000;">'x11'</span> not found. Configure with HB_WITH_X11.<br />! Component: <span style="color: #ff0000;">'wattcp/watt-32'</span> not supported <span style="color: #0000ff;">on</span> win platform<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">Nothing</span> <span style="color: #0000ff;">to</span> be done <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'all'</span>.<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">Nothing</span> <span style="color: #0000ff;">to</span> be done <span style="color: #00C800;">for</span> <span style="color: #ff0000;">'all'</span>.<br />! <span style="color: #ff0000;">'hbdossrl'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform or compiler not supported<span style="color: #000000;">&#41;</span><br />bcc64.exe   -I. -I../../../../../../include -q -tWM -CP437 -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia- -d -O2 -OS -Ov -Oc  -DUNICODE -IC:/Harbour/src/3rd/zlib -DPNG_NO_STDIO  -opng.o  -c ../../../png.c<br />../../../../../../config/rules.mk:<span style="color: #000000;">84</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'png.o'</span> failed<br />../../../config/lib.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'descend'</span> failed<br />../../config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'png'</span> failed<br />../config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'3rd'</span> failed<br />config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'src'</span> failed<br /> </div>[/code:z3mbby4p] Al final aparece lo siguiente [code=fw:z3mbby4p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />process_begin: <span style="color: #000000;">CreateProcess</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NULL</span>, bcc64.exe -I. -I../../../../../../include -q -tWM -CP437 -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia- -d -O2 -OS -Ov -Oc -DUNICODE -IC:/Harbour/src/3rd/zlib -DPNG_NO_STDIO -opng.o -c ../../../png.c, ...<span style="color: #000000;">&#41;</span> failed.<br />make <span style="color: #000000;">&#40;</span>e=<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>: <span style="color: #000000;">El</span> sistema no puede encontrar el archivo especificado.<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>png.o<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>descend<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>png<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>3rd<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />win-make.exe: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>src<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br /><br /> </div>[/code:z3mbby4p]
Construir Harbour con BCC 7.1
Hola Victor, saludos Remplaza la lib unicows.a de borland por la que trae harbour en lib\3rd\win\bcc\unicows.lib
Construir Harbour con BCC 7.1
[quote="compubrion":2frxcl2b]Hola Victor, saludos Remplaza la lib unicows.a de borland por la que trae harbour en lib\3rd\win\bcc\unicows.lib[/quote:2frxcl2b] Gracias por la respuesta. Ya hice el cambio y el resultado fue el mismo <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
Construir Harbour con BCC 7.1
No encuentra bcc64.exe Haz esto antes de llamar a win-make set path=c:\bcc7164\bin usa tu path
Construir Harbour con BCC 7.1
[quote="Antonio Linares":1qxeq5o8]No encuentra bcc64.exe Haz esto antes de llamar a win-make set path=c:\bcc7164\bin usa tu path[/quote:1qxeq5o8] En que parte se configuran los los flags ? [code=fw:1qxeq5o8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><br />! <span style="color: #ff0000;">'hbdossrl'</span> <span style="color: #0000ff;">library</span> skipped <span style="color: #000000;">&#40;</span>platform or compiler not supported<span style="color: #000000;">&#41;</span><br />bcc64.exe   -I. -I../../../../../../include -q -tWM -CP437 -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia- -d -O2 -OS -Ov -Oc  -DUNICODE -IC:/Harbour/src/3rd/zlib -DPNG_NO_STDIO  -opng.o  -c ../../../png.c<br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-CP437'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-sig-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-aus-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-ccc-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-csu-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-par-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-rch-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-ucp-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-use-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-prc-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-w-pia-'</span><br />bcc64.exe: <span style="color: #000000;">warning</span>: <span style="color: #000000;">argument</span> unused during compilation: <span style="color: #ff0000;">'-d'</span><br />../../../png.c:<br /><span style="color: #000000;">error</span>: <span style="color: #000000;">invalid</span> integral value <span style="color: #ff0000;">'c'</span> in <span style="color: #ff0000;">'-Oc'</span><br />error: <span style="color: #000000;">invalid</span> integral value <span style="color: #ff0000;">'c'</span> in <span style="color: #ff0000;">'-Oc'</span><br />../../../../../../config/rules.mk:<span style="color: #000000;">84</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'png.o'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>png.o<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">1</span><br />../../../config/lib.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'descend'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>descend<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />../../config/dir.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'png.inst'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>png.inst<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />../config/dir.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'3rd.inst'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>3rd.inst<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />config/dir.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'src.inst'</span> failed<br />win-make.exe: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>src.inst<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br /> </div>[/code:1qxeq5o8]
Construir Harbour con BCC 7.1
ok, para poder construir bcc64 bit, con harbour no muy facil que digamos. se deben realizar cambios en ciertos archivos de encabezado, configuracion, y prg. de harbour: 1.- modificar "harbour\include\hbregex.h" [code=fw:1wb2o8tr]<div class="fw" id="{CB}" style="font-family: monospace;">#if defined<span style="color: #000000;">&#40;</span> _HB_REGEX_INTERNAL_ <span style="color: #000000;">&#41;</span><br /><br />#if __BORLANDC__ >= 0x710<br />   #undef HB_HAS_PCRE<br />#endif<br /><br />#ifdef defined<span style="color: #000000;">&#40;</span> HB_HAS_PCRE <span style="color: #000000;">&#41;</span><br />#  include <pcre.h><br />#  undef HB_POSIX_REGEX<br />#elif defined<span style="color: #000000;">&#40;</span> HB_OS_UNIX <span style="color: #000000;">&#41;</span><br />#  include <sys/types.h><br />#  include <regex.h><br />#  <span style="color: #0000ff;">define</span> HB_POSIX_REGEX<br />#elif defined<span style="color: #000000;">&#40;</span> __BORLANDC__ <span style="color: #000000;">&#41;</span><br />#  include <pcreposi.h><br />#  <span style="color: #0000ff;">define</span> HB_POSIX_REGEX<br />#else<br />#  error pcre component required, but not available<br />#endif<br /> </div>[/code:1wb2o8tr]
Construir Harbour con BCC 7.1
harbour\config\win\global.mk [code=fw:33vo3zxg]<div class="fw" id="{CB}" style="font-family: monospace;"><br />all : <span style="color: #000000;">first</span><br /><br />RES_EXT := .res<br />BIN_EXT := .exe<br />DYN_EXT := .dll<br /><br />HB_CFLAGS += -DUNICODE<br /><br />HB_GT_LIBS += gtwvt gtgui gtwin<br /><br /># kernel32: <span style="color: #000000;">needed</span> by some compilers <span style="color: #000000;">&#40;</span>pocc/watcom<span style="color: #000000;">&#41;</span><br /># user32: <span style="color: #000000;">*Clipboard*</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GetKeyState<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, GetKeyboardState<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, SetKeyboardState<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, gtwvt stuff<br /># ws2_32/wsock32: <span style="color: #000000;">hbsocket</span><br /># ws2_32: <span style="color: #000000;">WSAIoctl</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /># iphlpapi: <span style="color: #000000;">hbsocket</span>->GetAdaptersInfo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /># advapi32: <span style="color: #000000;">GetUserName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /># gdi32: <span style="color: #000000;">gtwvt</span><br /><br /># unicows lib must come after user libs and before Windows system libs<br />ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>wildcard $<span style="color: #000000;">&#40;</span>TOP<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ROOT<span style="color: #000000;">&#41;</span>lib/3rd/$<span style="color: #000000;">&#40;</span>HB_PLATFORM<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;3RDLIB_DIR := $<span style="color: #000000;">&#40;</span>TOP<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ROOT<span style="color: #000000;">&#41;</span>lib/3rd/$<span style="color: #000000;">&#40;</span>HB_PLATFORM<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;3RDLIBS := unicows<br /><span style="color: #00C800;">endif</span><br /><br />#KDS<br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;SYSLIBS += d:\compiler\bcc\lib\win64\psdk\kernel32 d:\compiler\bcc\lib\win64\psdk\user32 d:\compiler\bcc\lib\win64\psdk\ws2_32 d:\compiler\bcc\lib\win64\psdk\iphlpapi d:\compiler\bcc\lib\win64\psdk\advapi32 d:\compiler\bcc\lib\win64\psdk\gdi32<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;SYSLIBS += kernel32 user32 ws2_32 iphlpapi advapi32 gdi32<br /><span style="color: #00C800;">endif</span><br /><br />SYSLIBS += kernel32 user32 ws2_32 iphlpapi advapi32 gdi32 winmm<br />&nbsp;</div>[/code:33vo3zxg]
Construir Harbour con BCC 7.1
harbour\config\win\bcc.mk [code=fw:523797zl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># GNU Make file <span style="color: #00C800;">for</span> Borland/CodeGear/Embarcadero C/C++ <span style="color: #000000;">32</span>-bit <span style="color: #000000;">&#40;</span><span style="color: #000000;">4</span>.x-<span style="color: #000000;">&#41;</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;OBJ_EXT := .o<br />&nbsp; &nbsp;LIB_PREF :=<br />&nbsp; &nbsp;LIB_EXT := .a<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;OBJ_EXT := .obj<br />&nbsp; &nbsp;LIB_PREF :=<br />&nbsp; &nbsp;LIB_EXT := .lib<br /><span style="color: #00C800;">endif</span><br /><br />HB_DYN_COPT := -DHB_DYNLIB<br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CC := bcc64.exe<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;CC := bcc32.exe<br /><span style="color: #00C800;">endif</span><br />CC_IN := -c<br />CC_OUT := -o<br /><br />CFLAGS += -I. -I$<span style="color: #000000;">&#40;</span>HB_HOST_INC<span style="color: #000000;">&#41;</span><br /><br />#KDS CFLAGS += -q -tWM -CP437<br />CFLAGS += -q -tWM<br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_BUILD_WARN<span style="color: #000000;">&#41;</span>,no<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;#CFLAGS += -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia-<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;CFLAGS += -w -Q -w-sig-<br /><span style="color: #00C800;">endif</span><br /><br />ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_BUILD_OPTIM<span style="color: #000000;">&#41;</span>,no<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; #KDS CFLAGS += -d -O2 -OS -Ov -Oc<br />&nbsp; &nbsp; &nbsp; CFLAGS += -d -O2 -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\crtl -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\sdk<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; # <span style="color: #00C800;">for</span> some reason <span style="color: #000000;">-6</span> generates the exact same code as <span style="color: #000000;">-4</span> with both <span style="color: #000000;">5.5</span> and <span style="color: #000000;">5.8</span>.<br />&nbsp; &nbsp; &nbsp; # <span style="color: #000000;">-5</span> seems <span style="color: #0000ff;">to</span> be significantly slower than both. <span style="color: #000000;">&#91;</span>vszakats<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; CFLAGS += -d -O2 -OS -Ov -Oc -Oi <span style="color: #000000;">-6</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_BUILD_MODE<span style="color: #000000;">&#41;</span>,cpp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;CFLAGS += -P<br /><span style="color: #00C800;">endif</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_BUILD_DEBUG<span style="color: #000000;">&#41;</span>,yes<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; CFLAGS += -g<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; CFLAGS += -v -y<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /><br />ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_HOST_PLAT_UNIX<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;BACKSLASH := $<span style="color: #000000;">&#40;</span>subst /,\,\\<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;BACKSLASH := $<span style="color: #000000;">&#40;</span>subst /,\,\<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_SHELL<span style="color: #000000;">&#41;</span>,sh<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ECHOBACKSLASH := $<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;ECHOBACKSLASH := $<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /># Hack <span style="color: #0000ff;">to</span> autoconfig bcc, and not require properly set .cfg files in its bin dir.<br /># It only works <span style="color: #00C800;">if</span> we know compiler location.<br />ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMP_PATH_PUB<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;HB_CFLAGS += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;RCFLAGS &nbsp; += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>wildcard $<span style="color: #000000;">&#40;</span>HB_COMP_PATH_PUB<span style="color: #000000;">&#41;</span>../Include/windows/crtl<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; HB_CFLAGS += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include/windows/crtl"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; RCFLAGS &nbsp; += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include/windows/crtl"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>wildcard $<span style="color: #000000;">&#40;</span>HB_COMP_PATH_PUB<span style="color: #000000;">&#41;</span>../Include/windows/sdk<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; HB_CFLAGS += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include/windows/sdk"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; RCFLAGS &nbsp; += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-I<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Include/windows/sdk"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; LDFLAGS &nbsp; += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib"</span> -L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib/Win64/PSDK"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DFLAGS &nbsp; &nbsp;+= $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib"</span> -L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib/Win64/PSDK"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; LDFLAGS &nbsp; += $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib"</span> -L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib/PSDK"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; DFLAGS &nbsp; &nbsp;+= $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib"</span> -L<span style="color: #ff0000;">"$(HB_COMP_PATH_PUB)../Lib/PSDK"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /><br />RC := brcc32.exe<br />RC_OUT := -fo<br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;RCFLAGS += -I. -I$<span style="color: #000000;">&#40;</span>HB_HOST_INC<span style="color: #000000;">&#41;</span> -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\sdk<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;RCFLAGS += -I. -I$<span style="color: #000000;">&#40;</span>HB_HOST_INC<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LD := ilink64.exe<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;LD := ilink32.exe<br /><span style="color: #00C800;">endif</span><br /><br />LIBPATHS := $<span style="color: #000000;">&#40;</span>foreach dir,$<span style="color: #000000;">&#40;</span>LIB_DIR<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>3RDLIB_DIR<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>BACKSLASH<span style="color: #000000;">&#41;</span>,-L<span style="color: #ff0000;">"$(dir)"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />LDFLAGS += $<span style="color: #000000;">&#40;</span>LIBPATHS<span style="color: #000000;">&#41;</span> -Gn -Tpe<br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;LD_RULE = $<span style="color: #000000;">&#40;</span>LD<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LDFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_LDFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_LDFLAGS<span style="color: #000000;">&#41;</span> d:\compiler\bcc\lib\win64\c0x64.o $<span style="color: #000000;">&#40;</span>filter-out %$<span style="color: #000000;">&#40;</span>RES_EXT<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>^F<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"$(subst /,$(BACKSLASH),$(BIN_DIR)/$@)"</span>, nul, $<span style="color: #000000;">&#40;</span>LDLIBS<span style="color: #000000;">&#41;</span> d:\compiler\bcc\lib\win64\cw64mt d:\compiler\bcc\lib\win64\import64,, $<span style="color: #000000;">&#40;</span>filter %$<span style="color: #000000;">&#40;</span>RES_EXT<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>^F<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LDSTRIP<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;LD_RULE = $<span style="color: #000000;">&#40;</span>LD<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LDFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_LDFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_LDFLAGS<span style="color: #000000;">&#41;</span> c0x32.obj $<span style="color: #000000;">&#40;</span>filter-out %$<span style="color: #000000;">&#40;</span>RES_EXT<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>^F<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"$(subst /,$(BACKSLASH),$(BIN_DIR)/$@)"</span>, nul, $<span style="color: #000000;">&#40;</span>LDLIBS<span style="color: #000000;">&#41;</span> cw32mt import32,, $<span style="color: #000000;">&#40;</span>filter %$<span style="color: #000000;">&#40;</span>RES_EXT<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>^F<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LDSTRIP<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br />LDLIBS := $<span style="color: #000000;">&#40;</span>strip $<span style="color: #000000;">&#40;</span>HB_USER_LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>3RDLIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>SYSLIBS<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AR := tlib64.exe<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;AR := tlib.exe<br /><span style="color: #00C800;">endif</span><br />ARFLAGS += /P128<br />AR_RULE = $<span style="color: #000000;">&#40;</span>AR<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ARFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_AFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_AFLAGS<span style="color: #000000;">&#41;</span> <span style="color: #ff0000;">"$(subst /,$(BACKSLASH),$(LIB_DIR)/$@)"</span> $<span style="color: #000000;">&#40;</span>foreach file,$<span style="color: #000000;">&#40;</span>?F<span style="color: #000000;">&#41;</span>,-+$<span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />ifneq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_SHELL<span style="color: #000000;">&#41;</span>,sh<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_SHELL_XP<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_SHELL<span style="color: #000000;">&#41;</span>,nt<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LINECONT := ^&<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LINECONT := &<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; # NOTE: <span style="color: #000000;">Command</span>-line limit length defeating methods found below<br />&nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; are only needed <span style="color: #0000ff;">to</span> support pre-Windows XP systems, <span style="color: #0000ff;">where</span><br />&nbsp; &nbsp; &nbsp; # &nbsp; &nbsp; &nbsp; limit is <span style="color: #000000;">2047</span> chars. <span style="color: #000000;">&#91;</span>vszakats<span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; # NOTE: <span style="color: #000000;">The</span> empty line directly before <span style="color: #ff0000;">'endef'</span> HAVE <span style="color: #0000ff;">TO</span> exist!<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">define</span> library_object<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@$<span style="color: #000000;">&#40;</span>ECHO<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>-+$<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LINECONT<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span> >> __lib__.tmp<br /><br />&nbsp; &nbsp; &nbsp; endef<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">define</span> create_library<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$<span style="color: #000000;">&#40;</span><span style="color: #00C800;">if</span> $<span style="color: #000000;">&#40;</span>wildcard __lib__.tmp<span style="color: #000000;">&#41;</span>,@$<span style="color: #000000;">&#40;</span>RM<span style="color: #000000;">&#41;</span> __lib__.tmp,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>foreach file,$<span style="color: #000000;">&#40;</span>?F<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>library_object<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@$<span style="color: #000000;">&#40;</span>ECHO<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>-+$<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>>> __lib__.tmp<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$<span style="color: #000000;">&#40;</span>AR<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ARFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_AFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_AFLAGS<span style="color: #000000;">&#41;</span> <span style="color: #ff0000;">"$(subst /,$(BACKSLASH),$(LIB_DIR)/$@)"</span> @__lib__.tmp<br />&nbsp; &nbsp; &nbsp; endef<br /><br />&nbsp; &nbsp; &nbsp; AR_RULE = $<span style="color: #000000;">&#40;</span>create_library<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">endif</span><br /><br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DY := ilink64.exe<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;DY := ilink32.exe<br /><span style="color: #00C800;">endif</span><br />DFLAGS += -q -Gn -C -aa -Tpd -Gi -x $<span style="color: #000000;">&#40;</span>LIBPATHS<span style="color: #000000;">&#41;</span><br />DY_OUT :=<br /># NOTE: .lib extension not added <span style="color: #0000ff;">to</span> keep line short enough <span style="color: #0000ff;">to</span> work <span style="color: #0000ff;">on</span> Win9x/ME<br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DLIBS := $<span style="color: #000000;">&#40;</span>HB_USER_LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>3RDLIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>SYSLIBS<span style="color: #000000;">&#41;</span> d:\compiler\bcc\lib\win64\cw64mt d:\compiler\bcc\lib\win64\import64<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;DLIBS := $<span style="color: #000000;">&#40;</span>HB_USER_LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>LIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>3RDLIBS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>SYSLIBS<span style="color: #000000;">&#41;</span> cw32mt import32<br /><span style="color: #00C800;">endif</span><br /><br /># NOTE: <span style="color: #000000;">The</span> empty line directly before <span style="color: #ff0000;">'endef'</span> HAVE <span style="color: #0000ff;">TO</span> exist!<br /><span style="color: #0000ff;">define</span> dynlib_object<br />&nbsp; &nbsp;@$<span style="color: #000000;">&#40;</span>ECHO<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>file<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> +$<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span> >> __dyn__.tmp<br /><br />endef<br /><br />#KDS <br />ifeq <span style="color: #000000;">&#40;</span>$<span style="color: #000000;">&#40;</span>HB_COMPILER<span style="color: #000000;">&#41;</span>,bcc64<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> create_dynlib<br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span><span style="color: #00C800;">if</span> $<span style="color: #000000;">&#40;</span>wildcard __dyn__.tmp<span style="color: #000000;">&#41;</span>,@$<span style="color: #000000;">&#40;</span>RM<span style="color: #000000;">&#41;</span> __dyn__.tmp,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span>foreach file,$^,$<span style="color: #000000;">&#40;</span>dynlib_object<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>ECHO<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>, $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$@<span style="color: #000000;">&#41;</span>,, $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DLIBS<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span> >> __dyn__.tmp<br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span>DY<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>DFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_DFLAGS<span style="color: #000000;">&#41;</span> d:\compiler\bcc\lib\win64\c0d64.o @__dyn__.tmp<br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>CP<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>basename $@<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>LIB_EXT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>IMP_FILE<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>RM<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>basename $@<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>LIB_EXT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;endef<br /><span style="color: #00C800;">else</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">define</span> create_dynlib<br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span><span style="color: #00C800;">if</span> $<span style="color: #000000;">&#40;</span>wildcard __dyn__.tmp<span style="color: #000000;">&#41;</span>,@$<span style="color: #000000;">&#40;</span>RM<span style="color: #000000;">&#41;</span> __dyn__.tmp,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span>foreach file,$^,$<span style="color: #000000;">&#40;</span>dynlib_object<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>ECHO<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span>, $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$@<span style="color: #000000;">&#41;</span>,, $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>ECHOBACKSLASH<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DLIBS<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ECHOQUOTE<span style="color: #000000;">&#41;</span> >> __dyn__.tmp<br />&nbsp; &nbsp; &nbsp; $<span style="color: #000000;">&#40;</span>DY<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>DFLAGS<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>HB_USER_DFLAGS<span style="color: #000000;">&#41;</span> c0d32.obj @__dyn__.tmp<br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>CP<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>basename $@<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>LIB_EXT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>IMP_FILE<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @$<span style="color: #000000;">&#40;</span>RM<span style="color: #000000;">&#41;</span> $<span style="color: #000000;">&#40;</span>subst /,$<span style="color: #000000;">&#40;</span>DIRSEP<span style="color: #000000;">&#41;</span>,$<span style="color: #000000;">&#40;</span>DYN_DIR<span style="color: #000000;">&#41;</span>/$<span style="color: #000000;">&#40;</span>basename $@<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>LIB_EXT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;endef<br /><span style="color: #00C800;">endif</span><br /><br />DY_RULE = $<span style="color: #000000;">&#40;</span>create_dynlib<span style="color: #000000;">&#41;</span><br /><br />include $<span style="color: #000000;">&#40;</span>TOP<span style="color: #000000;">&#41;</span>$<span style="color: #000000;">&#40;</span>ROOT<span style="color: #000000;">&#41;</span>config/rules.mk <br />&nbsp;</div>[/code:523797zl]
Construir Harbour con BCC 7.1
debo aclarar que yo tengo el compilador borland en la siguiente ruta d:\compiler\bcc y que ademas en la misma carpeta tengo los tres compiladores de borland (bcc, bcc32c, bcc64) lo unico diferente es que en la carpeta include hay una carpeta adicional llamada dinkumware64 [quote:3g8tsymq]\include\dinkumware64[/quote:3g8tsymq] y que en la carpeta lib, tengo tres subcarpetas [quote:3g8tsymq] \lib\win32 \lib\win32c \lib\win64 [/quote:3g8tsymq]
Construir Harbour con BCC 7.1
otro punto es que en la version que uso, bcc730, parece que el parametro -d para el compilador bcc64 ya no funciona. por lo que el cambio en \harbour\config\win\bcc.mk [code=fw:uez7ie2r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; #KDS CFLAGS += -d -O2 -OS -Ov -Oc<br />&nbsp; &nbsp; &nbsp; CFLAGS += -d -O2 -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\crtl -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\sdk<br />&nbsp;</div>[/code:uez7ie2r] deberia quedar asi [code=fw:uez7ie2r]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; #KDS CFLAGS += -d -O2 -OS -Ov -Oc<br />&nbsp; &nbsp; &nbsp; CFLAGS += -O2 -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\crtl -<span style="color: #0000ff;">Id</span>:\compiler\bcc\include\windows\sdk<br />&nbsp;</div>[/code:uez7ie2r]
Construir Harbour con BCC 7.1
tomados los cambios de: [url:ojtscfeb]https&#58;//groups&#46;google&#46;com/forum/#!searchin/harbour-devel/bcc64%7Csort&#58;relevance/harbour-devel/EHFRdkLCWNo/BsRp2mDHDwAJ[/url:ojtscfeb]
Construir Harbour con BCC 7.1
aca dejo los tres archivos con los cambios necesarios. [url:1p9czyty]http&#58;//castillolawyers&#46;no-ip&#46;info/owncloud/index&#46;php/s/KqXtTpeMvZONGcl[/url:1p9czyty]
Construir Harbour con BCC 7.1
cabe aclarar, que el compilador harboury las librerias bases si son construidas, pero no asi el hbmk2.exe, lo que provoca que cuando va ha construir las librerias de la carpeta "contrib" de un error, ya que ahi se usa hbmk2 como gestor de proyectos para construir cada uno de las contribuciones. pero si no modifico hbregex.h, el hbmk2.exe es construido, pero no es posible que se ejecute correctamente ya que da error de tipo overflow o algo por el estilo, no recuerdo. si alguien puede aportar los cambios necesarios para reparar esto, pues muy agradecido.
Construir Harbour con BCC 7.1
en harbour\source\common\hbprintf.c agregar estas funciones al final [code=fw:3uhpxbdz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//#if defined( __BORLANDC__ ) && defined( HB_OS_WIN_64 )</span><br />#if defined<span style="color: #000000;">&#40;</span>__BORLANDC__<span style="color: #000000;">&#41;</span> && defined<span style="color: #000000;">&#40;</span>__clang__<span style="color: #000000;">&#41;</span> && defined<span style="color: #000000;">&#40;</span>_WIN64<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/* $NetBSD: isnanl.c,v 1.8 2011/06/05 14:43:13 christos Exp $   */</span><br /><br /><span style="color: #B900B9;">/*<br /> * Copyright (c) 1992, 1993<br /> *  The Regents of the University of California.  All rights reserved.<br /> *<br /> * This software was developed by the Computer Systems Engineering group<br /> * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and<br /> * contributed to Berkeley.<br /> *<br /> * Redistribution and use in source and binary forms, with or without<br /> * modification, are permitted provided that the following conditions<br /> * are met:<br /> * 1. Redistributions of source code must retain the above copyright<br /> *    notice, this list of conditions and the following disclaimer.<br /> * 2. Redistributions in binary form must reproduce the above copyright<br /> *    notice, this list of conditions and the following disclaimer in the<br /> *    documentation and/or other materials provided with the distribution.<br /> * 3. Neither the name of the University nor the names of its contributors<br /> *    may be used to endorse or promote products derived from this software<br /> *    without specific prior written permission.<br /> *<br /> * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND<br /> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE<br /> * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE<br /> * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE<br /> * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL<br /> * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS<br /> * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)<br /> * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT<br /> * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY<br /> * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF<br /> * SUCH DAMAGE.<br /> *<br /> * from: Header: isinf.c,v 1.1 91/07/08 19:03:34 torek Exp<br /> */</span><br /><br /><span style="color: #00D7D7;">#include</span> <math.h><br /><br /><span style="color: #00D7D7;">#define</span> EXT_EXP_INFNAN  0x7fff<br /><span style="color: #00D7D7;">#define</span> EXT_EXPBITS     <span style="color: #000000;">15</span><br /><span style="color: #00D7D7;">#define</span> EXT_FRACHBITS   <span style="color: #000000;">16</span><br /><span style="color: #00D7D7;">#define</span> SNG_EXP_INFNAN  <span style="color: #000000;">255</span><br /><span style="color: #00D7D7;">#define</span> DBL_EXP_INFNAN  <span style="color: #000000;">2047</span><br /><br />struct ieee_ext<br /><span style="color: #000000;">&#123;</span><br />   unsigned int      ext_sign:<span style="color: #000000;">1</span>;<br />   unsigned int      ext_exp:<span style="color: #000000;">EXT_EXPBITS</span>;<br />   unsigned int      ext_frach:<span style="color: #000000;">EXT_FRACHBITS</span>;<br />   unsigned int      ext_frachm;<br />   unsigned int      ext_fraclm;<br />   unsigned int      ext_fracl;<br /><span style="color: #000000;">&#125;</span>;<br /><br />union ieee_ext_u<br /><span style="color: #000000;">&#123;</span><br />   long double       extu_ld;<br />   struct ieee_ext   extu_ext;<br /><span style="color: #000000;">&#125;</span>;<br /><br />struct ieee_double<br /><span style="color: #000000;">&#123;</span><br />   unsigned int      dbl_sign:<span style="color: #000000;">1</span>;<br />   unsigned int      dbl_exp:<span style="color: #000000;">11</span>;<br />   unsigned int      dbl_frach:<span style="color: #000000;">20</span>;<br />   unsigned int      dbl_fracl;<br /><span style="color: #000000;">&#125;</span>;<br /><br />HB_EXTERN_BEGIN<br />extern int _isnanl<span style="color: #000000;">&#40;</span> long double x <span style="color: #000000;">&#41;</span>;<br />extern int _finitel<span style="color: #000000;">&#40;</span> long double d <span style="color: #000000;">&#41;</span>;<br />extern int _finite<span style="color: #000000;">&#40;</span> double d <span style="color: #000000;">&#41;</span>;<br />HB_EXTERN_END<br /><br /><span style="color: #B900B9;">/*<br /> * 7.12.3.4 isnan - test for a NaN<br /> *          IEEE 754 compatible 80-bit extended-precision Intel 386 version<br /> */</span><br /><br />int _isnanl<span style="color: #000000;">&#40;</span> long double x <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   union ieee_ext_u u;<br /><br />   u.extu_ld = x;<br /><br />   <span style="color: #00C800;">return</span> u.extu_ext.ext_exp == EXT_EXP_INFNAN &&<br />          <span style="color: #000000;">&#40;</span> u.extu_ext.ext_frach & 0x80000000 <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span> &&<br />          <span style="color: #000000;">&#40;</span> u.extu_ext.ext_frach != 0x80000000 || u.extu_ext.ext_fracl != <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br />int _finite<span style="color: #000000;">&#40;</span> double d <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   struct ieee_double * p = <span style="color: #000000;">&#40;</span> struct ieee_double * <span style="color: #000000;">&#41;</span> &d;<br /><br />   <span style="color: #00C800;">return</span> p->dbl_exp != DBL_EXP_INFNAN;<br /><span style="color: #000000;">&#125;</span><br /><br />int _finitel<span style="color: #000000;">&#40;</span> long double d <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   struct ieee_double * p = <span style="color: #000000;">&#40;</span> struct ieee_double * <span style="color: #000000;">&#41;</span> &d;<br /><br />   <span style="color: #00C800;">return</span> p->dbl_exp != DBL_EXP_INFNAN;<br /><span style="color: #000000;">&#125;</span><br /><br />#endif<br /> </div>[/code:3uhpxbdz]
Construir Harbour con BCC 7.1
Carlos , gracias por responder Aplico los cambios y comento los resultados Saludos
Construir Harbour con BCC 7.1
[quote="carlos vargas":35zydso1]cabe aclarar, que el compilador harboury las librerias bases si son construidas, pero no asi el hbmk2.exe, lo que provoca que cuando va ha construir las librerias de la carpeta "contrib" de un error, ya que ahi se usa hbmk2 como gestor de proyectos para construir cada uno de las contribuciones. pero si no modifico hbregex.h, el hbmk2.exe es construido, pero no es posible que se ejecute correctamente ya que da error de tipo overflow o algo por el estilo, no recuerdo. si alguien puede aportar los cambios necesarios para reparar esto, pues muy agradecido.[/quote:35zydso1] Carlos, creo que ya he llegado al punto que mencionas y obtengo el siguiente error [code=fw:35zydso1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />ilink64.exe  -L<span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64"</span> -Gn -Tpe   -Lc:\bcc71<span style="color: #000000;">.64</span>\lib;c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk c:\bcc71<span style="color: #000000;">.64</span>\LIB\c0x64.o rt_miscc.o hbtest.o rt_array.o rt_date.o rt_file.o rt_hvm.o rt_hvma.o rt_math.o rt_misc.o rt_mt.o rt_str.o rt_stra.o rt_trans.o rt_class.o, <span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\b</span>in<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64<span style="color: #000000;">\h</span>btest.exe"</span>, nul, hbextern hbdebug hbvm hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvm hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\kernel32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\user32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\ws2_32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\iphlpapi c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\advapi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\gdi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\cw64mt c:\bcc71<span style="color: #000000;">.64</span>\lib\import64,,<br />Turbo Incremental Link64 <span style="color: #000000;">6.72</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />        <span style="color: #000000;">1</span> archivo<span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span> copiado<span style="color: #000000;">&#40;</span>s<span style="color: #000000;">&#41;</span>.<br />../../../../../bin/win/bcc64/harbour.exe ../../../hbmk2.prg  -i../../../../../include -n1 -q0 -w3 -es2 -kmo -i- -l  -u -i../../../ -DHBMK_USE_APPMAIN -DHBMK_WITH_ALL_EMBEDDED_HEADERS<br />bcc64.exe   -I. -I../../../../../include -q -tWM -w -Q -w-sig- -O2 -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\sdk    -DUNICODE  -ohbmk2.o  -c hbmk2.c<br />hbmk2.c:<br /><span style="color: #000000;">brcc32</span>.exe  -I. -I../../../../../include -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\sdk   -fohbmk2.res ../../../hbmk2.rc<br />Borland <span style="color: #0000ff;">Resource</span> Compiler  Version <span style="color: #000000;">5.40</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1990</span>, <span style="color: #000000;">1999</span> Inprise Corporation.  All rights reserved.<br />ilink64.exe  -L<span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64"</span> -Gn -Tpe   -Lc:\bcc71<span style="color: #000000;">.64</span>\lib;c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk c:\bcc71<span style="color: #000000;">.64</span>\LIB\c0x64.o hbmk2.o, <span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\b</span>in<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64<span style="color: #000000;">\h</span>bmk2.exe"</span>, nul, hbextern hbdebug hbvmmt hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvmmt hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\kernel32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\user32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\ws2_32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\iphlpapi c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\advapi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\gdi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\cw64mt c:\bcc71<span style="color: #000000;">.64</span>\lib\import64,, hbmk2.res<br />Turbo Incremental Link64 <span style="color: #000000;">6.72</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regexec'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regfree'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regcomp'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o<br />../../../../../config/bin.mk:<span style="color: #000000;">159</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'hbmk2.exe'</span> failed<br />win-make<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>hbmk2.exe<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />../../config/bin.mk:<span style="color: #000000;">155</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'descend'</span> failed<br />win-make<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>descend<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />../config/dir.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'hbmk2.inst'</span> failed<br />win-make<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>hbmk2.inst<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />config/dir.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'utils.inst'</span> failed<br />win-make: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>utils.inst<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br /> </div>[/code:35zydso1] Revisé las modificaciones que Antonio hace al hbmk2.prg y ya están aplicadas en GIt. Alguna sugerencia para construir las contribuciones ? Saludos
Construir Harbour con BCC 7.1
Vikthor, Estoy reconstruyéndolo para recordar como lo hice Carlos, Cuando construyes te aparecen muchos warnings de los ficheros de cabecera de Borland ? [quote:242ktiyu]In file included from c:\bcc7164\include\windows\sdk\ole2.h:38: In file included from c:\bcc7164\include\windows\sdk\objbase.h:28: In file included from c:\bcc7164\include\windows\sdk\combaseapi.h:407: c:\bcc7164\include\windows\sdk\objidlbase.h:192:34: warning: redefinition of typedef 'IRpcStubBuffer' is a C11 feature [-Wtypedef-redefinition] typedef interface IRpcStubBuffer IRpcStubBuffer; ^ c:\bcc7164\include\windows\sdk\combaseapi.h:392:41: note: previous definition is here typedef interface IRpcStubBuffer IRpcStubBuffer; ^ In file included from ../../../pngrutil.c:17: In file included from ../../../pngpriv.h:462: In file included from c:\bcc7164\include\windows\sdk\windows.h:260: In file included from c:\bcc7164\include\windows\sdk\ole2.h:38: In file included from c:\bcc7164\include\windows\sdk\objbase.h:29: In file included from c:\bcc7164\include\windows\sdk\coml2api.h:42: c:\bcc7164\include\windows\sdk\propidlbase.h:139:31: warning: redefinition of typedef 'PROPVARIANT' is a C11 feature [-Wtypedef-redefinition] typedef struct tagPROPVARIANT PROPVARIANT; ^ c:\bcc7164\include\windows\sdk\combaseapi.h:1341:31: note: previous definition is here typedef struct tagPROPVARIANT PROPVARIANT;[/quote:242ktiyu]
Construir Harbour con BCC 7.1
Con este go_64.bat: set path=c:\bcc7164\bin set HB_COMPILER=bcc64 set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include set HB_COMP_PATH_PUB=c:\bcc7164\bin\ set HB_USER_CFLAGS=-Ic:\bcc7164\include\windows\crtl -Ic:\bcc7164\include\windows\sdk win-make.exe LLego hasta este error: ilink64.exe -L"c:\bcc7164\bin\..\Lib" -L"c:\bcc7164\bin\..\Lib\PSDK" -q -Gn -C -aa -Tpd -Gi -x -L"..\..\..\..\..\lib\win\bcc64" -L"c:\bcc7164\lib\psdk" c:\bcc7164\lib\c0d64.o @__dyn__.tmp Error: Unresolved external 'regexec' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O Error: Unresolved external 'regfree' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O Error: Unresolved external 'regcomp' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O
Construir Harbour con BCC 7.1
Esos errores se solucionan NO modificando hbregex.h Con el batch file que he proporcionado llego hasta aqui, lo cual quiere decir que ya intenta construir las contribs: ! Started package build... ! Calculating build order for 67 projects... ! Warning: 'hbmk2 --hbinfo' failed with exit code 20 c:\harb64\bin\win\bcc64\hbmk2 -quiet -width=0 -autohbm- @hbpre -inc ../contrib/hbmzip/3rd/minizip/minizip.hbp @hbpost bcc64.exe: warning: argument unused during compilation: '-CP437' bcc64.exe: warning: argument unused during compilation: '-d' bcc64.exe: warning: argument unused during compilation: '-w-sig-' bcc64.exe: warning: argument unused during compilation: '-w-aus-' bcc64.exe: warning: argument unused during compilation: '-w-ccc-' bcc64.exe: warning: argument unused during compilation: '-w-csu-' bcc64.exe: warning: argument unused during compilation: '-w-par-' bcc64.exe: warning: argument unused during compilation: '-w-rch-' bcc64.exe: warning: argument unused during compilation: '-w-ucp-' bcc64.exe: warning: argument unused during compilation: '-w-use-' bcc64.exe: warning: argument unused during compilation: '-w-prc-' bcc64.exe: warning: argument unused during compilation: '-w-pia-' ..\contrib\hbmzip\3rd\minizip\ioapi.c: error: invalid integral value 'c' in '-Oc' error: invalid integral value 'c' in '-Oc' ..\contrib\hbmzip\3rd\minizip\zip.c: error: invalid integral value 'c' in '-Oc' error: invalid integral value 'c' in '-Oc' ..\contrib\hbmzip\3rd\minizip\unzip.c: error: invalid integral value 'c' in '-Oc' error: invalid integral value 'c' in '-Oc' hbmk2[minizip]: Error: Running C/C++ compiler. 1 hbmk2[minizip]: Exit code: 6: failed in compilation (Harbour, C compiler, Resource compiler) ! Finished package build... makefile:8: recipe for target 'first' failed win-make.exe[1]: *** [first] Error 6 config/dir.mk:71: recipe for target 'contrib' failed win-make.exe: *** [contrib] Error 2
Construir Harbour con BCC 7.1
hay que modificar harbour\utils\hbmk2.prg así. Ahora hbmk2.exe se construye y empieza a construir las contribs Estas líneas se encuentran buscando "bcc64" línea 4959: cOpt_CompC += " -d -O2" línea 4965: cLibBCC_CRTL := "cw64mt.a" línea 4978: cLibBCC_CRTL := "cw64.a" lineas 5003 y 5004: cOpt_Link := "-Gn -Tpe -L{DL} {FL} " + iif( hbmk[ _HBMK_lGUI ], "c:\bcc7164\lib\c0w64.o", "c:\bcc7164\lib\c0x64.o" ) + " {LO}, {OE}, " + iif( hbmk[ _HBMK_lMAP ], "{OM}", "nul" ) + ", {LL} {LB} {LF} " + cLibBCC_CRTL + " import64.a, {IM}, {LS}{SCRIPT}" cOpt_Dyn := "-Gn -Tpd -L{DL} {FD} " + "c:\bcc7164\lib\c0d64.o" + " {LO}, {OD}, " + iif( hbmk[ _HBMK_lMAP ], "{OM}", "nul" ) + ", {LL} {LB} {LF} " + cLibBCC_CRTL + " import64.a, {IM}, {LS}{SCRIPT}"
Construir Harbour con BCC 7.1
Tendriamos que encontrar la manera de modificar esto: "c:\bcc7164\lib\c0w64.o" "c:\bcc7164\lib\c0x64.o" "c:\bcc7164\lib\c0d64.o" para que sea genérico en el anterior cambio propuesto para hbmk2.prg
Construir Harbour con BCC 7.1
Este error aparece varias veces: Fatal: Archive file 'C:\BCC7164\LIB\PSDK\UUID.A' lists no symbols in its dictionary.
Construir Harbour con BCC 7.1
Estas son las librerías construidas: 04/21/2017 12:28 PM 173,500 hbzlib.a 04/21/2017 12:28 PM 463,616 png.a 04/21/2017 12:28 PM 486,034 hbpcre.a 04/21/2017 12:28 PM 542,336 jpeg.a 04/21/2017 12:28 PM 589,636 tiff.a 04/21/2017 12:29 PM 1,504 hbmaindllh.a 04/21/2017 12:29 PM 1,718 hbmainstd.a 04/21/2017 12:29 PM 1,736 hbmainwin.a 04/21/2017 12:29 PM 17,018 hbnortl.a 04/21/2017 12:29 PM 58,100 hbmaindllp.a 04/21/2017 12:29 PM 238,050 hbcommon.a 04/21/2017 12:29 PM 753,786 hbcplr.a 04/21/2017 12:29 PM 763,414 hbpp.a 04/21/2017 12:29 PM 1,141,582 hbvm.a 04/21/2017 12:29 PM 1,167,728 hbvmmt.a 04/21/2017 12:31 PM 8,164 gtgui.a 04/21/2017 12:31 PM 10,068 gtcgi.a 04/21/2017 12:31 PM 12,860 gtstd.a 04/21/2017 12:31 PM 19,748 gtpca.a 04/21/2017 12:31 PM 43,412 gtwin.a 04/21/2017 12:31 PM 150,156 hbmacro.a 04/21/2017 12:31 PM 158,436 gtwvt.a 04/21/2017 12:31 PM 299,914 hblang.a 04/21/2017 12:31 PM 791,690 hbcpage.a 04/21/2017 12:31 PM 5,406,764 hbrtl.a 04/21/2017 12:32 PM 13,346 hbnulrdd.a 04/21/2017 12:32 PM 42,086 hbhsx.a 04/21/2017 12:32 PM 103,752 hbsix.a 04/21/2017 12:32 PM 104,064 hbuddall.a 04/21/2017 12:32 PM 108,934 rddfpt.a 04/21/2017 12:32 PM 135,132 hbusrrdd.a 04/21/2017 12:32 PM 155,686 rddntx.a 04/21/2017 12:32 PM 162,470 rddnsx.a 04/21/2017 12:32 PM 232,152 hbextern.a 04/21/2017 12:32 PM 274,318 harbour-32.a 04/21/2017 12:32 PM 394,902 hbdebug.a 04/21/2017 12:32 PM 395,160 rddcdx.a 04/21/2017 12:32 PM 538,402 hbrdd.a 04/21/2017 12:46 PM 75,092 minizip.a 04/21/2017 12:46 PM 108,470 bz2.a 04/21/2017 12:46 PM 608,520 hbwin.a 04/21/2017 12:47 PM 7,280 tinymt.a 04/21/2017 12:47 PM 33,424 hbfship.a 04/21/2017 12:47 PM 48,850 hbmzip.a 04/21/2017 12:47 PM 69,832 rddsql.a 04/21/2017 12:47 PM 94,664 xdiff.a 04/21/2017 12:47 PM 122,248 hbxpp.a 04/21/2017 12:47 PM 337,536 hbssls.a 04/21/2017 12:47 PM 463,992 hbtip.a 04/21/2017 12:47 PM 610,924 hbct.a 04/21/2017 12:47 PM 1,633,960 sqlite3.a 04/21/2017 12:48 PM 8,804 lzf.a 04/21/2017 12:48 PM 13,628 hbbz2.a 04/21/2017 12:48 PM 16,994 minilzo.a 04/21/2017 12:48 PM 19,284 sddsqlt3.a 04/21/2017 12:48 PM 24,228 sddodbc.a 04/21/2017 12:48 PM 26,144 hbziparc.a 04/21/2017 12:48 PM 32,732 rddbm.a 04/21/2017 12:48 PM 72,210 hbformat.a 04/21/2017 12:48 PM 97,862 mxml.a 04/21/2017 12:48 PM 119,968 hbnetio.a 04/21/2017 12:48 PM 140,940 hbzebra.a 04/21/2017 12:48 PM 329,454 expat.a 04/21/2017 12:48 PM 337,536 hbssl.a 04/21/2017 12:48 PM 1,107,754 xhb.a 04/21/2017 12:48 PM 1,217,878 libhpdf.a 04/21/2017 12:49 PM 13,458 hbtcpio.a 04/21/2017 12:49 PM 15,328 hbtest.a 04/21/2017 12:49 PM 17,112 hbsms.a 04/21/2017 12:49 PM 21,144 hbxdiff.a 04/21/2017 12:49 PM 21,708 hbtinymt.a 04/21/2017 12:49 PM 35,856 hbtpathy.a 04/21/2017 12:49 PM 115,260 hbsqlit3.a
Construir Harbour con BCC 7.1
[quote="Antonio Linares":37a2g6qk]Con este go_64.bat: set path=c:\bcc7164\bin set HB_COMPILER=bcc64 set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include set HB_COMP_PATH_PUB=c:\bcc7164\bin\ set HB_USER_CFLAGS=-Ic:\bcc7164\include\windows\crtl -Ic:\bcc7164\include\windows\sdk win-make.exe LLego hasta este error: ilink64.exe -L"c:\bcc7164\bin\..\Lib" -L"c:\bcc7164\bin\..\Lib\PSDK" -q -Gn -C -aa -Tpd -Gi -x -L"..\..\..\..\..\lib\win\bcc64" -L"c:\bcc7164\lib\psdk" c:\bcc7164\lib\c0d64.o @__dyn__.tmp Error: Unresolved external 'regexec' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O Error: Unresolved external 'regfree' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O Error: Unresolved external 'regcomp' referenced from C:\HARB64\SRC\RTL\OBJ\WIN\BCC64\HBREGEX_DYN.O[/quote:37a2g6qk] Antonio, gracias por responder. Sin modificar hbregex.h obtengo el siguiente error : [code=fw:37a2g6qk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />bcc64.exe   -I. -I../../../../../include -q -tWM -w -Q -w-sig- -O2 -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\sdk    -DUNICODE -DHB_HAS_PCRE -IC:/Harbour/src/3rd/pcre -DPCRE_STATIC -DHB_HAS_ZLIB -IC:/Harbour/src/3rd/zlib -I<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc71.64<span style="color: #000000;">\b</span>in<span style="color: #000000;">\.</span>.<span style="color: #000000;">\I</span>nclude"</span> -I<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc71.64<span style="color: #000000;">\b</span>in<span style="color: #000000;">\.</span>.<span style="color: #000000;">\I</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\c</span>rtl"</span> -I<span style="color: #ff0000;">"c:<span style="color: #000000;">\b</span>cc71.64<span style="color: #000000;">\b</span>in<span style="color: #000000;">\.</span>.<span style="color: #000000;">\I</span>nclude<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\s</span>dk"</span> -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl -Ic:\bcc71<span style="color: #000000;">.64</span>\include\windows\sdk -ohbregex.o  -c ../../../hbregex.c<br />../../../hbregex.c:<br /><span style="color: #000000;">In</span> file included <span style="color: #0000ff;">from</span> ../../../hbregex.c:<span style="color: #000000;">48</span>:<br /><span style="color: #000000;">In</span> file included <span style="color: #0000ff;">from</span> ../../../../../include\hbregex.h:<span style="color: #000000;">54</span>:<br /><span style="color: #000000;">c</span>:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl\pcre.h:<span style="color: #000000;">11</span>:<span style="color: #000000;">2</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">PCRE</span> not supported <span style="color: #0000ff;">on</span> WIN64: <span style="color: #000000;">use</span> standard<br />      header <regex><br />#error PCRE not supported <span style="color: #0000ff;">on</span> WIN64: <span style="color: #000000;">use</span> standard header <regex><br /> ^<br />../../../hbregex.c:<span style="color: #000000;">84</span>:<span style="color: #000000;">18</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'PCRE_UTF8'</span><br />      iCFlags |= PCRE_UTF8;<br />                 ^<br />../../../hbregex.c:<span style="color: #000000;">112</span>:<span style="color: #000000;">52</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">too</span> many arguments <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> call, expected <span style="color: #000000;">7</span>, have <span style="color: #000000;">8</span><br />                        pRegEx->iEFlags, aMatches, HB_REGMATCH_SIZE<span style="color: #000000;">&#40;</span> iMatches <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />../../../../../include\hbregex.h:<span style="color: #000000;">82</span>:<span style="color: #000000;">37</span>: <span style="color: #000000;">note</span>: <span style="color: #000000;">expanded</span> <span style="color: #0000ff;">from</span> macro <span style="color: #ff0000;">'HB_REGMATCH_SIZE'</span><br />   <span style="color: #00D7D7;">#define</span> HB_REGMATCH_SIZE<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>    <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                                    ^~~~~~~~~~~~~<br />c:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl\pcre.h:<span style="color: #000000;">74</span>:<span style="color: #000000;">1</span>: <span style="color: #000000;">note</span>: <span style="color: #ff0000;">'pcre_exec'</span> declared here<br />extern int<br />^<br />../../../hbregex.c:<span style="color: #000000;">561</span>:<span style="color: #000000;">21</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'PCRE_CONFIG_UTF8'</span><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pcre_config<span style="color: #000000;">&#40;</span> PCRE_CONFIG_UTF8, &s_iUTF8Enabled <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                    ^<br />../../../hbregex.c:<span style="color: #000000;">566</span>:<span style="color: #000000;">4</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'pcre_stack_malloc'</span><br />   pcre_stack_malloc = hb_pcre_grab;<br />   ^<br />../../../hbregex.c:<span style="color: #000000;">567</span>:<span style="color: #000000;">4</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'pcre_stack_free'</span><br />   pcre_stack_free = hb_pcre_free;<br />   ^<br /><span style="color: #000000;">6</span> errors generated.<br />../../../../../config/rules.mk:<span style="color: #000000;">84</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'hbregex.o'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>hbregex.o<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">1</span><br />../../config/lib.mk:<span style="color: #000000;">68</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'descend'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>descend<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />../config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'rtl'</span> failed<br />win-make.exe<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>rtl<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br />config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'src'</span> failed<br />win-make.exe: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>src<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br /><br /> </div>[/code:37a2g6qk] De que página puedo descargar OpenSSl ? Saludos
Construir Harbour con BCC 7.1
Vikthor, Descarga hbregex.h desde aqui: [url:3k1e377p]https&#58;//github&#46;com/harbour/core/blob/master/include/hbregex&#46;h[/url:3k1e377p] Aqui tienes OpenSSL, descomprímelo en c:\OpenSSL-Win32 [url:3k1e377p]https&#58;//bitbucket&#46;org/fivetech/harbour-xharbour-builds/downloads/OpenSSL-Win32&#46;zip[/url:3k1e377p]
Construir Harbour con BCC 7.1
Hola de nuevo Si uso hbregex.h sin cambios obtengo el siguiente error [code=fw:3bwm2xx6]<div class="fw" id="{CB}" style="font-family: monospace;">ilink64.exe  -L<span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\l</span>ib<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64"</span> -Gn -Tpe   -Lc:\bcc71<span style="color: #000000;">.64</span>\lib;c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk c:\bcc71<span style="color: #000000;">.64</span>\LIB\c0x64.o hbmk2.o, <span style="color: #ff0000;">"..<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\.</span>.<span style="color: #000000;">\b</span>in<span style="color: #000000;">\w</span>in<span style="color: #000000;">\b</span>cc64<span style="color: #000000;">\h</span>bmk2.exe"</span>, nul, hbextern hbdebug hbvmmt hbrtl hblang hbcpage gtcgi gtpca gtstd gtwvt gtgui gtwin hbrdd rddntx rddnsx rddcdx rddfpt hbsix hbhsx hbusrrdd hbuddall hbrtl hbvmmt hbmacro hbcplr hbpp hbcommon hbpcre hbzlib c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\kernel32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\user32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\ws2_32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\iphlpapi c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\advapi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\psdk\gdi32 c:\bcc71<span style="color: #000000;">.64</span>\lib\cw64mt c:\bcc71<span style="color: #000000;">.64</span>\lib\import64,, hbmk2.res<br />Turbo Incremental Link64 <span style="color: #000000;">6.72</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regexec'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regfree'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'regcomp'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR\LIB\WIN\BCC64\HBRTL.A|hbregex.o  </div>[/code:3bwm2xx6] Si lo uso con los cambios sugeridos por carlos obtengo éste otro error. [code=fw:3bwm2xx6]<div class="fw" id="{CB}" style="font-family: monospace;"> c:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl\pcre.h:<span style="color: #000000;">11</span>:<span style="color: #000000;">2</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">PCRE</span> not supported <span style="color: #0000ff;">on</span> WIN64: <span style="color: #000000;">use</span> standard<br />      header <regex><br />#error PCRE not supported <span style="color: #0000ff;">on</span> WIN64: <span style="color: #000000;">use</span> standard header <regex><br /> ^<br />../../../hbregex.c:<span style="color: #000000;">84</span>:<span style="color: #000000;">18</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'PCRE_UTF8'</span><br />      iCFlags |= PCRE_UTF8;<br />                 ^<br />../../../hbregex.c:<span style="color: #000000;">112</span>:<span style="color: #000000;">52</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">too</span> many arguments <span style="color: #0000ff;">to</span> <span style="color: #00C800;">function</span> call, expected <span style="color: #000000;">7</span>, have <span style="color: #000000;">8</span><br />                        pRegEx->iEFlags, aMatches, HB_REGMATCH_SIZE<span style="color: #000000;">&#40;</span> iMatches <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />../../../../../include\hbregex.h:<span style="color: #000000;">82</span>:<span style="color: #000000;">37</span>: <span style="color: #000000;">note</span>: <span style="color: #000000;">expanded</span> <span style="color: #0000ff;">from</span> macro <span style="color: #ff0000;">'HB_REGMATCH_SIZE'</span><br />   <span style="color: #00D7D7;">#define</span> HB_REGMATCH_SIZE<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span>    <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />                                    ^~~~~~~~~~~~~<br />c:\bcc71<span style="color: #000000;">.64</span>\include\windows\crtl\pcre.h:<span style="color: #000000;">74</span>:<span style="color: #000000;">1</span>: <span style="color: #000000;">note</span>: <span style="color: #ff0000;">'pcre_exec'</span> declared here<br />extern int<br />^<br />../../../hbregex.c:<span style="color: #000000;">561</span>:<span style="color: #000000;">21</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'PCRE_CONFIG_UTF8'</span><br />   <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> pcre_config<span style="color: #000000;">&#40;</span> PCRE_CONFIG_UTF8, &s_iUTF8Enabled <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />                    ^<br />../../../hbregex.c:<span style="color: #000000;">566</span>:<span style="color: #000000;">4</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'pcre_stack_malloc'</span><br />   pcre_stack_malloc = hb_pcre_grab;<br />   ^<br />../../../hbregex.c:<span style="color: #000000;">567</span>:<span style="color: #000000;">4</span>: <span style="color: #000000;">error</span>: <span style="color: #000000;">use</span> <span style="color: #0000ff;">of</span> undeclared identifier <span style="color: #ff0000;">'pcre_stack_free'</span><br />   pcre_stack_free = hb_pcre_free;<br />   ^<br /><span style="color: #000000;">6</span> errors generated.</div>[/code:3bwm2xx6]
Construir Harbour con BCC 7.1
Vikthor, > Si uso hbregex.h sin cambios Haz un win-make.exe clean primero
Construir Harbour con BCC 7.1
[quote="Antonio Linares":1af1idvy]Vikthor, > Si uso hbregex.h sin cambios Haz un win-make.exe clean primero[/quote:1af1idvy] Antonio, Carlos , gracias por el apoyo. Ya conseguí crea la mayoría de las librerias de Harbour En el último reporte de error la solución que apliqué fue actualizar pcre.h de la carpeta en Bcc71 Ahora obtengo un nuevo mensaje de error y es con el siguiente archivo _HBMKAUT_HBMK2.O [code=fw:1af1idvy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />C:\Harbour\bin\win\bcc64\hbmk2 -quiet -width=<span style="color: #000000;">0</span> -autohbm- @hbpre -inc hbrun/hbrun.hbp @hbpost<br />Borland <span style="color: #0000ff;">Resource</span> Compiler  Version <span style="color: #000000;">5.40</span><br />Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1990</span>, <span style="color: #000000;">1999</span> Inprise Corporation.  All rights reserved.<br />..\bin\win\bcc64\.hbmk\hbrun\hbmk2.c:<br /><span style="color: #000000;">Turbo</span> Incremental Link64 <span style="color: #000000;">6.72</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />Fatal: <span style="color: #000000;">Unable</span> <span style="color: #0000ff;">to</span> open file <span style="color: #ff0000;">'_HBMKAUT_HBMK2.O'</span><br />hbmk2<span style="color: #000000;">&#91;</span>hbrun<span style="color: #000000;">&#93;</span>: <span style="color: #000000;">Error</span>: <span style="color: #000000;">Ejecutando</span> enlazador. <span style="color: #000000;">2</span><br />hbmk2<span style="color: #000000;">&#91;</span>hbrun<span style="color: #000000;">&#93;</span>: <span style="color: #000000;">C</span>ódigo de salida: <span style="color: #000000;">7</span>: <span style="color: #000000;">fallo</span> en el ensamblaje <span style="color: #00C800;">final</span> <span style="color: #000000;">&#40;</span>enlazador o gestor de bibliotecas<span style="color: #000000;">&#41;</span><br />! Finished package build...<br />makefile:<span style="color: #000000;">8</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'first'</span> failed<br />win-make<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>first<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">7</span><br />config/dir.mk:<span style="color: #000000;">71</span>: <span style="color: #000000;">recipe</span> <span style="color: #00C800;">for</span> target <span style="color: #ff0000;">'contrib'</span> failed<br />win-make: <span style="color: #000000;">***</span> <span style="color: #000000;">&#91;</span>contrib<span style="color: #000000;">&#93;</span> Error <span style="color: #000000;">2</span><br /> </div>[/code:1af1idvy]
Construir Harbour con BCC 7.1
Comprueba si el fichero _HBMKAUT_HBMK2.O se ha creado
Construir Harbour con BCC 7.1
[quote="Antonio Linares":3lqosgcd]Comprueba si el fichero _HBMKAUT_HBMK2.O se ha creado[/quote:3lqosgcd] Si, está creado en \Harbour\utils\hbmk2\obj\win\bcc64 y hay otra copia en \Harbour\bin\win\bcc64\.hmbk\hbrun
Construir Harbour con BCC 7.1
Prueba a hacer un win-make.exe clean nuevamente
Construir Harbour con BCC 7.1
[quote="Antonio Linares":16hqn3hc]Prueba a hacer un win-make.exe clean nuevamente[/quote:16hqn3hc] Apun así, sigue generando el error mencionado Saludos
Construir Harbour con BCC 7.1
<!-- l --><a class="postlink-local" href="https://fivetechsupport.com/forums/viewtopic.php?p=259237&sid=03bfb2529c984290c3fc7cacff79aa9d#p259237">viewtopic.php?p=259237&sid=03bfb2529c984290c3fc7cacff79aa9d#p259237</a><!-- l -->
Construir Harbour desde el nuevo repositorio en GIT
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=143698#p143698">viewtopic.php?p=143698#p143698</a><!-- l -->
Construir Harbour para bcc64 7.4 o 7.3
Hay alguien el foro que haya sido capaz de construir lo último de Harbour en el git con la versión de 64 bits del compilado BCC? Si es así puede indicar como lo ha conseguido? Le estaría eternamente agradecido.
Construir Harbour para bcc64 7.4 o 7.3
a la fecha no es posible construir harbour con el bcc 7.4 64 bits.
Construir Harbour para bcc64 7.4 o 7.3
Vaya... Como es eso Carlos? Y con cLang?
Construir Harbour para bcc64 7.4 o 7.3
Manuel: Probablemente en el foro de Harbour Developers tengan ya una solución. <!-- m --><a class="postlink" href="https://groups.google.com/forum/#!forum/harbour-devel">https://groups.google.com/forum/#!forum/harbour-devel</a><!-- m -->
Construir Harbour para bcc64 7.4 o 7.3
Visual Studio Community 64 bits ó MinGW GCC 64 bits son las opciones actuales para 64 bits. Ambos funcionan correctamente Microsoft Visual Studio Community [url:1zk2vxw2]https&#58;//visualstudio&#46;microsoft&#46;com/es/vs/community/[/url:1zk2vxw2] Versión 9.3 de MinGW GCC 64 bits [url:1zk2vxw2]http&#58;//winlibs&#46;com/#download-release[/url:1zk2vxw2]
Construir Harbour para bcc64 7.4 o 7.3
[url=https&#58;//ibb&#46;co/mNj0452:1m52kpet][img:1m52kpet]https&#58;//i&#46;ibb&#46;co/XYQDtxK/2020-04-15-20-57-53&#46;png[/img:1m52kpet][/url:1m52kpet]
Construir Harbour para bcc64 7.4 o 7.3
A la fecha no es posible construir el harbour de 64 bit con bcc 64 bit 7.4, se puede llegar hasta cierto punto pero luego falla, incluso para llegar hasta donde falla es necesario realizar cambios en los fichero de configuración para la construcción del compilador, en el hbmk2 también. como indica antonio, solo es posible construirlo con mingw64 y con MSVC 64.
Construir Harbour para bcc64 7.4 o 7.3
Pues al menos hay una versión BCC 10.2 de creación reciente, concretamente 12 Abril 2020.
Construir Harbour para bcc64 7.4 o 7.3
Esa versión (10.2 Tokyo) no es correcta. Si ejecutas el bcc32 que tiene dentro dice que es del 2017
Construir Harbour para bcc64 7.4 o 7.3
Es una pena que Harbour no se pueda construir con las versiones de bcc64 7.XX Lo mismo que se debería de poder construir con cLang de 32 y 64 que es la actual tendencia de todos los compiladores nativos. Mi pregunta es... alguien lo hará? o definitivamente solo se podrá con MSVC y MinGW?
Construir Harbour para bcc64 7.4 o 7.3
Aquí teneis la versión más reciente de Harbour construida usando BCC64 bits: [url:3kyxnngr]https&#58;//github&#46;com/FiveTechSoft/harbour_and_xharbour_builds/blob/master/harbour_win64_bcc_2020_05_07&#46;zip[/url:3kyxnngr] Lo más impresionante es que se construye automaticamente desde GitHub Actions <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:3kyxnngr]https&#58;//github&#46;com/FiveTechSoft/Harbour_builder/blob/master/&#46;github/workflows/harbour_bcc_64&#46;yml[/url:3kyxnngr] Cada vez que querais la versión más reciente de Harbour compilada con BCC en 64 bits solo teneis que ir a esa URL y "pulsar" en el botón "Star" de arriba y GitHub os la construye y os la entrega recien hecha <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) -->
Construir aplicaciones FiveLinux desde gedit
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?p=35650#35650">http://fivetechsoft.com/forums/viewtopi ... 5650#35650</a><!-- m -->
Construir harbour desde los archivos del svn
Estoy intentando construir un nuevo Harbour desde los archivos bajados del svn . Desde el terminal me da el siguiente error . ¿ Alguna idea ? iMac-de-Manuel:harbour manuel$ /Applications/Xcode.app/Contents/Developer/usr/bin/make ! Building Harbour 3.2.0dev from source - <!-- m --><a class="postlink" href="http://harbour-project.org">http://harbour-project.org</a><!-- m --> ! MAKE: /Applications/Xcode.app/Contents/Developer/usr/bin/make 3.81 /bin/sh ! HB_HOST_PLAT: darwin (x86_64) HB_SHELL: sh config/global.mk:1235: *** ! HB_COMPILER not set, could not autodetect. Stop. iMac-de-Manuel:harbour manuel$
Construir harbour desde los archivos del svn
Manuel, Prueba con: export HB_COMPILER=gcc desde el terminal, antes de llamar a make
Construir harbour desde los archivos del svn
Parece que no encuentra gcc . El problema probablemente es que no existe <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . Tengo el Xcode instalado pero no las tools de linea de comandos y por eso no tengo gcc. Por cierto sería bueno transladar este hilo a los hilos sobre fivemac <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ---------------- edito ------------------------------- Listo instalado Commands line tools 4.6 y compilado del tirón parece que sin errores .
Construyendo FiveMac apps desde HBIDE !!!
Aún hay un bug en HBIDE en OSX que solucionar, pero aparte de eso, ya podemos construir aplicaciones con FiveMac desde el HBIDE !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:3bl4xse0]http&#58;//a&#46;imageshack&#46;us/img43/4604/picture2pz&#46;png[/img:3bl4xse0] he usado estos settings para el HBIDE (puedes ejecutarlo como un script ó mejor hacer un script de auto ejecución en HBIDE): settings.prg [code=fw:3bl4xse0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span> oIde <span style="color: #000000;">&#41;</span><br /><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PATH"</span>, hb_getEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"PATH"</span> <span style="color: #000000;">&#41;</span> +<br /><span style="color: #ff0000;">":/Users/anto/harbour/harbour/bin/darwin/gcc"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"HB_COMPILER"</span>, <span style="color: #ff0000;">"gcc"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"HB_USER_PRGFLAGS"</span>, <span style="color: #ff0000;">"-i/Users/anto/fivemac/include"</span> &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"HB_USER_LDFLAGS"</span>, <span style="color: #ff0000;">"-L/Users/anto/fivemac/lib -framework Cocoa"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"HB_USER_LIBS"</span>, <span style="color: #ff0000;">"five.lib fivec.lib"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; hb_setEnv<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"HB_GUI"</span>, <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; MsgBox<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FiveMac settings loaded"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3bl4xse0]
Construyendo FiveMac apps desde HBIDE !!!
Arreglado un pequeño bug en HBIDE que hacía que no se viese el código fuente editado: [img:28b29g00]http&#58;//a&#46;imageshack&#46;us/img31/4673/picture3lj&#46;png[/img:28b29g00] [url:28b29g00]http&#58;//groups&#46;google&#46;es/group/harbour-devel/browse_thread/thread/579a610cb92a0c93?hl=es[/url:28b29g00]
Construyendo FiveMac apps desde HBIDE !!!
[img:2e6nr5l1]http&#58;//img408&#46;imageshack&#46;us/img408/9371/screenshot20100714at114&#46;png[/img:2e6nr5l1]
Construyendo Harbour desde el iPhone/iPad
[url:ff7ow4ko]http&#58;//code&#46;google&#46;com/p/fivephone/wiki/Build_Harbour_from_iPhone_iPad[/url:ff7ow4ko] [img:ff7ow4ko]http&#58;//img190&#46;imageshack&#46;us/img190/2340/screenshot20110409at248&#46;png[/img:ff7ow4ko] [img:ff7ow4ko]http&#58;//img23&#46;imageshack&#46;us/img23/7803/screenshot20110409at254&#46;png[/img:ff7ow4ko]
Construyendo Scintilla.framework como un binario universal
Hay que usar Xcode 3.2.5 pues es el ultimo xcode que permite la creacion de binarios universales (intel y ppc). Xcode 3.2.5 puede descargarse desde aqui: [url:38tnq3iv]https&#58;//developer&#46;apple&#46;com/downloads[/url:38tnq3iv] Antes de construirlo (el proyecto para xcode esta incluido en la carpeta cocoa del fichero descargado de Scintilla), en las propiedades del proyecto, hay que cambia el SDK base a 10.5 y la arquitectura a Standard (32/64- bit Universal). Scintilla se descarga desde sourceforge: [url:38tnq3iv]http&#58;//sourceforge&#46;net/projects/scintilla/files/scintilla/[/url:38tnq3iv] Xcode 3.2.6 no soporta ppc. Puedes descargarlo ya construido desde: [url:38tnq3iv]http&#58;//code&#46;google&#46;com/p/fivemac/downloads/detail?name=Scintilla-framework_Universal&#46;zip&can=2&q=[/url:38tnq3iv]
Construyendo dinamicamente árbol con la jerarquía de Clases
Un primer intento de construir dinamicamente un árbol con la jerarquia de Classes usadas en una aplicación <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> classtree.prg [code=fw:1lyfilog]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> aClasses := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oWnd<br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Classes hierarchy"</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />      <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span>, oClass, oTree, oItem, oChild<br /><br />   <span style="color: #00C800;">while</span> ! Empty<span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      AAdd<span style="color: #000000;">&#40;</span> aClasses, TClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n++ <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   end<br /><br />   <span style="color: #00C800;">for</span> each oClass in aClasses<br />      oClass:<span style="color: #000000;">GetSuper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">next</span><br /><br />   <span style="color: #00C800;">for</span> each oClass in aClasses<br />      oClass:<span style="color: #000000;">GetChilds</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">next</span><br /><br />   oTree = TTreeView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, oWnd <span style="color: #000000;">&#41;</span><br />   oTree:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">152</span><br />   <span style="color: #B900B9;">// oTree:SetImageList( oImageList )</span><br />   <span style="color: #B900B9;">// oTree:Add( "Files" )</span><br />   <span style="color: #00C800;">for</span> each oClass in aClasses<br />     <span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cSuper</span> <span style="color: #000000;">&#41;</span><br />        oItem = oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">for</span> each oChild in oClass:<span style="color: #000000;">aChilds</span><br />           oItem:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oChild:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">next</span> <br />     <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span><br /><br />   oTree:<span style="color: #000000;">Expand</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">CLASS</span> TClass<br /><br />   <span style="color: #00C800;">DATA</span>   cName<br />   <span style="color: #00C800;">DATA</span>   cSuper<br />   <span style="color: #00C800;">DATA</span>   aChilds <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />   ::<span style="color: #000000;">cName</span>  = cName<br />   ::<span style="color: #000000;">cSuper</span> = <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />   <span style="color: #00C800;">local</span> oClass, oInstance := &<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cName</span> + <span style="color: #ff0000;">"()"</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">for</span> each oClass in aClasses<br />      <span style="color: #00C800;">try</span><br />         <span style="color: #00C800;">if</span> oInstance:<span style="color: #000000;">IsDerivedFrom</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span> .and. ::<span style="color: #000000;">cName</span> != oClass:<span style="color: #000000;">cName</span><br />            ::<span style="color: #000000;">cSuper</span> = oClass:<span style="color: #000000;">cName</span><br />         <span style="color: #00C800;">endif</span><br />      end<br />   <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />   <span style="color: #00C800;">local</span> oClass<br /><br />   <span style="color: #00C800;">for</span> each oClass in aClasses<br />      <span style="color: #00C800;">if</span> oClass:<span style="color: #000000;">cSuper</span> == ::<span style="color: #000000;">cName</span><br />         AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aChilds</span>, oClass <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">function</span> Error<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> ErrorNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:1lyfilog] [img:1lyfilog]http&#58;//img861&#46;imageshack&#46;us/img861/8924/captureyj&#46;png[/img:1lyfilog]
Construyendo dinamicamente árbol con la jerarquía de Clases
Una versión mejorada <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> ClassTree.prg [code=fw:fwfazotu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">static</span> aClasses := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, o := TDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Classes hierarchy"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree := TTreeView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, oWnd <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass<br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">200</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oLeft</span> = oTree<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oTree:SetImageList( oImageList )</span><br /><br />&nbsp; &nbsp;GetClasses<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cSuper</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; AddChilds<span style="color: #000000;">&#40;</span> oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span>, oClass:<span style="color: #000000;">aChilds</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">Expand</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> AddChilds<span style="color: #000000;">&#40;</span> oItem, aChilds <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oChild, oSubItem<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oChild in aChilds<br />&nbsp; &nbsp; &nbsp; oSubItem = oItem:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oChild:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AddChilds<span style="color: #000000;">&#40;</span> oSubItem, oChild:<span style="color: #000000;">aChilds</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> GetClasses<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span>, oClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> ! Empty<span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aClasses, TClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n++ <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; oClass:<span style="color: #000000;">GetSuper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; oClass:<span style="color: #000000;">GetChilds</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cName<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cSuper<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aChilds <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cName</span> &nbsp;= cName<br />&nbsp; &nbsp;::<span style="color: #000000;">cSuper</span> = <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass, oInstance := &<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cName</span> + <span style="color: #ff0000;">"()"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">try</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oInstance:<span style="color: #000000;">IsDerivedFrom</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span> .and. ::<span style="color: #000000;">cName</span> != oClass:<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cSuper</span> = oClass:<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oClass:<span style="color: #000000;">cSuper</span> == ::<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aChilds</span>, oClass <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span> <br /><br /><span style="color: #00C800;">function</span> Error<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> ErrorNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:fwfazotu] [img:fwfazotu]http&#58;//img171&#46;imageshack&#46;us/img171/8917/capturenel&#46;png[/img:fwfazotu]
Construyendo dinamicamente árbol con la jerarquía de Clases
Antonio, Muchas gracias. ¿Y este ejemplo podría convertirse en otro para detectar recursos no liberados en las clases o en las funciones de la aplicación?. Salu2
Construyendo dinamicamente árbol con la jerarquía de Clases
Lucas, FiveWIn ya proporciona funciones para detectar cualquier recurso no liberado, creado desde las propias clases de FiveWin ó construidos por el programador. De todas formas los recursos no tienen una organización jerárquica, luego no veo un paralelismo entre lo que comentas y el ejemplo que estamos viendo.
Construyendo dinamicamente árbol con la jerarquía de Clases
Esta imagen es de 1991 y pertenece a Actor (c) Whitewater Group, adquirido posteriormente y abandonado por Symantec: [url:31qh60q8]http&#58;//en&#46;wikipedia&#46;org/wiki/Actor_(programming_language)[/url:31qh60q8] Veamos cuanto poder aproximar nuestro ejemplo a este browser <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [img:31qh60q8]http&#58;//img213&#46;imageshack&#46;us/img213/1920/capturemc&#46;png[/img:31qh60q8] [img:31qh60q8]http&#58;//img853&#46;imageshack&#46;us/img853/5022/capturearg&#46;png[/img:31qh60q8]
Construyendo dinamicamente árbol con la jerarquía de Clases
A propósito, poseo una copia original de Actor, con los manuales etc, pero no vienen incluidos los fuentes de las Classes. Alguno de vosotros tiene una copia de Actor con fuentes ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Construyendo dinamicamente árbol con la jerarquía de Clases
Maestro, esto te sirve? <!-- m --><a class="postlink" href="http://www.koders.com/cpp/fid7BDFFA087DF07FFD66BBBB26DDC23899A8C27346.aspx?s=opengl">http://www.koders.com/cpp/fid7BDFFA087D ... x?s=opengl</a><!-- m -->
Construyendo dinamicamente árbol con la jerarquía de Clases
Joao, No, gracias por el intento. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Esto es lo más próximo que he encontrado: [url:2hb7sdnd]http&#58;//biphome&#46;spray&#46;se/mikael_aronsson/index_ac&#46;html[/url:2hb7sdnd] [quote:2hb7sdnd]The goal with this project is to produce as full 32 bit implementation of the Actor language and class library for Win32[/quote:2hb7sdnd]
Construyendo dinamicamente árbol con la jerarquía de Clases
Versión mejorada: ClassTree.prg [code=fw:13hrhaol]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Splitter.ch"</span><br /><br /><span style="color: #00C800;">static</span> aClasses := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, oSplit1, oSplit2, oLbxDatas, oLbxMethods <br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, o := TDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Classes hierarchy"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> RESIZE <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oSplit1 != <span style="color: #00C800;">nil</span>, oSplit1:<span style="color: #000000;">AdjLeft</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oSplit2 != <span style="color: #00C800;">nil</span>, oSplit2:<span style="color: #000000;">AdjRight</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">function</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oMenu<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oMenu<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"About"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> BuildClassesTree<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oTree := TTreeView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, oWnd <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass, cData, cMethod<br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">nWidth</span> = <span style="color: #000000;">180</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// oTree:SetImageList( oImageList )</span><br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">Expand</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">186</span> <span style="color: #0000ff;">LISTBOX</span> oLbxDatas <span style="color: #0000ff;">VAR</span> cData <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"one"</span>, <span style="color: #ff0000;">"two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">391</span> <span style="color: #0000ff;">LISTBOX</span> oLbxMethods <span style="color: #0000ff;">VAR</span> cMethod <span style="color: #0000ff;">ITEMS</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"one"</span>, <span style="color: #ff0000;">"two"</span>, <span style="color: #ff0000;">"three"</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">181</span> SPLITTER oSplit1 ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VERTICAL</span> ;<br />&nbsp; &nbsp; &nbsp; PREVIOUS CONTROLS oTree ; <br />&nbsp; &nbsp; &nbsp; HINDS CONTROLS oLbxDatas ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">LEFT</span> MARGIN <span style="color: #000000;">150</span> ; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> MARGIN oSplit2:<span style="color: #000000;">nLast</span> + <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">300</span> &nbsp;<span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">STYLE</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">0</span>, <span style="color: #000000;">386</span> SPLITTER oSplit2 ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VERTICAL</span> ;<br />&nbsp; &nbsp; &nbsp; PREVIOUS CONTROLS oLbxDatas ;<br />&nbsp; &nbsp; &nbsp; HINDS CONTROLS oLbxMethods ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">LEFT</span> MARGIN oSplit1:<span style="color: #000000;">nFirst</span> + <span style="color: #000000;">120</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> MARGIN <span style="color: #000000;">80</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">4</span>, <span style="color: #000000;">300</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">STYLE</span><br /><br />&nbsp; &nbsp;GetClasses<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cSuper</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; AddChilds<span style="color: #000000;">&#40;</span> oTree:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span>, oClass:<span style="color: #000000;">aChilds</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;oTree:<span style="color: #000000;">bChanged</span> = <span style="color: #000000;">&#123;</span> || ShowClassInfo<span style="color: #000000;">&#40;</span> oTree <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</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;">function</span> ShowClassInfo<span style="color: #000000;">&#40;</span> oTree <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oItem := oTree:<span style="color: #000000;">GetSelected</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oItem != <span style="color: #00C800;">nil</span> .and. oItem:<span style="color: #000000;">Cargo</span> != <span style="color: #00C800;">nil</span> <br />&nbsp; &nbsp; &nbsp; oLbxDatas:<span style="color: #000000;">SetItems</span><span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>:<span style="color: #000000;">aDatas</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oLbxMethods:<span style="color: #000000;">SetItems</span><span style="color: #000000;">&#40;</span> oItem:<span style="color: #000000;">Cargo</span>:<span style="color: #000000;">aMethods</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; oLbxDatas:<span style="color: #000000;">SetItems</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oLbxMethods:<span style="color: #000000;">SetItems</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</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;">function</span> AddChilds<span style="color: #000000;">&#40;</span> oItem, aChilds <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oChild, oSubItem<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oChild in aChilds<br />&nbsp; &nbsp; &nbsp; oSubItem = oItem:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span> oChild:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oSubItem:<span style="color: #000000;">Cargo</span> = oChild &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; AddChilds<span style="color: #000000;">&#40;</span> oSubItem, oChild:<span style="color: #000000;">aChilds</span> <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<span style="color: #00C800;">next</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;">function</span> GetClasses<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n := <span style="color: #000000;">1</span>, oClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> ! Empty<span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aClasses, TClass<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> __ClassName<span style="color: #000000;">&#40;</span> n++ <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; oClass:<span style="color: #000000;">GetSuper</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; oClass:<span style="color: #000000;">GetChilds</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</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;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cName<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cSuper<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aChilds <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aDatas<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aMethods<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> cName <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cName</span> &nbsp;= cName<br />&nbsp; &nbsp;::<span style="color: #000000;">cSuper</span> = <span style="color: #ff0000;">""</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> GetSuper<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass, oInstance := &<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cName</span> + <span style="color: #ff0000;">"()"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">aDatas</span> == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aDatas</span> &nbsp; = __objGetMsgList<span style="color: #000000;">&#40;</span> oInstance, .T. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aMethods</span> = __objGetMsgList<span style="color: #000000;">&#40;</span> oInstance, .F. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">try</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oInstance:<span style="color: #000000;">IsDerivedFrom</span><span style="color: #000000;">&#40;</span> oClass:<span style="color: #000000;">cName</span> <span style="color: #000000;">&#41;</span> .and. ::<span style="color: #000000;">cName</span> != oClass:<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cSuper</span> = oClass:<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</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;">METHOD</span> GetChilds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oClass<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> each oClass in aClasses<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> oClass:<span style="color: #000000;">cSuper</span> == ::<span style="color: #000000;">cName</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aChilds</span>, oClass <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">next</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;">function</span> Error<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> ErrorNew<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:13hrhaol] [img:13hrhaol]http&#58;//img843&#46;imageshack&#46;us/img843/8941/captureovp&#46;png[/img:13hrhaol]
Consulta
Hola: Alguien de ustedes ha trabajado con winsock?...He visto que por ahí va el camino para desarrollar aplicaciones cliente servidor. Saludos David Lagos S. Coquimbo-Chile
Consulta
David, Revisa los ejemplos fwh\samples\sockserv.prg y sockcli.prg que muestran un ejemplo de cliente-servidor. Usan la clase TSocket de FiveWin que está basada en WinSock.
Consulta
muchas gracias Antonio Saludos David
Consulta
Necesito adicionar a una aplicación un diseñador de reportes y que pueda usarlo tanto en bbdd planas como sql. conozco Crystal Reports y Fastreport ( no los use nunca ). Me gustaría, si fueran tan amables, me orienten en la elección del mismo. desde ya muchas gracias.
Consulta
Hola a todos Cual es la diferencia entre fivetouch, fiveandroid, fivemac? como funciona? habran ejemplos? Atentamente Julio Ponce
Consulta
Julio, FiveMac es como FiveWin pero para el sistema operativo de los ordenadores de Apple No existe un FiveAndroid FiveTouch es para Android, está basado en QT.
Consulta
Si buscas por FiveMac o FiveTouch en estos foros encontraras ejemplos de uso.
Consulta
Hola Amigos, muy buen dia. Tengo un problema con un sistema realizado en Clipper 5.2 de 16 Bits, donde solo se tiene el EXE operando en windows xp. Necesito saber si existe alguna forma de ejecutar este EXE de 16 Bits, en un sistema operativo windows 10 64 bits? Muchos Saludos Antonio
Consulta
Estimado Antonio No hay forma de como ejecutar un 16bits en 64bits Podría intentar con DOSBOX [url:8pv3d23v]https&#58;//www&#46;dosbox&#46;com[/url:8pv3d23v]
Consulta
[quote="acuellar":jknqdru9]Estimado Antonio No hay forma de como ejecutar un 16bits en 64bits Podría intentar con DOSBOX [url:jknqdru9]https&#58;//www&#46;dosbox&#46;com[/url:jknqdru9][/quote:jknqdru9] Hola Adhemar C. Muchas gracias por responder. Me temia algo asi, tratare de ver si al cliente la acomoda una solucion asi, de lo contrario, tendra un problema sin solucion, ya que no quiere gastar en hacer un sistema nuevo. Muchos saludos Antonio
Consulta
hi, DOSbox was made for Games but you do not need it for Cl*pper App i prefer vDOSplus [url:jsxcyn8x]http&#58;//www&#46;vdosplus&#46;org/[/url:jsxcyn8x] [quote:jsxcyn8x]vDosPlus has all features of original vDos, but compared with original vDos, it also has a wide range of additional features and other improvements, such as direct support for long filenames (LFN) and their corresponding short filenames (SFN), enhanced keyboard and mouse support, visual display for bold and italic texts, plus many more useful or user-friendly features. [/quote:jsxcyn8x] --- did you have Source from Cl*pper App <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> if not : there is a Tool called Valkyrie which can de-compile Cl*pper Apps
Consulta
Intente con este EMULADOR: [url:34rpllj6]https&#58;//github&#46;com/otya128/winevdm/releases[/url:34rpllj6] [code=fw:34rpllj6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />C:\emulador\otvdmw.exe c:\Carpetadelexe\nombredelexe.exe<br /> </div>[/code:34rpllj6] ó via .BAT Espero que funcione. Regards, saludos.
Consulta Pantalla & Impresion Imagen 29cm x 21 cm
Estimados Colegas Tengo una imagen en un archivo bmp o jpg de 29cm x 21cm la muestro en un dialogo y la mando a impresion me varia el tamaño. Desde ya muchas gracias dante <!-- e --><a href="mailto:devwin2004@yahoo.com.ar">devwin2004@yahoo.com.ar</a><!-- e -->
Consulta !!! Harbour + FWH en MAC?
Buenas noches. Necesito saber si una aplicacion desarrollada en Harbour 32 y FWH puede correr en una notebook MAC i7. Maneja solo DBF y NTX. Gracias. José Camilo
Consulta !!! Harbour + FWH en MAC?
Saludos Esta puede ser una manera de hacerlo, dale un vistazo: [url:20jejf3e]https&#58;//www&#46;winehq&#46;org[/url:20jejf3e]
Consulta !!! Harbour + FWH en MAC?
[url:333qlg7v]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=43403&sid=7b96b402369d2f8d042fea94ad3da076[/url:333qlg7v] saludos.
Consulta !!! Harbour + FWH en MAC?
Usa [url:3u4s2fbz]https&#58;//winebottler&#46;kronenberg&#46;org/[/url:3u4s2fbz]
Consulta !!! Harbour + FWH en MAC?
MUCHAS GRACIAS por las respuestas. Gracias. José Camilo
Consulta - gente de Argentina
Buenas noches. Me han propuesto hacer una aplicacion que genere boletas de pagos para poder pagarlo en los Rapi-Pagos. Jamas hice lo que me piden, tengo algunas dudas: 1) el codigo de barra incluye algun codigo que identifique la empresa que genero el pago? 2) hay que hacer alguna habilitacion para poder utilizar los pagos por medio de Rapi-Pago? gracias.
Consulta - gente de Argentina
[quote="goosfancito":1mqh03h9]Buenas noches. Me han propuesto hacer una aplicacion que genere boletas de pagos para poder pagarlo en los Rapi-Pagos. Jamas hice lo que me piden, tengo algunas dudas: 1) el codigo de barra incluye algun codigo que identifique la empresa que genero el pago? 2) hay que hacer alguna habilitacion para poder utilizar los pagos por medio de Rapi-Pago? gracias.[/quote:1mqh03h9] Buenas Rapipago te da numero de comercio/adherente y formato del codigo de barras La empresa debe contratar los servicios de RapiPago ( o la empresa de cobros express que quieras ) lo primero que debes hacer es contactar un vendedor de rapipagos
Consulta - gente de Argentina
Hola goosfancito: [quote:b9s35ak0]1) el codigo de barra incluye algun codigo que identifique la empresa que genero el pago?[/quote:b9s35ak0] Si, esta es la estructura del codigo de barras puedes verla aqui: [url:b9s35ak0]http&#58;//nqnwebs&#46;com/IMG/pdf/I03-_Diseno_del_Codigo_de_Barras_y_Archivo_de_Transmision_-_Adminstradoras_de_Consorcio&#46;pdf[/url:b9s35ak0] [quote:b9s35ak0]2) hay que hacer alguna habilitacion para poder utilizar los pagos por medio de Rapi-Pago?[/quote:b9s35ak0] Si, la empresa que va a generar las boletas de pago, debe contratar el servicio de Pago Facil o Rapipago, hay todo un contrato legal que que rige la operatoria. Saludos
Consulta - gente de Argentina
gracias ambos!
Consulta - gente de Argentina
Yo tuve que hacer para Pago Facil, si llegas a necesitar, te doy una mano con eso. Saludos
Consulta - gente de Argentina
gracias! estoy en la provincia de Santa Fe, y estoy viendo porque se esta expandiendo "Santa Fe Servicios" y como los pagos van a realizarse dentro de la misma ciudad CREO que va a ser necesario que funcione.
Consulta ADO+MySQL
Hola tengo el siguiente código: [code:19gi5jgk]oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; oCon&#58;ConnectionString&#58;="Driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;Server=192&#46;168&#46;0&#46;221;Port=3306;Database=database;User=user;Password=password;Option=3;" oCon&#58;ConnectionTimeout&#58;=3600 oCon&#58;Open&#40;&#41; oDatos&#58;=toleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; oDatos&#58;CursorLocation &#58;= adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenDynamic //oDatos&#58;CursorType &#58;= adOpenKeySet oDatos&#58;Source &#58;= cCommand oDatos&#58;ActiveConnection&#40;oCon&#41; oDatos&#58;Open&#40;&#41;[/code:19gi5jgk] Si intento para [b:19gi5jgk]cCommand[/b:19gi5jgk]: TRUNCATE `LIBCOMP` funciona PERFECTO. Ahora si intento para [b:19gi5jgk]cCommand[/b:19gi5jgk]: "LIBCOMP" o "SELECT * FROM `LIBCOMP`" me da el siguiente error: Error description: Error adodb.recordset/6 DISP_E_UNKNOWNNAME: OPEN Acepto todas las sugerencias. Gracias David Lagos S. Coquimbo
Consulta ADO+MySQL
[quote="metaldrummer":27h11oiw]Hola tengo el siguiente código: [code:27h11oiw]oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; oCon&#58;ConnectionString&#58;="Driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;Server=192&#46;168&#46;0&#46;221;Port=3306;Database=database;User=user;Password=password;Option=3;" oCon&#58;ConnectionTimeout&#58;=3600 oCon&#58;Open&#40;&#41; oDatos&#58;=toleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; oDatos&#58;CursorLocation &#58;= adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenDynamic //oDatos&#58;CursorType &#58;= adOpenKeySet oDatos&#58;Source &#58;= cCommand oDatos&#58;ActiveConnection&#40;oCon&#41; oDatos&#58;Open&#40;&#41;[/code:27h11oiw] Si intento para [b:27h11oiw]cCommand[/b:27h11oiw]: TRUNCATE `LIBCOMP` funciona PERFECTO. Ahora si intento para [b:27h11oiw]cCommand[/b:27h11oiw]: "LIBCOMP" o "SELECT * FROM `LIBCOMP`" me da el siguiente error: Error description: Error adodb.recordset/6 DISP_E_UNKNOWNNAME: OPEN Acepto todas las sugerencias. Gracias David Lagos S. Coquimbo[/quote:27h11oiw] David yo uso esta conexion y me funciona. [code:27h11oiw] PROCEDURE AbreConex&#40; oConexion,oTipmod&#41; Local E, STable,SField ,SField2, SWhere STable &#58;= &#91;ktipmod&#93; SField &#58;= &#91;estado&#93; SField2 &#58;= &#91;nome&#93; SWhere &#58;= SField+&#91;="PR"&#93; Try //BEGIN SEQUENCE // Try oConexion&#58;=CreateObject&#40;"ADODB&#46;Connection"&#41; oConexion&#58;Open &#58;=&#91;driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;database=&#93;+memvar->SDatabase+; &#91;;server=&#93;+memvar->SServer+&#91;;uid=&#93;+memvar->SUserID+&#91;;pwd=&#93;+memvar->SUserPWD+&#91;;option=35&#93; Catch e //RECOVER USING E // Catch e MsgStop&#40;"Operacion&#58; "+E&#58;operation+" - "+"Descripcion&#46;&#46;&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //END TRY End RETURN PROCEDURE AbreTabla&#40; oConexion,oTipmod&#41; Local E,bus,tbus Try //BEGIN SEQUENCE // Try oTipmod&#58;=CreateObject&#40;"ADODB&#46;Recordset"&#41; // oTipmod&#58;CursorLocation &#58;= adUseClient oTipmod&#58;CursorType &#58;= adOpenDynamic oTipmod&#58;LockType &#58;= adLockOptimistic oTipmod&#58;ActiveConnection &#58;= oConexion // oTipmod&#58;Source &#58;= "Select * from ktipmod" oTipmod&#58;Open&#40;&#41; ? STR&#40;oTipmod&#58;RecordCount&#40;&#41;&#41; +" "+STR&#40;oTipmod&#58;Fields&#58;Count&#40;&#41;&#41; Catch e //RECOVER USING E //Catch e MsgStop&#40;"Operacion&#58; ff "+E&#58;operation+" - "+"Descripcion&#46;&#46;*&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //End RETURN [/code:27h11oiw] Que version de FWH y harbour esta utilizando
Consulta ADO+MySQL
[quote="ruben Dario":4fo8f57e][quote="metaldrummer":4fo8f57e]Hola tengo el siguiente código: [code:4fo8f57e]oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; oCon&#58;ConnectionString&#58;="Driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;Server=192&#46;168&#46;0&#46;221;Port=3306;Database=database;User=user;Password=password;Option=3;" oCon&#58;ConnectionTimeout&#58;=3600 oCon&#58;Open&#40;&#41; oDatos&#58;=toleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; oDatos&#58;CursorLocation &#58;= adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenDynamic //oDatos&#58;CursorType &#58;= adOpenKeySet oDatos&#58;Source &#58;= cCommand oDatos&#58;ActiveConnection&#40;oCon&#41; oDatos&#58;Open&#40;&#41;[/code:4fo8f57e] Si intento para [b:4fo8f57e]cCommand[/b:4fo8f57e]: TRUNCATE `LIBCOMP` funciona PERFECTO. Ahora si intento para [b:4fo8f57e]cCommand[/b:4fo8f57e]: "LIBCOMP" o "SELECT * FROM `LIBCOMP`" me da el siguiente error: Error description: Error adodb.recordset/6 DISP_E_UNKNOWNNAME: OPEN Acepto todas las sugerencias. Gracias David Lagos S. Coquimbo[/quote:4fo8f57e] David yo uso esta conexion y me funciona. [code:4fo8f57e] PROCEDURE AbreConex&#40; oConexion,oTipmod&#41; Local E, STable,SField ,SField2, SWhere STable &#58;= &#91;ktipmod&#93; SField &#58;= &#91;estado&#93; SField2 &#58;= &#91;nome&#93; SWhere &#58;= SField+&#91;="PR"&#93; Try //BEGIN SEQUENCE // Try oConexion&#58;=CreateObject&#40;"ADODB&#46;Connection"&#41; oConexion&#58;Open &#58;=&#91;driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;database=&#93;+memvar->SDatabase+; &#91;;server=&#93;+memvar->SServer+&#91;;uid=&#93;+memvar->SUserID+&#91;;pwd=&#93;+memvar->SUserPWD+&#91;;option=35&#93; Catch e //RECOVER USING E // Catch e MsgStop&#40;"Operacion&#58; "+E&#58;operation+" - "+"Descripcion&#46;&#46;&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //END TRY End RETURN PROCEDURE AbreTabla&#40; oConexion,oTipmod&#41; Local E,bus,tbus Try //BEGIN SEQUENCE // Try oTipmod&#58;=CreateObject&#40;"ADODB&#46;Recordset"&#41; // oTipmod&#58;CursorLocation &#58;= adUseClient oTipmod&#58;CursorType &#58;= adOpenDynamic oTipmod&#58;LockType &#58;= adLockOptimistic oTipmod&#58;ActiveConnection &#58;= oConexion // oTipmod&#58;Source &#58;= "Select * from ktipmod" oTipmod&#58;Open&#40;&#41; ? STR&#40;oTipmod&#58;RecordCount&#40;&#41;&#41; +" "+STR&#40;oTipmod&#58;Fields&#58;Count&#40;&#41;&#41; Catch e //RECOVER USING E //Catch e MsgStop&#40;"Operacion&#58; ff "+E&#58;operation+" - "+"Descripcion&#46;&#46;*&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //End RETURN [/code:4fo8f57e] Que version de FWH y harbour esta utilizando[/quote:4fo8f57e] Rubén veo tu ejemplo hoy y te cuento mañana. Gracias por tu ayuda
Consulta ADO+MySQL
[quote="ruben Dario":2t0f31qc][quote="metaldrummer":2t0f31qc]Hola tengo el siguiente código: [code:2t0f31qc]oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; oCon&#58;ConnectionString&#58;="Driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;Server=192&#46;168&#46;0&#46;221;Port=3306;Database=database;User=user;Password=password;Option=3;" oCon&#58;ConnectionTimeout&#58;=3600 oCon&#58;Open&#40;&#41; oDatos&#58;=toleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; oDatos&#58;CursorLocation &#58;= adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenDynamic //oDatos&#58;CursorType &#58;= adOpenKeySet oDatos&#58;Source &#58;= cCommand oDatos&#58;ActiveConnection&#40;oCon&#41; oDatos&#58;Open&#40;&#41;[/code:2t0f31qc] Si intento para [b:2t0f31qc]cCommand[/b:2t0f31qc]: TRUNCATE `LIBCOMP` funciona PERFECTO. Ahora si intento para [b:2t0f31qc]cCommand[/b:2t0f31qc]: "LIBCOMP" o "SELECT * FROM `LIBCOMP`" me da el siguiente error: Error description: Error adodb.recordset/6 DISP_E_UNKNOWNNAME: OPEN Acepto todas las sugerencias. Gracias David Lagos S. Coquimbo[/quote:2t0f31qc] David yo uso esta conexion y me funciona. [code:2t0f31qc] PROCEDURE AbreConex&#40; oConexion,oTipmod&#41; Local E, STable,SField ,SField2, SWhere STable &#58;= &#91;ktipmod&#93; SField &#58;= &#91;estado&#93; SField2 &#58;= &#91;nome&#93; SWhere &#58;= SField+&#91;="PR"&#93; Try //BEGIN SEQUENCE // Try oConexion&#58;=CreateObject&#40;"ADODB&#46;Connection"&#41; oConexion&#58;Open &#58;=&#91;driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;database=&#93;+memvar->SDatabase+; &#91;;server=&#93;+memvar->SServer+&#91;;uid=&#93;+memvar->SUserID+&#91;;pwd=&#93;+memvar->SUserPWD+&#91;;option=35&#93; Catch e //RECOVER USING E // Catch e MsgStop&#40;"Operacion&#58; "+E&#58;operation+" - "+"Descripcion&#46;&#46;&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //END TRY End RETURN PROCEDURE AbreTabla&#40; oConexion,oTipmod&#41; Local E,bus,tbus Try //BEGIN SEQUENCE // Try oTipmod&#58;=CreateObject&#40;"ADODB&#46;Recordset"&#41; // oTipmod&#58;CursorLocation &#58;= adUseClient oTipmod&#58;CursorType &#58;= adOpenDynamic oTipmod&#58;LockType &#58;= adLockOptimistic oTipmod&#58;ActiveConnection &#58;= oConexion // oTipmod&#58;Source &#58;= "Select * from ktipmod" oTipmod&#58;Open&#40;&#41; ? STR&#40;oTipmod&#58;RecordCount&#40;&#41;&#41; +" "+STR&#40;oTipmod&#58;Fields&#58;Count&#40;&#41;&#41; Catch e //RECOVER USING E //Catch e MsgStop&#40;"Operacion&#58; ff "+E&#58;operation+" - "+"Descripcion&#46;&#46;*&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //End RETURN [/code:2t0f31qc] Que version de FWH y harbour esta utilizando[/quote:2t0f31qc] Rubén: Funcionó OK...al parecer se presenta un problema con toleauto + el odbc de mysql (utilizo la última versión) sobre win vista. Ahora mi pregunta es la siguiente si es que me puedes ayudar u alguien más: Cuál es el mejor tipo de datos para manejar números positivos y negativos? Gracias David
Consulta ADO+MySQL
[quote="metaldrummer":3hmwf9fh][quote="ruben Dario":3hmwf9fh][quote="metaldrummer":3hmwf9fh]Hola tengo el siguiente código: [code:3hmwf9fh]oCon&#58;=toleauto&#40;&#41;&#58;new&#40;"adodb&#46;connection"&#41; oCon&#58;ConnectionString&#58;="Driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;Server=192&#46;168&#46;0&#46;221;Port=3306;Database=database;User=user;Password=password;Option=3;" oCon&#58;ConnectionTimeout&#58;=3600 oCon&#58;Open&#40;&#41; oDatos&#58;=toleAuto&#40;&#41;&#58;New&#40;"adodb&#46;recordset"&#41; oDatos&#58;CursorLocation &#58;= adUseClient oDatos&#58;LockType &#58;= adLockOptimistic oDatos&#58;CursorType &#58;= adOpenDynamic //oDatos&#58;CursorType &#58;= adOpenKeySet oDatos&#58;Source &#58;= cCommand oDatos&#58;ActiveConnection&#40;oCon&#41; oDatos&#58;Open&#40;&#41;[/code:3hmwf9fh] Si intento para [b:3hmwf9fh]cCommand[/b:3hmwf9fh]: TRUNCATE `LIBCOMP` funciona PERFECTO. Ahora si intento para [b:3hmwf9fh]cCommand[/b:3hmwf9fh]: "LIBCOMP" o "SELECT * FROM `LIBCOMP`" me da el siguiente error: Error description: Error adodb.recordset/6 DISP_E_UNKNOWNNAME: OPEN Acepto todas las sugerencias. Gracias David Lagos S. Coquimbo[/quote:3hmwf9fh] David yo uso esta conexion y me funciona. [code:3hmwf9fh] PROCEDURE AbreConex&#40; oConexion,oTipmod&#41; Local E, STable,SField ,SField2, SWhere STable &#58;= &#91;ktipmod&#93; SField &#58;= &#91;estado&#93; SField2 &#58;= &#91;nome&#93; SWhere &#58;= SField+&#91;="PR"&#93; Try //BEGIN SEQUENCE // Try oConexion&#58;=CreateObject&#40;"ADODB&#46;Connection"&#41; oConexion&#58;Open &#58;=&#91;driver=&#123;MySQL ODBC 3&#46;51 Driver&#125;;database=&#93;+memvar->SDatabase+; &#91;;server=&#93;+memvar->SServer+&#91;;uid=&#93;+memvar->SUserID+&#91;;pwd=&#93;+memvar->SUserPWD+&#91;;option=35&#93; Catch e //RECOVER USING E // Catch e MsgStop&#40;"Operacion&#58; "+E&#58;operation+" - "+"Descripcion&#46;&#46;&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //END TRY End RETURN PROCEDURE AbreTabla&#40; oConexion,oTipmod&#41; Local E,bus,tbus Try //BEGIN SEQUENCE // Try oTipmod&#58;=CreateObject&#40;"ADODB&#46;Recordset"&#41; // oTipmod&#58;CursorLocation &#58;= adUseClient oTipmod&#58;CursorType &#58;= adOpenDynamic oTipmod&#58;LockType &#58;= adLockOptimistic oTipmod&#58;ActiveConnection &#58;= oConexion // oTipmod&#58;Source &#58;= "Select * from ktipmod" oTipmod&#58;Open&#40;&#41; ? STR&#40;oTipmod&#58;RecordCount&#40;&#41;&#41; +" "+STR&#40;oTipmod&#58;Fields&#58;Count&#40;&#41;&#41; Catch e //RECOVER USING E //Catch e MsgStop&#40;"Operacion&#58; ff "+E&#58;operation+" - "+"Descripcion&#46;&#46;*&#58; "+E&#58;Description+chr&#40;10&#41;&#41; Break E End //END SEQUENCE //End RETURN [/code:3hmwf9fh] Que version de FWH y harbour esta utilizando[/quote:3hmwf9fh] Rubén: Funcionó OK...al parecer se presenta un problema con toleauto + el odbc de mysql (utilizo la última versión) sobre win vista. Ahora mi pregunta es la siguiente si es que me puedes ayudar u alguien más: Cuál es el mejor tipo de datos para manejar números positivos y negativos? Gracias David[/quote:3hmwf9fh] Bueno todo ok hasta que..... al colocar una ip a la parte del server en el string de conexión me presenta el mismo error. Cambié server=localhost; por server=192.168.0.221 y se cae. Acepto sugerencias. Gracias
Consulta ADO+MySQL
Eso te ocurre por almacenar un valor incorrecto en algún campo.Corrige el valor y ya no se producirá mas dicho error.
Consulta ADO+MySQL
David:Tal vez los tiros van por aquí:Sabes que existen dos tipos de IPs, la IP fija y la IP diámica, al conectar el servidor a Internet se asigna una IP dinámica, a menos de que hayas contratado una IP fija, por lo que cada vez que apagas y prendes el servidor la IP será diferente (a eso se refiere con dinámica).Viendo tu ejemplo me doy cuenta que tienes la IP en forma constante, eso te obliga a conocer la IP que ahora tiene el servidor, cambiar tú código y volver a compilar.Si ese es el caso, contáctame que hay solución.Saludos
Consulta Ado con Fw vs VB - Solucionado
Hola Gente: Buenas tardes. Para solicitarles su ayuda en este tema. Estoy accesando a una Bd Progress y hago una consulta para traer en un Recordset. El tema es que haciendo la misma consulta con Fw y comparando con VB6. - Tiempo con FW = 03:00 minutos. - Tiempo con VB6= 00:10 sgdos. Algo estaré haciendo incorrectamente ? Pego aquí el código que estoy utilizando: [code=fw:kfyby48z]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">FUNCTION</span> fConecSrvAdo<span style="color: #000000;">&#40;</span>xcCnxStr,xnCursor<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">LOCAL</span> xoCnxSrv:=<span style="color: #00C800;">NIL</span>, oError<br />     MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Estableciendo conexión con el Servidor ..."</span><span style="color: #000000;">&#41;</span><br />     xnCursor :=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnCursor==<span style="color: #00C800;">NIL</span>,adUseServer,xnCursor<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// adUseClient   </span><br />     <span style="color: #00C800;">TRY</span><br />       xoCnxSrv := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Connection"</span> <span style="color: #000000;">&#41;</span>     <br />     CATCH oErr<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No se puede establecer conexion con el Servidor de Base Datos ...!"</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oErr <span style="color: #000000;">&#41;</span>      <br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END   <br />     xoCnxSrv:<span style="color: #000000;">ConnecTionString</span>:=xcCnxStr<br />     xoCnxSrv:<span style="color: #000000;">CursorLocation</span>  :=xnCursor<br />     <span style="color: #00C800;">TRY</span><br />       xoCnxSrv:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     CATCH oErr<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No se puede establecer conexion con el Servidor de Base Datos ...!"</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oErr <span style="color: #000000;">&#41;</span><br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END   <br />     <span style="color: #00C800;">RETURN</span> xoCnxSrv<br />*<br /><span style="color: #B900B9;">/*** Función para Crear RecordSet ***/</span><br />*  xoCnxSrv  : <span style="color: #000000;">Servidor</span> Conectado<br />*  xcCmdSql  : <span style="color: #000000;">Consulta</span> Sql<br />*  xnCursor  : <span style="color: #000000;">Que</span> lado estará el <span style="color: #0000ff;">cursor</span> del <span style="color: #00C800;">Server</span> o Cliente.<br />*  xnLockType: <span style="color: #000000;">Bloqueo</span> del <span style="color: #0000ff;">cursor</span>.<br />*  xnCurType : <span style="color: #000000;">Tipo</span> de <span style="color: #0000ff;">cursor</span><br />*    <br /><span style="color: #00C800;">FUNCTION</span> fCreaRecSet<span style="color: #000000;">&#40;</span>xoCnxSrv, xcCmdSql, xnCursor, xnLockType, xnCurType<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">LOCAL</span> oRsLocal, oError   <br />     <span style="color: #00C800;">TRY</span> <br />       oRsLocal := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.RecordSet"</span> <span style="color: #000000;">&#41;</span>      <br />     CATCH oError<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'No se puede establecer conexion con Recordset ...!'</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span>      <br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END   <br />     xnCursor  :=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnCursor=<span style="color: #00C800;">NIL</span>,adUseServer,xnCursor<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// adUseClient</span><br />     xnLockType:=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnLockType=<span style="color: #00C800;">NIL</span>,adLockOptimistic,xnLockType<span style="color: #000000;">&#41;</span><br />     xnCurType :=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnCurType=<span style="color: #00C800;">NIL</span>,adOpenKeyset,xnCurType<span style="color: #000000;">&#41;</span><br />     oRsLocal:<span style="color: #000000;">CursorLocation</span>:=xnCursor<br />     oRsLocal:<span style="color: #000000;">LockType</span>      :=xnLockType<br />     oRsLocal:<span style="color: #000000;">CursorType</span>    :=xnCurType    <br />     oRsLocal:<span style="color: #000000;">Source</span>        :=xcCmdSql<br />     oRsLocal:<span style="color: #000000;">ActiveConnection</span>:=xoCnxSrv   <br />     <span style="color: #00C800;">TRY</span><br />       oRsLocal:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     CATCH oError<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'No se puede establecer conexion con Recordset ...!'</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span>      <br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END<br />     <span style="color: #00C800;">IF</span> !oRsLocal:<span style="color: #000000;">EOF</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       oRsLocal:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">ENDIF</span>   <br />     <span style="color: #00C800;">RETURN</span> oRsLocal<br />*    <br /><span style="color: #B900B9;">/*** Manejador error para Conexion Server ***/</span><br /><span style="color: #00C800;">FUNCTION</span> ShowErrorCnx<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">LOCAL</span> cError := <span style="color: #ff0000;">""</span><br />     cError += <span style="color: #ff0000;">" Descripción  : "</span> + oError:<span style="color: #000000;">Description</span><br />     cError += <span style="color: #ff0000;">" SubSystem    : "</span> + oError:<span style="color: #000000;">SubSystem</span><br />     cError += <span style="color: #ff0000;">" Error Number : "</span> + Str<span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">SubCode</span> <span style="color: #000000;">&#41;</span><br />     cError += <span style="color: #ff0000;">" Severity     : "</span> + Str<span style="color: #000000;">&#40;</span> oError:<span style="color: #000000;">Severity</span> <span style="color: #000000;">&#41;</span>   <br />     <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:kfyby48z] y este es con VB6 [code=fw:kfyby48z]<div class="fw" id="{CB}" style="font-family: monospace;">   <br />/ ***  Conectando con el Servidor. ***/<br />Set cCnx = <span style="color: #00C800;">New</span> ADODB.Connection<br />   cCnx = <span style="color: #ff0000;">"DSN=Chessgps;HOST=chess;PORT=2500;DB=distrib;UID=SYSPROGRESS;PWD=ch1573"</span><br />   With cCnx<br />     <span style="color: #ff0000;">' Cursor en Cliente para poder usar un DataGrid<br />     .CursorLocation = adUseClient<br />     '</span> Abro la conexión con la base de datos usando un DSN<br />     .Open cCnx<br />   End With<br /><br /><span style="color: #B900B9;">/***  Conectando al Recordset.***/</span><br /><br />     Dim rs As <span style="color: #00C800;">New</span> ADODB.Recordset<br />     rs.CursorLocation = adUseClient<br />     rs.Open SQL, cCnx, adOpenStatic<br />     Set rs.ActiveConnection = Nothing<br /><br /><br /> </div>[/code:kfyby48z] Atte. Lucho Montero. Lima - Perú. ----------------------------------------------------------------------- FW 12.04 + xHarbour 123 + Borland 582
Consulta Ado con Fw vs VB - Solucionado
Lucho, Puedes publicar el resto del código en VB6 para compararlos ?
Consulta Ado con Fw vs VB - Solucionado
Estimado Antonio: Muchas gracias por responder. Antes de analizar el resto del código de VB, por favor analicemos estas líneas en donde se ejecuta la consulta tanto en FW como VB6; y es aquí en donde hago la medición de tiempos: Con Fw: [code=fw:2623wrw8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />  Llama la función que ejecuta la Consulta y genera el Recordset:<br /><br />  oRsAprvt:=<span style="color: #ff0000;">''</span><br />  oRsAprvt:=fCreaRecSet<span style="color: #000000;">&#40;</span>oCnxSrv, cCmdSql, adUseClient, adLockOptimistic, adOpenStatic<span style="color: #000000;">&#41;</span><br /><br />Esta es la función que ejecuta la consulta y crea el Recordset:<br /><br /><span style="color: #00C800;">FUNCTION</span> fCreaRecSet<span style="color: #000000;">&#40;</span>xoCnxSrv, xcCmdSql, xnCursor, xnLockType, xnCurType<span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">LOCAL</span> oRsLocal, oError   <br />     <span style="color: #00C800;">TRY</span> <br />       oRsLocal := TOleAuto<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.RecordSet"</span> <span style="color: #000000;">&#41;</span>      <br />     CATCH oError<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'No se puede establecer conexion con Recordset ...!'</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span>      <br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END   <br />     xnCursor  :=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnCursor=<span style="color: #00C800;">NIL</span>,adUseServer,xnCursor<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// adUseClient</span><br />     xnLockType:=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnLockType=<span style="color: #00C800;">NIL</span>,adLockOptimistic,xnLockType<span style="color: #000000;">&#41;</span><br />     xnCurType :=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>xnCurType=<span style="color: #00C800;">NIL</span>,adOpenKeyset,xnCurType<span style="color: #000000;">&#41;</span><br />     oRsLocal:<span style="color: #000000;">CursorLocation</span>:=xnCursor<br />     oRsLocal:<span style="color: #000000;">LockType</span>      :=xnLockType<br />     oRsLocal:<span style="color: #000000;">CursorType</span>    :=xnCurType    <br />     oRsLocal:<span style="color: #000000;">Source</span>        :=xcCmdSql<br />     oRsLocal:<span style="color: #000000;">ActiveConnection</span>:=xoCnxSrv   <br />     <span style="color: #00C800;">TRY</span><br />       oRsLocal:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                     =====> Aquí es donde se ejecuta la consulta .... tiempo: <span style="color: #000000;">03</span>:<span style="color: #000000;">00</span> Minutos.<br />     CATCH oError<br />       MsgStop<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'No se puede establecer conexion con Recordset ...!'</span><span style="color: #000000;">&#41;</span><br />       ShowErrorCnx<span style="color: #000000;">&#40;</span> oError <span style="color: #000000;">&#41;</span>      <br />       <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />     END<br />     <span style="color: #00C800;">IF</span> !oRsLocal:<span style="color: #000000;">EOF</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       oRsLocal:<span style="color: #000000;">MoveFirst</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">ENDIF</span>   <br />     <span style="color: #00C800;">RETURN</span> oRsLocal<br /><br /> </div>[/code:2623wrw8] Este el código VB que ejecuta la Consulta y crea el Recordset: [code=fw:2623wrw8]<div class="fw" id="{CB}" style="font-family: monospace;">     Dim rs As <span style="color: #00C800;">New</span> ADODB.Recordset<br />     rs.CursorLocation = adUseClient<br />     rs.Open SQL, cCnx, adOpenStatic          ====> Aquí es donde se Ejecuta la Consulta ... tiempo: <span style="color: #000000;">00</span>:<span style="color: #000000;">10</span> sgdos.<br />     Set rs.ActiveConnection = Nothing<br /> </div>[/code:2623wrw8] Este es el código de VB que hace lo mismo con FW. Ambos hacen exactamente la misma consulta y la muestran en una grilla. [code=fw:2623wrw8]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />Option Explicit<br /><br /><span style="color: #ff0000;">'Database fields names from SQL query<br />Const DB_CSUP = "c_super"<br />Const DB_CVEN = "c_perso"<br />Const DB_TVEN = "d_perso"<br />Const DB_CRUT = "ruta"<br />Const DB_TDESRUT = "d_ruta"<br />Const DB_CCLI = "idcliente"<br />Const DB_TNOMREP = "nomcli"<br />'</span> DB_FECENTRE  := <span style="color: #ff0000;">"fecentre"</span><br />Const DB_CTIP = <span style="color: #ff0000;">"iddocument"</span><br />Const DB_NFAC = <span style="color: #ff0000;">"nroped"</span><br />Const DB_CARTAG = <span style="color: #ff0000;">"c_artag"</span><br />Const DB_DARTAG = <span style="color: #ff0000;">"d_artag"</span><br />Const DB_CSUBAG1 = <span style="color: #ff0000;">"c_subag1"</span><br />Const DB_DSUBAG1 = <span style="color: #ff0000;">"d_subag1"</span><br />Const DB_CCODART = <span style="color: #ff0000;">"codart"</span><br />Const DB_TDESART = <span style="color: #ff0000;">"descrip"</span><br />Const DB_QCANPED = <span style="color: #ff0000;">"nqbultos"</span><br />Const DB_QUMVTA = <span style="color: #ff0000;">"umedstd"</span><br />Const DB_QIMPORTE = <span style="color: #ff0000;">"qimporte"</span><br /><br /><span style="color: #ff0000;">'Cube fields names, arbitrary<br />'</span>Definir Descripcion Campos de la Tabla Contenedora del Cubo.<br />     <br />Const CUBEFLD_CSUP = <span style="color: #ff0000;">"Cod Supervisor"</span><br />Const CUBEFLD_CVEN = <span style="color: #ff0000;">"Cod Prevendedor"</span><br />Const CUBEFLD_TVEN = <span style="color: #ff0000;">"Nombre Prevendedor"</span><br />Const CUBEFLD_CRUT = <span style="color: #ff0000;">"Cod Ruta"</span><br />Const CUBEFLD_TDESRUT = <span style="color: #ff0000;">"Descripcion Ruta"</span><br />Const CUBEFLD_CCLI = <span style="color: #ff0000;">"Cod Cliente"</span><br />Const CUBEFLD_TNOMREP = <span style="color: #ff0000;">"Nombre del Cliente"</span><br /><span style="color: #ff0000;">' CUBEFLD_FECENTRE  := "Fecha Entrega"<br />Const CUBEFLD_CTIP = "Tipo Documento"<br />Const CUBEFLD_NFAC = "Numero Pedido"<br />Const CUBEFLD_CARTAG = "Agrup Articulo"<br />Const CUBEFLD_DARTAG = "Descripcion Agrupa Articulo"<br />Const CUBEFLD_CSUBAG1 = "Sub Agrup Articulo"<br />Const CUBEFLD_DSUBAG1 = "Descripcion Sub Agrup Articulo"<br />Const CUBEFLD_CCODART = "Cod Articulo"<br />Const CUBEFLD_TDESART = "Descripcion Articulo"<br />Const CUBEFLD_QCANPED = "Cantidad Bultos"<br />Const CUBEFLD_QUMVTA = "Cantida Umed"<br />Const CUBEFLD_QIMPORTE = "Importe Soles"<br /><br /><br />'</span>Const CUBEFLD_C_SUPER = <span style="color: #ff0000;">"Supervisor"</span><br /><span style="color: #ff0000;">'Const CUBEFLD_C_PERSO = "Cod Vend"<br />'</span>Const CUBEFLD_D_PERSO = <span style="color: #ff0000;">"Nombre Vendedor"</span><br /><span style="color: #ff0000;">'Const CUBEFLD_FECENTRE = "Fecha Entrega"<br />'</span>Const CUBEFLD_CODART = <span style="color: #ff0000;">"Cod Articulo"</span><br /><span style="color: #ff0000;">'Const CUBEFLD_DESCRIP = "Nombre Articulo"<br />'</span>Const CUBEFLD_QCANPED = DB_QCANPED<br /><span style="color: #ff0000;">'Const CUBEFLD_CANT = DB_CANT<br /><br />'</span>Const CUBEFLD_CATEGORY = DB_CATEGORY<br /><span style="color: #ff0000;">'Const CUBEFLD_PRODUCT = DB_PRODUCT<br />'</span>Const CUBEFLD_DATE = <span style="color: #ff0000;">"Date"</span><br /><span style="color: #ff0000;">'Const CUBEFLD_YEAR = "Year"<br />'</span>Const CUBEFLD_QUARTER = <span style="color: #ff0000;">"Quarter"</span><br /><span style="color: #ff0000;">'Const CUBEFLD_MONTH = "Month"<br />'</span>Const CUBEFLD_QUANTITY = DB_QUANTITY<br /><span style="color: #ff0000;">'Const CUBEFLD_AMOUNT = DB_AMOUNT<br /><br /><br />Const xCmdSql1 = "SELECT PUB.perscom.c_super AS c_super, PUB.carga.c_perso AS c_perso, PUB.perscom.d_perso AS d_perso, " & vbCrLf & _<br />         "PUB.carga.ruta AS ruta, PUB.rutasv.d_ruta AS d_ruta, PUB.carga.idcliente AS idcliente, " & vbCrLf & _<br />         "PUB.clientes.nomcli AS nomcli, "<br />Const xCmdSql2 = "PUB.carga.iddocumento AS iddocument, PUB.carga.fecentre AS fecentre, PUB.carga.nroped AS nroped, " & vbCrLf & _<br />         "PUB.artagru.c_artag AS c_artag, PUB.foragru.d_artag AS d_artag, PUB.artagru.c_subag1 AS c_subag1, " & vbCrLf & _<br />         "PUB.subagru1.d_subag1 AS d_subag1, PUB.lincarga.codart AS codart, PUB.articulos.descrip AS descrip, " & vbCrLf & _<br />         "(PUB.lincarga.cant * PUB.articulos.resto + PUB.lincarga.resto) / PUB.articulos.resto AS nqbultos, "<br />Const xCmdSql3 = "(PUB.lincarga.cant * PUB.articulos.resto + PUB.lincarga.resto) / PUB.articulos.resto * PUB.articulos.valor AS umedstd, " & vbCrLf & _<br />         "PUB.lincarga.cant * PUB.lincarga.precio + PUB.lincarga.resto * (PUB.lincarga.precio / PUB.articulos.resto) + PUB.lincarga.iva1 + PUB.lincarga.per212 AS qimporte "<br />Const xCmdSql4 = "FROM  PUB.artagru, PUB.foragru, PUB.subagru1, PUB.lincarga, PUB.carga, PUB.articulos, PUB.perscom, PUB.rutasv, PUB.clientes " & vbCrLf & _<br />         "WHERE PUB.artagru.c_artag = PUB.foragru.c_artag AND PUB.artagru.c_artag = PUB.subagru1.c_artag AND PUB.artagru.c_subag1 = PUB.subagru1.c_subag1 AND " & vbCrLf & _<br />         "PUB.artagru.codart = PUB.articulos.codart AND PUB.lincarga.nroped = PUB.carga.nroped AND PUB.lincarga.codart = PUB.articulos.codart AND "<br />Const xCmdSql5 = "PUB.carga.idSucur = PUB.perscom.idSucur AND PUB.carga.c_perso = PUB.perscom.c_perso AND PUB.carga.idSucur = PUB.rutasv.idSucur AND " & vbCrLf & _<br />         "PUB.carga.ruta = PUB.rutasv.ruta AND PUB.carga.idSucur = PUB.clientes.idSucur AND PUB.carga.idcliente = PUB.clientes.idcliente AND " & vbCrLf & _<br />         "(PUB.artagru.c_artag = 21) AND (PUB.carga.idSucur = 1)"<br />Const SQL = xCmdSql1 + xCmdSql2 + xCmdSql3 + xCmdSql4 + xCmdSql5<br />Dim cCnx As ADODB.Connection<br />Private CONS As String<br /><br /><br />Private Sub ContourCubeX1_BeforeMoveDimension(ByVal ViewDim As CCubeX4.IViewDim, ByVal NewAxis As CCubeX4.TxDimAxis, ByVal NewPos As Long, ByVal Cancel As CCubeX4.IBoolean)<br />  Select Case ViewDim.Name<br />    Case CUBEFLD_CCODART<br />      If NewAxis <> xda_outside Then<br />            If NewAxis <> ContourCubeX1.Cube.Dims(CUBEFLD_CCODART).Axis Then<br />              Cancel.Value = True<br />            Else<br />              If NewPos <= ContourCubeX1.Cube.Dims(CUBEFLD_TDESART).Pos Then Cancel.Value = True<br />            End If<br />      End If<br />    Case CUBEFLD_CVEN<br />      If NewAxis <> xda_outside Then<br />         If NewAxis <> ContourCubeX1.Cube.Dims(CUBEFLD_CVEN).Axis Then<br />           Cancel.Value = True<br />         Else<br />           If NewPos >= ContourCubeX1.Cube.Dims(CUBEFLD_TVEN).Pos Then Cancel.Value = True<br />         End If<br />      End If<br />  End Select<br />End Sub<br /><br />Private Sub Form_Load()<br />   On Error GoTo handler<br />   '</span> Instancio la conexión y me conecto con la base de datos<br />   <span style="color: #ff0000;">' ----------------------------------------------------------<br />   Set cCnx = New ADODB.Connection<br />   cCnx = "DSN=Chessgps;HOST=chess;PORT=2500;DB=distrib;UID=SYSPROGRESS;PWD=ch1573"<br />   With cCnx<br />     '</span> <span style="color: #0000ff;">Cursor</span> en Cliente para poder usar un DataGrid<br />     .CursorLocation = adUseClient<br />     <span style="color: #ff0000;">' Abro la conexión con la base de datos usando un DSN<br />     .Open cCnx<br />   End With<br />   ContourCubeX1.BorderStyle = xcbsSingle<br />   ContourCubeX1.NULLValueString = ""<br />   ContourCubeX1.InactiveDimAreaBkColor = 2<br />      <br />   <br />   With ContourCubeX1.Cube<br />     '</span>Create Dimensions and Facts in cube<br />     <span style="color: #ff0000;">' Dimensions initially appeared on verical axis<br />     <br />     .Dims.Add CUBEFLD_CSUP, DB_CSUP, 5, 2<br />     .Dims.Add CUBEFLD_CVEN, DB_CVEN, 5, 2<br />     .Dims.Add CUBEFLD_TVEN, DB_TVEN, 1, 2<br />     .Dims.Add CUBEFLD_CRUT, DB_CRUT, 5, 2<br />     .Dims.Add CUBEFLD_TDESRUT, DB_TDESRUT, 1, 2<br />     .Dims.Add CUBEFLD_CCLI, DB_CCLI, 5, 2<br />     .Dims.Add CUBEFLD_TNOMREP, DB_TNOMREP, 1, 2<br />     '</span>:<span style="color: #000000;">Dims</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">&#40;</span>CUBEFLD_FECENTRE, DB_FECENTRE, <span style="color: #000000;">9</span>, <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />     .Dims.Add CUBEFLD_CTIP, DB_CTIP, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span><br />     .Dims.Add CUBEFLD_NFAC, DB_NFAC, <span style="color: #000000;">5</span>, <span style="color: #000000;">2</span><br />     <br />     <span style="color: #ff0000;">' Mostrar Fijos Verticales al presentar el Cubo.<br />     .Dims.Add CUBEFLD_CARTAG, DB_CARTAG, 5, 0<br />     .Dims.Add CUBEFLD_DARTAG, DB_DARTAG, 1, 0<br />     .Dims.Add CUBEFLD_CSUBAG1, DB_CSUBAG1, 5, 0<br />     .Dims.Add CUBEFLD_DSUBAG1, DB_DSUBAG1, 1, 0<br />     .Dims.Add CUBEFLD_CCODART, DB_CCODART, 5, 0<br />     .Dims.Add CUBEFLD_TDESART, DB_TDESART, 1, 0<br />     <br />     '</span>Cube facts<br />     .BaseFacts.Add DB_QCANPED, DB_QCANPED<br />     .BaseFacts.Add DB_QUMVTA, DB_QUMVTA<br />     .BaseFacts.Add DB_QIMPORTE, DB_QIMPORTE<br />       <br />     <span style="color: #ff0000;">'Add cube facts to the grid<br />     .Facts.Add(CUBEFLD_QCANPED, DB_QCANPED, 1).Caption = "Bultos"<br />     .Facts.Add(CUBEFLD_QUMVTA, DB_QUMVTA, 1).Caption = " Cantidad Venta UM "<br />     .Facts.Add(CUBEFLD_QIMPORTE, DB_QIMPORTE, 1).Caption = "Importe Bruto"<br /><br />     '</span>Populate recordset<br /><br />     Dim rs As <span style="color: #00C800;">New</span> ADODB.Recordset<br />     rs.CursorLocation = adUseClient<br />     rs.Open SQL, cCnx, adOpenStatic<br />     Set rs.ActiveConnection = Nothing<br /><br />     <span style="color: #ff0000;">'Activate grid<br /><br />     '</span>.Open rs<br />   End With<br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QCANPED<span style="color: #000000;">&#41;</span>.Visible = <span style="color: #00C800;">True</span><br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QCANPED<span style="color: #000000;">&#41;</span>.Appearance.Format = <span style="color: #ff0000;">"###,###,##0.00"</span><br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QUMVTA<span style="color: #000000;">&#41;</span>.Visible = <span style="color: #00C800;">True</span><br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QUMVTA<span style="color: #000000;">&#41;</span>.Appearance.Format = <span style="color: #ff0000;">"###,###,##0.0000"</span><br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QIMPORTE<span style="color: #000000;">&#41;</span>.Visible = <span style="color: #00C800;">True</span><br />   ContourCubeX1.Facts<span style="color: #000000;">&#40;</span>CUBEFLD_QIMPORTE<span style="color: #000000;">&#41;</span>.Appearance.Format = <span style="color: #ff0000;">"###,###,##0.00"</span><br />   <span style="color: #ff0000;">'ContourCubeX1.FlatStyle = xfs_Flat<br />   ContourCubeX1.Cube.Open rs<br /> <br />   <br />   infoBox.Text = info<br /> Exit Sub<br />    <br />handler:<br />  MsgBox ("Error: " & Err.Description)<br />  End<br />End Sub<br /><br />Private Sub Form_Resize()<br />    ContourCubeX1.Move 0, Image1.Height, Me.ScaleWidth, Me.ScaleHeight - Image1.Height - infoBox.Height<br />    With Image2<br />        .Left = Image1.Width<br />        .Width = IIf((Me.Width - Image1.Width) > 0, Me.Width - Image1.Width, 0)<br />    End With<br />    With infoBox<br />        .Top = Image1.Height + ContourCubeX1.Height<br />        .Width = ContourCubeX1.Width<br />        .Left = 0<br />    End With<br />End Sub<br /></span></div>[/code:2623wrw8] Saludos. Atte. Lucho Montero. Lima - Perú. ------------------------------------------------------------------------ FW 12.04 + xHarbour 1.2.3 + Borland 5.8.2