topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
xharbour para FWH810 | Gracias armando,
Te reitero, el correo es:
julio punto llinas21 arroba gmail punto com
mi correo en el foro es ssp21 arroba hotmail punto com
Gracias por contestar !
Abrazos, |
xharbour para FWH810 | Julio:
Te lo envié a ambas direcciones pero en una me lo rechaza
Saludos |
xharbour para FWH810 | Recibido Armando...
Muchas Gracias, resuelto con la copia que me enviaste !
Abrazos, |
xharbour para fwh1507+xharbour+bcc582 | com: fwh1507+xharbour+bcc582
onde posso fazer o download do xharbour(bcc582)?
??????????????????????????????????????????????????????????????????????????????
? FiveWin for xHarbour 15.07 - Jul. 2015 xHarbour development power ??
? (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ??
???????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)
Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'testdlg.prg' and generating preprocessed output to 'testdlg.ppo'...
Generating C source output to 'testdlg.c'...
Done.
Lines 32, Functions/Procedures 2, pCodes 184
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testdlg.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '__ltolower_lcid' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external '__ltoupper_lcid' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
Error: Unresolved external 'std::_Locinfo::_Locinfo(const std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)' referenced from C:\XHARBOUR\LIB\HBZIP.LIB|ziparchive
* Linking errors * |
xharbour para fwh1507+xharbour+bcc582 | Aqui
<!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/xharbour10121_20150503_bcc58.zip">https://bitbucket.org/fivetech/harbour- ... _bcc58.zip</a><!-- m --> |
xharbour para fwh1507+xharbour+bcc582 | Cristobal Navarro,
muito obrigado! |
xharbour parameters | HI, i have use only -c to compile my appl, libs, fwh, etc... another flags ( -5-6-O-tmw) is default or is dispensable? thanks |
xharbour parameters | in the truth, it would like to know which parameters are necessary currently. |
xharbour parameters | Norberto,
Do you mean the flags to compile C files or PRG files ? |
xharbour parameters | Antonio, i compile xharbour (cvs), my libs (prg and C), appl (prg), and sometimes (Fwh). thanks |
xharbour parameters | Norberto,
For PRG files, /n /i... is ok, unless you want to stop on compiler warnings
For C files, -c is ok |
xharbour version | c'è una funzione per vedere la versione installata?
grazie |
xharbour version | Version()
EMG |
xharbour version 1.0 | I'm using xharbour .9971.
My FWH version is Oct 2007 (7.10)
My complier is Borland C++ 5.5
Will these FWH files work with the latest Xharbour beta 1.0 of November 9th, 2007 ?? |
xharbour version 1.0 | I believe so. I use 7.11 now with the November xHarbour release, but the PCode change was a while back, so you should be OK. I do not use the Borland compiler, however. I use the MS compatible compiler included with xHarbour. |
xharbour with gcc (mingw)? | Hello,
Can xharbour work with gcc (mingw)? Or is that only possible with harbour?
Pieter |
xharbour with gcc (mingw)? | Pieter,
I don't know if xharbour supports MinGW.
Surely Enrico may help us on this |
xharbour with gcc (mingw)? | Yes, it is on
[url:1nvknwl8]http://www.whosaway.com[/url:1nvknwl8]
EMG |
xharbour with gcc (mingw)? | Enrico, Oké!, I have send an email to you. Pieter |
xharbour with gcc (mingw)? | Pieter,
Remove the flag '-mno-cygwin' when calling gcc |
xharbour with gcc (mingw)? | Antonio,
I already tried that, I get this error.
??????????????????????????????????????????????????????????????????????????????
?FiveWin for Harbour 15.01 and GCC - Jan. 2015 Harbour development power ??
?(c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ??
???????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20160314)
Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'helloworld.prg' and generating preprocessed output to 'helloworld.ppo
'...
Generating C source output to 'helloworld.c'...
Done.
Lines 5, Functions/Procedures 1, pCodes 7
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbcommon
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbcpage
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbcplr
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbct
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbdebug
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbhsx
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhblang
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbmacro
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbmainstd
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbpcre
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbpp
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbrdd
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbrtl
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbtip
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbusrrdd
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbvm
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbwin
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lhbzlib
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lrddcdx
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lrddfpt
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lrddntx
C:/XharbourWithMingwTestProgram/mingw530/MINGW530/bin/../lib/gcc/i686-w64-mingw3
2/5.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lxhb
collect2.exe: error: ld returned 1 exit status
* Link errors *
C:\XharbourWithMingwTestProgram>
But maybe this error is closer to the solution.
Pieter |
xharbour with gcc (mingw)? | Hello <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ,
I have downloaded from <!-- m --><a class="postlink" href="http://www.whosaway.com/">http://www.whosaway.com/</a><!-- m -->:
-mingw530.zip
-xhb10146_mingw53.zip
I want to compile and run a helloworld.prg program on operating system Windows 8
[code=fw:1eb9ykqz]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//helloworld.prg</span><br />PROCEDURE Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ? <span style="color: #ff0000;">"Hello World!"</span><br /><span style="color: #00C800;">RETURN</span><br /> </div>[/code:1eb9ykqz]
I made this directory:
C:\XharbourWithMingwTestProgram
mingw530
xhb10146_mingw53
build-helloworld.bat (is now still an empty file)
helloworld.prg
[b:1eb9ykqz]Question: What is a good way to compile and run helloworld.prg?[/b:1eb9ykqz]
I tried to understand mdir.bat (in C:\XharbourWithMingwTestProgram\xhb10146_mingw53\xharbour\winmake), but I am not sure whether this mdir.bat is good file to start with.
Does anybody have an idea?
Best regards,
Pieter |
xharbour with gcc (mingw)? | Pieter,
Please review FWH\samples\buildg.bat to use MinGW
You can easily modify it to use it with xHarbour |
xharbour with gcc (mingw)? | Antonio, Thanks,
I have modified buildg.bat:
if "%fwh%" == "" set fwh=C:\XharbourWithMingwTestProgram\fwh
set hdir=C:\XharbourWithMingwTestProgram\xhb10146_mingw53\xharbour
set hdirc=%hdir%\bin\harbour.exe
set hlibs=%hdir%\lib\gcc
set mingw=C:\XharbourWithMingwTestProgram\mingw530\MINGW530
set path=C:\XharbourWithMingwTestProgram\mingw530\MINGW530\bin
??????????????????????????????????????????????????????????????????????????????
?FiveWin for Harbour 15.01 and GCC - Jan. 2015 Harbour development power ??
?(c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ??
???????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20160314)
Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'helloworld.prg' and generating preprocessed output to 'helloworld.ppo
'...
Generating C source output to 'helloworld.c'...
Done.
Lines 5, Functions/Procedures 1, pCodes 7
gcc: error: unrecognized command line option '-mno-cygwin'
* Link errors *
C:\XharbourWithMingwTestProgram>
I think the problem is with set hlibs=%hdir%\lib\gcc, I don't see a gcc directory in C:\XharbourWithMingwTestProgram\xhb10146_mingw53\xharbour\lib
Is this the problem?
Pieter |
xharbour with gcc (mingw)? | Long time ago ( 2008 !!! )
I tested MingW with Antonio to get it working
have a look at my results, posted problems and samples
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=12763&hilit=MingW">viewtopic.php?f=3&t=12763&hilit=MingW</a><!-- l -->
The project for testing
<!-- m --><a class="postlink" href="http://www.pflegeplus.com/DOWNLOADS/BRWtoolsMinGW2.zip">http://www.pflegeplus.com/DOWNLOADS/BRWtoolsMinGW2.zip</a><!-- m -->
[code=fw:2ypoxv5x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /># gcc make example <span style="color: #00C800;">for</span> Windows, developed by FiveTech Software <br /><br />hdir=e:\harbour\harbour <br />hdirc=$<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\source\main\w32\mingw32\harbour.exe <br />hlibs=$<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\lib\w32\mingw32 <br />fwh=e:\fwh <br />mingw=e:\mingw <br />fwfiles=-lfivehg -lfivehgc <br />w32files=-ldll -lsocket -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid \-lwinmm -lvfw32 -lwsock32 -lmsimg32 <br />hbfiles=-lhbbtree -lhbclipsm -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbcurl -lhbfbird -lhbgd -lhbhpdf \-lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmisc -lhbmsql -lhbmysql -lmysqldll -lhbmzip \-lhbnf -lhbodbc -lodbc32 -lhbpcre -lhbpgsql -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 \-lhbtip -lhbusrrdd -lhbvm -lhbvpdf -lhbw32 -lhbzlib -lrddado -lrddads -lrddcdx -lrddfpt -lrddntx -lxhb <br />libraries=$<span style="color: #000000;">(</span>fwfiles<span style="color: #000000;">)</span> -lgtgui $<span style="color: #000000;">(</span>w32files<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>hbfiles<span style="color: #000000;">)</span> <br />libspath=-L$<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\lib -L$<span style="color: #000000;">(</span>hlibs<span style="color: #000000;">)</span> -L$<span style="color: #000000;">(</span>fwh<span style="color: #000000;">)</span>\lib <br /><br />all : <span style="color: #000000;">brwtools</span>.exe <br /> brwtools.exe <br /><br />PRG_OBJS = ./obj/brwtools.c \<br /> ./obj/errsysw.c <br /><br />C_OBJS = ./obj/brwtools.o \<br /> ./obj/errsysw.o <br /><br />#C_OBJS = ./obj/one.o \ <br /># ./obj/two.o \ <br /># ./obj/three.o <br /><br />brwtools.exe : $<span style="color: #000000;">(</span>PRG_OBJS<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>C_OBJS<span style="color: #000000;">)</span> <br />#if not exist brwtools.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc -obrwtools.exe ./obj/brwtools.o ./obj/errsysw.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br />#if exist brwtools.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc =<br /># -obrwtools.exe <br /># ./obj/brwtools.o <br /># ./obj/errsysw.o _one.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br /><br />test.exe : $<span style="color: #000000;">(</span>PRG_OBJS<span style="color: #000000;">)</span> $<span style="color: #000000;">(</span>C_OBJS<span style="color: #000000;">)</span> <br /># <span style="color: #00C800;">if</span> not exist one.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br /># <span style="color: #00C800;">if</span> exist one.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc -otest.exe ./obj/one.o ./obj/two.o ./obj/three.o _one.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br /><br /><br />#if not exist brwtools.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc -obrwtools.exe ./obj/brwtools.o ./obj/errsysw.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br />#if exist brwtools.rc $<span style="color: #000000;">(</span>mingw<span style="color: #000000;">)</span>\bin\gcc -obrwtools.exe ./obj/brwtools.o ./obj/errsysw.o _one.o \-Wall -s -mwindows $<span style="color: #000000;">(</span>libspath<span style="color: #000000;">)</span> -mno-cygwin -Wl,--start-group $<span style="color: #000000;">(</span>libraries<span style="color: #000000;">)</span> -Wl,--end-group <br /><br />./obj/%.c : %.prg <br /><span style="color: #00C800;">if</span> not exist obj mkdir obj $<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\source\main\w32\mingw32\harbour.exe $< -o$@ -n -I$<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\include -I$<span style="color: #000000;">(</span>fwh<span style="color: #000000;">)</span>\include <br /> <br />./obj/%.o : ./obj/%.c <br /> gcc -c -o$@ -I$<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\include $< <br /> <br />./obj/%.o : %.c <br /> gcc -c -o$@ -I$<span style="color: #000000;">(</span>hdir<span style="color: #000000;">)</span>\include $< <br /> </div>[/code:2ypoxv5x]
best regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xharbour with gcc (mingw)? | Hello ukoenig:D, thank you. So something did worked:D, was it fivewin with harbour and/or xharbour?
I know that harbour works very well with mingw(it is very easy with hbmk2). I now want to get xharbour working with mingw(It not really neccesary to use fivewin for that at this moment)
I see mno-cygwin is missing. (unrecognized command line option '-mno-cygwin')
In buildg.bat: (see -mno-cygwin)
if not exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lpng -Wl,--end-group
[b:qpiyvhu3]Does anybody know if I have do someting with cygwin? I thougth I have to do something with MingW.[/b:qpiyvhu3]
Pieter |
xharbour with gcc (mingw)? | Pieter,
all my tests are done with XHARBOUR.
I will have a closer look at my old tests and check with NEW fwh.
regards
Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xharbour with gcc (mingw)? | Pieter,
Please replace this:
I think the problem is with set hlibs=%hdir%\lib\gcc
with this:
set hlibs=%hdir%\lib |
xharbour with gcc (mingw)? | Antonio,
I did set hlibs=%hdir%\lib
Still the same error.
??????????????????????????????????????????????????????????????????????????????
?FiveWin for Harbour 15.01 and GCC - Jan. 2015 Harbour development power ??
?(c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ??
???????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20160314)
Copyright 1999-2015, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'helloworld.prg' and generating preprocessed output to 'helloworld.ppo
'...
Generating C source output to 'helloworld.c'...
Done.
Lines 5, Functions/Procedures 1, pCodes 7
gcc: error: unrecognized command line option '-mno-cygwin'
* Link errors *
C:\XharbourWithMingwTestProgram>
In hlibs=%hdir%\lib there are only .a extensions:
libbmdbfcdx.a
libbmsixcdx.a
libcodepage.a
etc.
I will think further:D
Pieter |
xharbour with gcc (mingw)? | Pieter,
Please post here your modified batch file |
xharbour with gcc (mingw)? | Hi Antonio,
@ECHO OFF
CLS
ECHO ???????????????????????????????????????
ECHO ?FiveWin for Harbour 15.01 and GCC - Jan. 2015 Harbour development power ?
ECHO ?(c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ?
ECHO ????????????????????????????????????????
ECHO ? ???????????????????????????????????????
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
if "%fwh%" == "" set fwh=C:\XharbourWithMingwTestProgram\fwh
set hdir=C:\XharbourWithMingwTestProgram\xhb10146_mingw53\xharbour
set hdirc=%hdir%\bin\harbour.exe
set hlibs=%hdir%\lib\gcc
set mingw=C:\XharbourWithMingwTestProgram\mingw530\MINGW530
set path=C:\XharbourWithMingwTestProgram\mingw530\MINGW530\bin
%hdirc% %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
@type comp.log
@type warnings.log
%mingw%\bin\gcc -c %1.c -o%1.o -I%hdir%\include -I%mingw%\include -Wall
IF ERRORLEVEL 1 GOTO COMPILEERROR
if exist %1.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -i%1.rc -o_%1.o
IF ERRORLEVEL 1 GOTO RESOURCESERROR
if not exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -loledlg -lmfcuia32 -lmsimg32 -lwin32k -lstdc++ -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lpng -Wl,--end-group
if exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o _%1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lkernel32 -lcomctl32 -lcomdlg32 -lgdi32 -lgdiplus -lole32 -loleaut32 -lpsapi -lmsimg32 -lwin32k -loledlg -lstdc++ -lmfcuia32 -lversion -luuid -lwinmm -lvfw32 -lwsock32 -lshell32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbdebug -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -lpng -Wl,--end-group
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
%1
rem delete temporary files
@del %1.c
@if exist %1.rc del _%1.o
GOTO EXIT
ECHO
:RESOURCESERROR
ECHO * Resources errors *
GOTO EXIT
:COMPILEERROR
@type comp.log
ECHO * Compile errors *
GOTO EXIT
:LINKERROR
ECHO * Link errors *
GOTO EXIT
:SINTAX
ECHO SYNTAX: Buildg [Program] {-- No especifiques la extensi? PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO The specified PRG %1 does not exist
:EXIT
Pieter |
xharbour-0.99.0.rpm + gcc compile & link error. | Hi all.
i have linux kernel redhat 9.
xharbour-0.99.fc1.0.rpm install.
redhat 9 + gcc + xharbour-0.99.fc1.0
test.prg
////////////////////////////////////////////
func main()
? "test say....."
return
////////////////////////////////////////////
compile..
#harbour test.prg
~Done.
#gcc test.o -otyest.c -I /usr/include/xharbour
...
error..........
.....
undefined reference to 'hb_vm_Symbolinit_TEST':
undefined reference to 'hb_vmProcessSymbolls'
undefined reference to 'hb_vmExecute'
....
....
collect2 : ld returned 1 exit status
How to compile option GCC.? |
xharbour-0.99.0.rpm + gcc compile & link error. | Yunbg,
Could you use Harbour instead of xHarbour ? Then you could easily build using Harbour hbmk2 app |
xharbour-0.99.0.rpm + gcc compile & link error. | Thank you.
Antonio Linares
I have no idea.
you make simple xbuild.sh sent me please.
My configure in linux.
HB_BIN_INSTALL=/usr/bin
HB_LIB_INSTALL=/usr/xharbour/lib
HB_INC_INSTALL=/usr/xharbour/include
...
xharbour 0.99.0 + gcc + linux(red hat 9) |
xharbour-0.99.0.rpm + gcc compile & link error. | This is the buildx.sh for xHarbour and FiveLinux:
buildx.sh
[code=fw:25a5g93i]<div class="fw" id="{CB}" style="font-family: monospace;"># ./buildx.sh<br /> <br />clear<br /> <br /><span style="color: #00C800;">if</span> <span style="color: #000000;">[</span> $# = <span style="color: #000000;">0</span> <span style="color: #000000;">]</span>; then<br /> echo syntax: ./buildx.sh file <span style="color: #000000;">[</span>options...<span style="color: #000000;">]</span><br /> exit<br />fi<br /> <br />echo compiling...<br />./../../xharbour/bin/harbour $<span style="color: #000000;">1</span> -n -I./../include -I./../../xharbour/include $<span style="color: #000000;">2</span><br /> <br />echo compiling C module...<br />gcc $<span style="color: #000000;">1</span>.c -c -I./../include -I./../../xharbour/include `pkg-config --cflags gtk+<span style="color: #000000;">-2.0</span>`<br /> <br />echo linking...<br />gcc $<span style="color: #000000;">1</span>.o -o$<span style="color: #000000;">1</span> -L./../lib -L./../../xharbour/lib `pkg-config --libs gtk+<span style="color: #000000;">-2.0</span>` `pkg-config --libs libglade<span style="color: #000000;">-2.0</span>` `pkg-config --libs libgnomeprintui<span style="color: #000000;">-2.2</span>` -Wl,--start-group -lfivex -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lusrrdd -ltip -lct -lcgi -lgtnul -lgtstd -lgtcgi -lgtcrs -lhbodbc -ldebug -lm -lgpm -lncurses -Wl,--end-group<br /> <br />rm $<span style="color: #000000;">1</span>.c<br />rm $<span style="color: #000000;">1</span>.o<br /> <br />echo done!<br />./$<span style="color: #000000;">1</span></div>[/code:25a5g93i] |
xharbour.exe es el mismo que la 805 | Antonio,* New: Harbour and xHarbour builds, updated with the most recent svn and cvs files. Important: There are many libraries names changed in Harbour, please review fwh\samples\buildh.bat and update your batch and makefiles.Según yo, el xharbour.exe 3,181,951 de la 806 es exactamente el mismo de la versión 805Baje la versión de Junio desde el FTP.Al compilar el sample WebExp.prg debería mostrarme al salir el valor de los metodos... pero sale en blanco.Mismo caso para WebExp3.prgPara compilar usobuildx webexp3En la versión 805 los samples funcionan.Da la impresión que oActiveX:bOnEvent no se está ejecutando.Saludos |
xharbour.exe es el mismo que la 805 | Fernando,Por favor, tienes que descargar harbour.exe y xharbour.exe de nuevo. No los habíamos actualizado en nuestro servidor FTP, graciasVamos a revisar de inmediato lo que nos comentas acerca de WebExp. Gracias |
xharbour.exe es el mismo que la 805 | Fernando,Aqui estan funcionando bien samples\webexp.prg, webexp2.prg y webexp3.prg. Lo que parece no funcionar es el método "GoHome" que lo hemos cambiado por: // oActiveX:Do( "GoHome" ) oActiveX:Do( "Navigate", "http://www.google.com" )Los eventos aparecen aqui correctamente mostrados al finalizar webexp.exe. Como te he indicado, tienes que volver a descargar Harbour desde nuestro FTP, gracias |
xharbour.exe es el mismo que la 805 | Descarge nuevamente todo y lo instalé.Los samples ya se ejecutanCierto es que si en lugar de usarlo oActiveX:Do( "GoHome" ) usasoActiveX:Do( "Navigate", "http://www.fivetechsoft.com" ) funciona correctamente...Lo único que veo de diferente es que si tiene un parametro funciona,, sino. Regresa NIL.Esa diferencia de funcionamiento es lo único que me puede explicar por que el mismo prg para mi lector biometrico... funciona si lo compilo con 805 y en la 806 no lo puedo inicializar.msginfo( IsActiveX( "GrFingerX.GrFingerXCtrl" ) )Regresa .T.oActiveX:Do( "Initialize" ) --> Regresa NILPero con la 805 regresa 0. Lo cual es correcto.Vere si puedo investigar más... pero como te comento en el mismo código funciona en 805 y en la 806, no.Y estoy seguro que es por el mismo detalle que has observado al usar oActiveX:Do( "GoHome" )en el webexp.prgSaludos |
xharbour.exe es el mismo que la 805 | Pues no,El mismo prg en la 805msginfo( oActiveX:Do( "Initialize" ) ) --> regresa 0 que indica que se inicializóEn la 806msginfo( oActiveX:Do( "Initialize" ) ) --> regresa NIL Para mi que hay algo en la 806... tu webexp.prg con la 806 no hace nada, pero con la 805 muestra la página de google. |
xhb feb release fw27 unresolves external _hb_stack | Hello,
I try to build an fw aplication .
I have rebuild all the obj's and lib's mentioned in the xbp-file , but i have still this external.
I have no idea which module is the guilty.
Frank |
xhb feb release fw27 unresolves external _hb_stack | Olá,
Eu também estou com o mesmo problema.
Obrigado,
Rossine. |
xhb feb release fw27 unresolves external _hb_stack | Ok , i found it , an obj-file derived from a c-file in one from the lib's.
Next problem : see new thread |
xhb feb release fw27 unresolves external _hb_stack | OK,
Eu também achei o problema. Eu estava linkando o arquivo "MACRO.OBJ" junto com tsbutton e tsbrowse, mas eu não me lembro o porque deste arquivo. Se alguém souber a verdadeira necessidade deste arquivo e puder me enviar o fonte, ficarei grato <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Obrigado,
Rossine. |
xhb feb release fw27 unresolves external _hb_stack | Hi Frank,
Could you share which files are the problem? |
xhb feb release fw27 unresolves external _hb_stack | Alex,
Maybe it is not important for you , but i use xbroxse from ozlib.
In the build file was a obj , derived from a c-module . So i had to replace this obj module with the c-module
Frank |
xhb.com + fwh no funciona errsys | Antonio xhb.com con fwh funciona bien, pero no lanza el dialogo de error de errsys.prg, se queda la app congelada,
lo mas probable es un error en ese mismo archivo lo cual crea una recursibidad que bloquea la app.
porueba generar un error, por ejemplo una expresion
[code=fw:2mvk8g3o]<div class="fw" id="{CB}" style="font-family: monospace;">?a<span style="color: #000000;">+1</span></div>[/code:2mvk8g3o]
si lo pones un try catch este funciona bien mostrando el error
[code=fw:2mvk8g3o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">try</span><br />?<span style="color: #000000;">1</span>+a<br />catch o<br />?o:<span style="color: #000000;">description</span><br />end</div>[/code:2mvk8g3o] |
xhb.com + fwh no funciona errsys | Carlos,
Has comprobado si se genera algún fichero log ? |
xhb.com + fwh no funciona errsys | no llega a generarlo.
por ello e error esta antes.
salu2 |
xhb.com + fwh no funciona errsys | Te acabo de enviar un email |
xhb.com + fwh no funciona errsys | ya lo he respondido.
salu2 |
xhb.obj | Ah yes. I remember.
Thanks. |
xhb.obj | It worked OK without the file. Initial, quick, testing, shows it to be ok. |
xhb.obj | Michel,
It was required to allow the use of C++ with PellesC (used by xhb.com) |
xhb.obj | In the past I have always linked in xhb.obj when building applications with xHarbour (.com) and FWH.
I was looking to see if we have an updated version of this file, but it doesn't appear in the distribution of FWH.
I know mine dates back to June, 2009. Is there a more recent copy, or can we stop using it ?
Tim |
xhb.obj | Tim,
Don't link it and lets see what you get, thanks |
xhb.obj | Antonio,
Tim,
I used xhb.obj too.
As Antonio suggested I relinked my application without xhb.obj and it seems to be that it is no longer needed anymore.
Can't remember why we had to use in the past. Do you?
Thanks. |
ximage rotate and save | I rotate an image with
@ 230,312 BTNBMP obtnPreview[3] BITMAP "AROTATE" NOBORDER ;
SIZE 18,24 of oAllegati;
ACTION oImagePreview:Rotate()
and the I save it but this function
[code=fw:15g6j90r]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">Function</span> SalvaImage<span style="color: #000000;">(</span>oImg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nType<br /> <span style="color: #00C800;">local</span> oBmp := GdiBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile := cGetFile<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Bitmap (*.bmp)| *.bmp|"</span> + ;<br /> <span style="color: #ff0000;">"JPEG (*.jpg)| *.jpg|"</span> + ;<br /> <span style="color: #ff0000;">"GIF (*.gif)| *.gif|"</span> + ;<br /> <span style="color: #ff0000;">"TIFF (*.tif)| *.tif|"</span> + ;<br /> <span style="color: #ff0000;">"PNG (*.png)| *.png"</span> ;<br /> ,<span style="color: #ff0000;">"Salva con il nome"</span>, hb_CurDrive<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , .t. <span style="color: #000000;">)</span><br /><br /><br /> * oBmp:<span style="color: #000000;">hBmp</span> := GDIP_FROMHBITMAP<span style="color: #000000;">(</span> oImg:<span style="color: #000000;">GetHBitmap</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, oImg:<span style="color: #000000;">aPalBmp</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span>, .T. <span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">hBmp</span> := oImg:<span style="color: #000000;">aPalBmp</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /><br /><br /><br /><br /><br /><br /> <span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> nType := NGETFILEFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">1</span><br /> cExt := <span style="color: #ff0000;">"bmp"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">2</span><br /> cExt := <span style="color: #ff0000;">"jpg"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">3</span><br /> cExt := <span style="color: #ff0000;">"gif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">4</span><br /> cExt := <span style="color: #ff0000;">"tif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">5</span><br /> cExt := <span style="color: #ff0000;">"png"</span><br /> <span style="color: #00C800;">ENDCASE</span><br /><br /> cFile := cFilePath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + cFileNoExt<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + cExt<br /><br /> oBmp:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span>cfile<span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"saved as: "</span>+ cFile<span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:15g6j90r]
save the image as was before ( on Original)
How I can save the image rotated ? |
ximage rotate and save | Try with
[code=fw:snyhrqxx]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />.../...<br />SaveImgMod<span style="color: #000000;">(</span> oImage, <span style="color: #ff0000;">"ejemplom.png"</span> <span style="color: #000000;">)</span><br />.../...<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> SaveImgMod<span style="color: #000000;">(</span> oImg, cFile, lDimImg <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> lRet := .F.<br /> <span style="color: #00C800;">local</span> oBmp<br /> <span style="color: #00C800;">local</span> oRect<br /> <span style="color: #00C800;">DEFAULT</span> lDimImg := .F.<br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> oRect := <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lDimImg, oImg:<span style="color: #000000;">oRect</span>, oImg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oBmp := GdiBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">hBmp</span> := GDIPLUSCAPTURERECTWND<span style="color: #000000;">(</span> oImg:<span style="color: #000000;">hWnd</span>, ;<br /> oRect:<span style="color: #000000;">nTop</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nLeft</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nRight</span> - oRect:<span style="color: #000000;">nLeft</span> - <span style="color: #000000;">1</span> - <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nBottom</span> - oRect:<span style="color: #000000;">nTop</span> - <span style="color: #000000;">1</span> - <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lRet := oBmp:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Name File Empty"</span>, <span style="color: #ff0000;">"Attention"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> lRet<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:snyhrqxx] |
ximage rotate and save | How I can Know if the image is modify ? |
ximage rotate and save | You have to implement that aspect. |
ximage rotate and save | if oImage:nZoom == 1 .and. oImage:nRotate == 0
// not modified
else
oImage:SaveToBmp( cBmpFile ) // save rotated / zoomed image to bmp file
endif |
ximage rotate and save | Yes, but in this case the image is always recorded with the size of the control, and not with the original size of the image |
ximage rotate and save | and it can run good ?
just an idea...
[code=fw:v7a68auj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Function</span> SalvaImage<span style="color: #000000;">(</span>oImg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nType<br /> <span style="color: #00C800;">local</span> oBmp := GdiBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> cFile := cGetFile<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Bitmap (*.bmp)| *.bmp|"</span> + ;<br /> <span style="color: #ff0000;">"JPEG (*.jpg)| *.jpg|"</span> + ;<br /> <span style="color: #ff0000;">"GIF (*.gif)| *.gif|"</span> + ;<br /> <span style="color: #ff0000;">"TIFF (*.tif)| *.tif|"</span> + ;<br /> <span style="color: #ff0000;">"PNG (*.png)| *.png"</span> ;<br /> ,<span style="color: #ff0000;">"Salva con il nome"</span>, hb_CurDrive<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , .t. <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #B900B9;">// oBmp:hBmp := GDIP_FROMHBITMAP( oImg:GetHBitmap(), oImg:aPalBmp[ 1 ], .T. )</span><br /> oBmp:<span style="color: #000000;">hBmp</span> := oImg:<span style="color: #000000;">aPalBmp</span><span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span><br /><br /> <span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> nType := NGETFILEFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">1</span><br /> cExt := <span style="color: #ff0000;">"bmp"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">2</span><br /> cExt := <span style="color: #ff0000;">"jpg"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">3</span><br /> cExt := <span style="color: #ff0000;">"gif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">4</span><br /> cExt := <span style="color: #ff0000;">"tif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">5</span><br /> cExt := <span style="color: #ff0000;">"png"</span><br /> <span style="color: #00C800;">ENDCASE</span><br /><br /><br /> cFile := cFilePath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + cFileNoExt<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + cExt<br /><br /> <span style="color: #00C800;">IF</span> oImagePreview:<span style="color: #000000;">nZoom</span> == <span style="color: #000000;">1</span> .and. oImagePreview:<span style="color: #000000;">nRotate</span> == <span style="color: #000000;">0</span><br /> oImagePreview:<span style="color: #000000;">SaveImage</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> SaveImgMod<span style="color: #000000;">(</span> oImagePreview, cFile,,oBmp <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Endif</span><br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"saved as: "</span>+ cFile<span style="color: #000000;">)</span><br /> <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> SaveImgMod<span style="color: #000000;">(</span> oImg, cFile, lDimImg ,oBmp<span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> lRet := .F.<br /> / <span style="color: #00C800;">local</span> oBmp<br /> <span style="color: #00C800;">local</span> oRect<br /> <span style="color: #00C800;">DEFAULT</span> lDimImg := .F.<br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> oRect := <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> lDimImg, oImg:<span style="color: #000000;">oRect</span>, oImg:<span style="color: #000000;">GetCliRect</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// oBmp := GdiBmp():New()</span><br /> oBmp:<span style="color: #000000;">hBmp</span> := GDIPLUSCAPTURERECTWND<span style="color: #000000;">(</span> oImg:<span style="color: #000000;">hWnd</span>, ;<br /> oRect:<span style="color: #000000;">nTop</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nLeft</span> + <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nRight</span> - oRect:<span style="color: #000000;">nLeft</span> - <span style="color: #000000;">1</span> - <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span>, ;<br /> oRect:<span style="color: #000000;">nBottom</span> - oRect:<span style="color: #000000;">nTop</span> - <span style="color: #000000;">1</span> - <span style="color: #00C800;">if</span><span style="color: #000000;">(</span> oImg:<span style="color: #000000;">lBorder</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> lRet := oBmp:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> oBmp:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"Name File Empty"</span>, <span style="color: #ff0000;">"Attention"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> lRet<br /><br /><br /><br /><br /><br /><br /> </div>[/code:v7a68auj] |
ximage rotate and save | [quote="cnavarro":3l1co368]Yes, but in this case the image is always recorded with the size of the control, and not with the original size of the image[/quote:3l1co368] |
ximage rotate and save | It save right the picture is rotated but when it save is saved all dialog and not only the image
see here
[img:24pf863f]https://s13.postimg.org/4ew7vz313/image.jpg[/img:24pf863f]
see also the scroll is saved |
ximage rotate and save | Silvio , you can use tgdiplus <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[code=fw:33gpg7pi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> saveimage<span style="color: #000000;">(</span> cSaveName, Hbitmap , nzoom, nrotate <span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oBmp:= GDIBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />oBmp:<span style="color: #000000;">hbmp</span> := GdiPlusCreateImageFromhBitmap<span style="color: #000000;">(</span> Hbitmap <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">rotate</span><span style="color: #000000;">(</span> nrotate <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">resize</span><span style="color: #000000;">(</span> obmp:<span style="color: #000000;">GetWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> * nzoom , obmp:<span style="color: #000000;">GetHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>*nzoom <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">save</span> <span style="color: #000000;">(</span> cSaveName <span style="color: #000000;">)</span> <br />obmp:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:33gpg7pi]
Saludos. |
ximage rotate and save | Manuel not run
[code=fw:2pem2gtx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> SalvaImage<span style="color: #000000;">(</span>oImg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nType<br /> <span style="color: #B900B9;">// local oBmp := GdiBmp():New()</span><br /> <span style="color: #00C800;">local</span> cFile := cGetFile<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Bitmap (*.bmp)| *.bmp|"</span> + ;<br /> <span style="color: #ff0000;">"JPEG (*.jpg)| *.jpg|"</span> + ;<br /> <span style="color: #ff0000;">"GIF (*.gif)| *.gif|"</span> + ;<br /> <span style="color: #ff0000;">"TIFF (*.tif)| *.tif|"</span> + ;<br /> <span style="color: #ff0000;">"PNG (*.png)| *.png"</span> ;<br /> ,<span style="color: #ff0000;">"Salva con il nome"</span>, hb_CurDrive<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , .t. <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #B900B9;">// oBmp:hBmp := GDIP_FROMHBITMAP( oImg:GetHBitmap(), oImg:aPalBmp[ 1 ], .T. )</span><br /> <span style="color: #B900B9;">//oBmp:hBmp := oImg:aPalBmp[ 1 ]</span><br /><br /> <span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> nType := NGETFILEFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">1</span><br /> cExt := <span style="color: #ff0000;">"bmp"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">2</span><br /> cExt := <span style="color: #ff0000;">"jpg"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">3</span><br /> cExt := <span style="color: #ff0000;">"gif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">4</span><br /> cExt := <span style="color: #ff0000;">"tif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">5</span><br /> cExt := <span style="color: #ff0000;">"png"</span><br /> <span style="color: #00C800;">ENDCASE</span><br /><br /><br /> cFile := cFilePath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + cFileNoExt<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + cExt<br /><br /> <br /> saveimage<span style="color: #000000;">(</span> cFile, oImg:<span style="color: #000000;">GetHBitmap</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> , oImg:<span style="color: #000000;">nzoom</span>, oImg:<span style="color: #000000;">nrotate</span> <span style="color: #000000;">)</span><br /> <br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"saved as: "</span>+ cFile<span style="color: #000000;">)</span><br /> <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: #00C800;">Function</span> saveimage<span style="color: #000000;">(</span> cSaveName, Hbitmap , nzoom, nrotate <span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oBmp:= GDIBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br />oBmp:<span style="color: #000000;">hbmp</span> := GdiPlusCreateImageFromhBitmap<span style="color: #000000;">(</span> Hbitmap <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">rotate</span><span style="color: #000000;">(</span> nrotate <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">resize</span><span style="color: #000000;">(</span> obmp:<span style="color: #000000;">GetWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> * nzoom , obmp:<span style="color: #000000;">GetHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>*nzoom <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">save</span> <span style="color: #000000;">(</span> cSaveName <span style="color: #000000;">)</span><br />obmp:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span></div>[/code:2pem2gtx] |
ximage rotate and save | [quote:1ogpxylz]
see also the scroll is saved
[/quote:1ogpxylz]
Try with last parameter in function SaveImgMod( oImg, cFile, lDimImg ) // .T. or .F.
I think function Manuel is very good function, but save method return .F., thanks |
ximage rotate and save | silvio , look ...
[code=fw:3u9t6jqv]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> SalvaImage<span style="color: #000000;">(</span>oImg<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Local</span> nType<br /> <span style="color: #00C800;">local</span> cFile := cGetFile<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Bitmap (*.bmp)| *.bmp|"</span> + ;<br /> <span style="color: #ff0000;">"JPEG (*.jpg)| *.jpg|"</span> + ;<br /> <span style="color: #ff0000;">"GIF (*.gif)| *.gif|"</span> + ;<br /> <span style="color: #ff0000;">"TIFF (*.tif)| *.tif|"</span> + ;<br /> <span style="color: #ff0000;">"PNG (*.png)| *.png"</span> ;<br /> ,<span style="color: #ff0000;">"Salva con il nome"</span>, hb_CurDrive<span style="color: #000000;">(</span><span style="color: #000000;">)</span> , .t. <span style="color: #000000;">)</span><br /><br /><br /> <span style="color: #00C800;">IF</span> .NOT. EMPTY<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> nType := NGETFILEFILTER<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">1</span><br /> cExt := <span style="color: #ff0000;">"bmp"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">2</span><br /> cExt := <span style="color: #ff0000;">"jpg"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">3</span><br /> cExt := <span style="color: #ff0000;">"gif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">4</span><br /> cExt := <span style="color: #ff0000;">"tif"</span><br /> <span style="color: #00C800;">CASE</span> nType == <span style="color: #000000;">5</span><br /> cExt := <span style="color: #ff0000;">"png"</span><br /> <span style="color: #00C800;">ENDCASE</span><br /><br /><br /> cFile := cFilePath<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + cFileNoExt<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span> + <span style="color: #ff0000;">"."</span> + cExt<br /><br /> saveimage<span style="color: #000000;">(</span> oimage, cFile <span style="color: #000000;">)</span><br /> <br /><br /> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"saved as: "</span>+ cFile<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">Function</span> saveimage<span style="color: #000000;">(</span> oImage, cSaveName <span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">local</span> oBmp:= GDIBmp<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span> <span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> hbitmap:= oimage:<span style="color: #000000;">GetHBitmap</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br />obmp:<span style="color: #000000;">hbmp</span> := GDIP_FROMHBITMAP<span style="color: #000000;">(</span> hbitmap <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">if</span> oImage:<span style="color: #000000;">nRotate</span> != <span style="color: #000000;">0</span><br /> obmp:<span style="color: #000000;">hbmp</span>:= GdiPlusImageRotateAngle<span style="color: #000000;">(</span> obmp:<span style="color: #000000;">hBmp</span>, oImage:<span style="color: #000000;">nRotate</span> , .f. <span style="color: #000000;">)</span><br /><span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> oimage:<span style="color: #000000;">nZoom</span> != <span style="color: #000000;">1</span><br /> obmp:<span style="color: #000000;">resize</span><span style="color: #000000;">(</span> obmp:<span style="color: #000000;">Getwidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> * oimage:<span style="color: #000000;">nZoom</span>, obmp:<span style="color: #000000;">GetHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> * oimage:<span style="color: #000000;">nZoom</span> <span style="color: #000000;">)</span> <br /><span style="color: #00C800;">endif</span><br /><br />obmp:<span style="color: #000000;">save</span><span style="color: #000000;">(</span> cSaveName <span style="color: #000000;">)</span><br /> DeleteObject<span style="color: #000000;">(</span> hbitmap <span style="color: #000000;">)</span><br /> <br />obmp:<span style="color: #000000;">end</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3u9t6jqv] |
ximage rotate and save | [color=#8080FF:1rh0quxq][size=200:1rh0quxq]thanks Manuel [/size:1rh0quxq][/color:1rh0quxq]
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
xls color | Hi
#include "fivewin.ch"
#include "FileXLS.ch"
#include "XLSForm.ch"
#include "XLSError.ch"
#define BORDER_UP nOr( BORDER_TOP )
#define BORDER_DOWN nOr( BORDER_BOTTOM )
#DEFINE TRUE .T.
#DEFINE FALSE .L.
LOCAL nFormat,nFormat2,nFormat3,nFont1,nFont2,nFont3,oXLS
local f
local i
DEFINE XLS FORMAT nFormat PICTURE '#,##0.00_);[Red](#,##0.00)'
DEFINE XLS FORMAT nFormat1 PICTURE '0'
DEFINE XLS FONT nFont1 NAME "Arial" HEIGHT 12 BOLD
DEFINE XLS FONT nFont3 NAME "Times New Roman" HEIGHT 10 BOLD
DEFINE XLS FONT nFont4 NAME "Times New Roman" HEIGHT 10
@ 1,1 XLS SAY "ABC" OF oXls FONT nFont1
How to colour "ABC" to become blue.
And if I want to have a grey background, how do I do it.
Regards
AC Woo
Using FWH + bcc582 |
xls color | With this class you can not color the font (look at the code), I think if you can put a plot in the background.
Saludos |
xls color | como ejemplo:
esta es una función adaptada para que construya una hoja en excel a partir de un xBrowse dado
[code=fw:2s7dr9tu]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> ExcelConstructor<span style="color: #000000;">(</span> oBrw, oMeter, cTitle <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> oExcel, oBook, oSheet, nRow, nCol, uData, nEvery, oRange, cRange, cCell, cLet, nColHead, bError, cText, oClip, nStart, aRepl, ;<br /> nLine := <span style="color: #000000;">1</span>, nCount := <span style="color: #000000;">0</span>, aCol := <span style="color: #000000;">{</span> <span style="color: #000000;">26</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">78</span>, <span style="color: #000000;">104</span>, <span style="color: #000000;">130</span>, <span style="color: #000000;">156</span> <span style="color: #000000;">}</span>, aLet := <span style="color: #000000;">{</span> <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">"A"</span>, <span style="color: #ff0000;">"B"</span>, <span style="color: #ff0000;">"C"</span>, <span style="color: #ff0000;">"D"</span>, <span style="color: #ff0000;">"E"</span> <span style="color: #000000;">}</span>, xWin<br /><br /> CursorWait<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cLet := aLet<span style="color: #000000;">[</span> ASCAN<span style="color: #000000;">(</span> aCol, <span style="color: #000000;">{</span>|e| LEN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span> <= e <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> <span style="color: #000000;">]</span><br /> <span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span> cLet <span style="color: #000000;">)</span><br /> nCol := ASCAN<span style="color: #000000;">(</span> aLet, cLet <span style="color: #000000;">)</span> - <span style="color: #000000;">1</span><br /> cLet += CHR<span style="color: #000000;">(</span> <span style="color: #000000;">64</span> + LEN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span> - aCol<span style="color: #000000;">[</span> <span style="color: #0000ff;">MAX</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, nCol <span style="color: #000000;">)</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ELSE</span><br /> cLet := CHR<span style="color: #000000;">(</span> <span style="color: #000000;">64</span> + LEN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> aRepl := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /> *oMeter:<span style="color: #000000;">SetRange</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nLen</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> *oMeter:<span style="color: #000000;">Setpos</span><span style="color: #000000;">(</span> <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> *oMeter:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> nEvery := <span style="color: #0000ff;">MAX</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span>, INT<span style="color: #000000;">(</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nLen</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> * .<span style="color: #000000;">02</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> bError := ErrorBlock<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> | x | <span style="color: #00C800;">Break</span><span style="color: #000000;">(</span> x <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> BEGIN SEQUENCE<br /> oExcel := TOleAuto<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"Excel.Application"</span><span style="color: #000000;">)</span><br /> RECOVER<br /> ErrorBlock<span style="color: #000000;">(</span> bError <span style="color: #000000;">)</span><br /> CursorArrow<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> MsgFlip<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Excel no se encuentra instalado..."</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /> END SEQUENCE<br /> ErrorBlock<span style="color: #000000;">(</span> bError <span style="color: #000000;">)</span><br /> nCount -= <span style="color: #000000;">15</span><br /> *oMeter:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> nCount <span style="color: #000000;">)</span><br /> oExcel:<span style="color: #000000;">ScreenUpdating</span> := .F.<br /> oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Add</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oBook := oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"ActiveWorkBook"</span><span style="color: #000000;">)</span><br /> oSheet := oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"ActiveSheet"</span> <span style="color: #000000;">)</span><br /> nCount -= <span style="color: #000000;">15</span><br /> *oMeter:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> nCount <span style="color: #000000;">)</span><br /><br /> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> Eval<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">bGoTop</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> cText := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">FOR</span> nRow := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> oBrw:<span style="color: #000000;">nLen</span><br /> <span style="color: #00C800;">IF</span> nRow == <span style="color: #000000;">1</span><br /> oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span> nLine++, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := cTitle<br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A1:"</span> + cLet + <span style="color: #ff0000;">"1"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Set</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"HorizontalAlignment"</span>, <span style="color: #000000;">7</span> <span style="color: #000000;">)</span><br /> ++nLine<br /> nStart := nLine<br /><br /> nColHead := <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> uData := IIF<span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cHeader</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span>, EVAL<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cHeader</span> <span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cHeader</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span> != <span style="color: #ff0000;">"C"</span><br /> LOOP<br /> <span style="color: #00C800;">ENDIF</span><br /> uData := STRTRAN<span style="color: #000000;">(</span> uData, CRLF, Chr<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nColHead ++<br /> oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span> nLine, nColHead <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := uData<br /> <span style="color: #00C800;">IF</span> nCount % nEvery == <span style="color: #000000;">0</span><br /> *oMeter:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> nCount <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> nCount ++<br /> <span style="color: #00C800;">NEXT</span><br /> nStart := ++ nLine<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Len<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> uData := EVAL<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">bEditValue</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span> .AND. <span style="color: #00C800;">AT</span><span style="color: #000000;">(</span> CRLF, uData <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> uData := STRTRAN<span style="color: #000000;">(</span> uData, CRLF, <span style="color: #ff0000;">"&&"</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> ASCAN<span style="color: #000000;">(</span> aRepl, nCol <span style="color: #000000;">)</span> == <span style="color: #000000;">0</span><br /> AADD<span style="color: #000000;">(</span> aRepl, nCol <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cEditPicture</span> != <span style="color: #00C800;">Nil</span><br /> uData := TRANSFORM<span style="color: #000000;">(</span> uData, oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cEditPicture</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> uData := IIF<span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span>==<span style="color: #ff0000;">"D"</span>, DTOC<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span>, ;<br /> IIF<span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span>==<span style="color: #ff0000;">"N"</span>, STR<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span> , ;<br /> IIF<span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span>==<span style="color: #ff0000;">"L"</span>, IIF<span style="color: #000000;">(</span> uData ,<span style="color: #ff0000;">".T."</span> ,<span style="color: #ff0000;">".F."</span> <span style="color: #000000;">)</span>, cValToChar<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> cText += TRIM<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span> + Chr<span style="color: #000000;">(</span> <span style="color: #000000;">9</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> nCount % nEvery == <span style="color: #000000;">0</span><br /> *oMeter:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> nCount <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /> nCount ++<br /> <span style="color: #00C800;">NEXT</span><br /> oBrw:<span style="color: #000000;">Skip</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> cText += CHR<span style="color: #000000;">(</span> <span style="color: #000000;">13</span> <span style="color: #000000;">)</span><br /> ++nLine<br /> <span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span> > <span style="color: #000000;">400000</span><br /> oClip := TClipBoard<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">Clear</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> cCell := <span style="color: #ff0000;">"A"</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> nStart <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oRange := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> cCell <span style="color: #000000;">)</span><br /> oRange:<span style="color: #0000ff;">Select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oSheet:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cText := <span style="color: #ff0000;">""</span><br /> nStart := nLine + <span style="color: #000000;">1</span><br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">IF</span> ASCAN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">{</span> |o| o:<span style="color: #000000;">cFooter</span> != <span style="color: #00C800;">Nil</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> <span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">)</span><br /> uData := IIF<span style="color: #000000;">(</span> VALTYPE<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cFooter</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span>, EVAL<span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cFooter</span> <span style="color: #000000;">)</span>, oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span>:<span style="color: #000000;">cFooter</span> <span style="color: #000000;">)</span><br /> uData := cValTochar<span style="color: #000000;">(</span> uData <span style="color: #000000;">)</span><br /> uData := STRTRAN<span style="color: #000000;">(</span> uData, CRLF, Chr<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oSheet:<span style="color: #000000;">Cells</span><span style="color: #000000;">(</span> nLine, nCol <span style="color: #000000;">)</span>:<span style="color: #000000;">Value</span> := uData<br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span> := .T.<br /> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">cAlias</span> <span style="color: #000000;">)</span>-><span style="color: #000000;">(</span> DbGoTop<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> LEN<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span> > <span style="color: #000000;">0</span><br /> oClip := TClipBoard<span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">Clear</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">SetText</span><span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span><br /> cCell := <span style="color: #ff0000;">"A"</span> + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> nStart <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oRange := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> cCell <span style="color: #000000;">)</span><br /> oRange:<span style="color: #0000ff;">Select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oSheet:<span style="color: #000000;">Paste</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> oClip:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> cText := <span style="color: #ff0000;">""</span><br /> <span style="color: #00C800;">ENDIF</span><br /> nLine := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ! Empty<span style="color: #000000;">(</span> cTitle <span style="color: #000000;">)</span>, <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span><br /> cRange := <span style="color: #ff0000;">"A"</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> nLine <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">":"</span> + cLet + AllTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> oSheet:<span style="color: #000000;">UsedRange</span>:<span style="color: #000000;">Rows</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> oRange := oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> cRange <span style="color: #000000;">)</span><br /> oRange:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Name</span> := <span style="color: #ff0000;">"Calibri"</span><br /> oRange:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Size</span> := <span style="color: #000000;">12</span><br /> oRange:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span> := .F.<br /> <span style="color: #00C800;">IF</span> ! EMPTY<span style="color: #000000;">(</span> aRepl <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span> aRepl <span style="color: #000000;">)</span><br /> oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> <span style="color: #000000;">64</span> + aRepl<span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">REPLACE</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"&&"</span>, CHR<span style="color: #000000;">(</span> <span style="color: #000000;">10</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #B900B9;">//--- color titulo </span><br /> <br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #0000ff;">Size</span> := <span style="color: #000000;">14</span><br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span> := .T.<br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">RowHeight</span> := <span style="color: #000000;">30</span><br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">1</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">25</span><br /><br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">Bold</span> := .T.<br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Font</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">20</span><br /> oSheet:<span style="color: #000000;">Rows</span><span style="color: #000000;">(</span> <span style="color: #000000;">3</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">RowHeight</span> := <span style="color: #000000;">25</span><br /> oRange:<span style="color: #000000;">Borders</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>:<span style="color: #000000;">LineStyle</span> := <span style="color: #000000;">1</span><br /> oRange:<span style="color: #000000;">Columns</span>:<span style="color: #000000;">AutoFit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> ! Empty<span style="color: #000000;">(</span> aRepl <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">FOR</span> nCol := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">(</span> aRepl <span style="color: #000000;">)</span><br /> oSheet:<span style="color: #000000;">Columns</span><span style="color: #000000;">(</span> CHR<span style="color: #000000;">(</span> <span style="color: #000000;">64</span> + aRepl<span style="color: #000000;">[</span> nCol <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">WrapText</span> := .T.<br /> <span style="color: #00C800;">NEXT</span><br /> <span style="color: #00C800;">ENDIF</span><br /> *oMeter:<span style="color: #000000;">SetPos</span><span style="color: #000000;">(</span> <span style="color: #000000;">(</span> oBrw:<span style="color: #000000;">nLen</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #B900B9;">//--- color de cabezeras</span><br /><br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A3:"</span>+cLet+<span style="color: #ff0000;">"3"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Interior</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">49</span><br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A3:"</span>+cLet+<span style="color: #ff0000;">"3"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Borders</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">2</span><br /><br /> <span style="color: #B900B9;">//---</span><br /><br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A4"</span> <span style="color: #000000;">)</span>:<span style="color: #0000ff;">Select</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> xWin := oExcel:<span style="color: #000000;">ActiveWindow</span><br /> xWin:<span style="color: #000000;">SplitRow</span> := <span style="color: #000000;">3</span><br /> xWin:<span style="color: #000000;">FreezePanes</span> := .t.<br /> oExcel:<span style="color: #000000;">ScreenUpdating</span> := .t.<br /> oExcel:<span style="color: #000000;">Visible</span> := .T.<br /> ShowWindow<span style="color: #000000;">(</span> oExcel:<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">)</span><br /> BringWindowToTop<span style="color: #000000;">(</span> oExcel:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> CursorArrow<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:2s7dr9tu]
resultado:
[img:2s7dr9tu]http://i68.tinypic.com/33criuq.png[/img:2s7dr9tu] |
xls color | Hi
Thanks
[quote:2c2g0rwl]I think if you can put a plot in the background.[/quote:2c2g0rwl]
How to colour the backgroud ?
Regards
ACWoo
Using FWH + bcc582 |
xls color | [quote:tvgtx8z2]
How to colour the backgroud ?
[/quote:tvgtx8z2]
Puedes agregar o cambiar en estas instrucciones, la variable "cLet" , indica la letra del rango
[code=fw:tvgtx8z2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//--- color de cabezeras</span><br /><br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A3:"</span>+cLet+<span style="color: #ff0000;">"3"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Interior</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">49</span><br /> oSheet:<span style="color: #000000;">Range</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"A3:"</span>+cLet+<span style="color: #ff0000;">"3"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Borders</span>:<span style="color: #000000;">ColorIndex</span> := <span style="color: #000000;">2</span><br /><br /> <span style="color: #B900B9;">//---</span><br /> </div>[/code:tvgtx8z2]
esto es solo un ejemplo de como utilizarla :
Horizontal donde cLet := "M" que viene del total de columnas del xBrowse
oSheet:Range( "A3:M3" ):Interior:ColorIndex := 71
oSheet:Range( "A3:M3" ):Borders:ColorIndex := 2
Vertical donde cLet := "C" y el 100 es el oBrw:nLen del xBrowse
oSheet:Range( "C4:C100" ):Interior:ColorIndex := 101
oSheet:Range( "C4:C100" ):Borders:ColorIndex := 12 |
xmate - alguem tem a configuração para pocket pc? | xmate - alguem tem a configuração para pocket pc? |
xmate - alguem tem a configuração para pocket pc? | Sr. Antonio, o que tem de errado nesta configuração do xmate?
[Environment]
Description 1=
Description 2=
Description 3=
PRG Compiler ver=
C compiler ver=
Subsystem=
Author=VinÝcius
Last update=10/05/2009
[Advanced]
Command types=1,1,1,1,1,1,1,1,1
[Harbour]
HB_INSTALL=C:\harbour_CE
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n /es2 /i%HB_INC_INSTALL% /dFWH
Option prefix=/
[C]
C_INSTALL=C:\vce
C_COMP_COMMAND=%C_BIN_INSTALL%\clarm.exe -TP -W3 -c %CRLF%/DARM %CRLF%/DUNICODE%CRLF%/DFWPLUS%CRLF% -I%HB_INC_INSTALL% -I%C_INC_INSTALL%\arm %C%
C_LIB_COMMAND=%C_BIN_INSTALL%\Lib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\Link.exe @%LNK% /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARM
C_RC_COMMAND=%C_BIN_INSTALL%\rc.exe -r -d_CE%RES% %RC%
C_DLL_COMMAND=%C_BIN_INSTALL%\Link.exe /nologo /SUBSYSTEM:WINDOWSCE,4.20 /MACHINE:ARM @%LNK%
Option prefix=-
[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=
[Files]
C:\FWPPC\LIB\Fivece.lib=1
C:\FWPPC\LIB\Fivecec.lib=2
%HB_LIB_INSTALL%\hbrtl.lib=3
%HB_LIB_INSTALL%\hbvm.lib=4
%HB_LIB_INSTALL%\gtgui.lib=5
%HB_LIB_INSTALL%\hblang.lib=6
%HB_LIB_INSTALL%\hbmacro.lib=7
%HB_LIB_INSTALL%\hbrdd.lib=8
%HB_LIB_INSTALL%\rddntx.lib=9
%HB_LIB_INSTALL%\rddcdx.lib=10
%HB_LIB_INSTALL%\rddfpt.lib=11
%HB_LIB_INSTALL%\hbsix.lib=12
%HB_LIB_INSTALL%\hbdebug.lib=13
%HB_LIB_INSTALL%\hbcommon.lib=14
%HB_LIB_INSTALL%\hbpp.lib=15
%HB_LIB_INSTALL%\hbcpage.lib=16
%HB_LIB_INSTALL%\hbw32.lib=17
%HB_LIB_INSTALL%\hbpcre.lib=18
%C_LIB_INSTALL%\arm\coredll.lib=19
%C_LIB_INSTALL%\arm\corelibc.lib=20
%C_LIB_INSTALL%\arm\aygshell.lib=21
%C_LIB_INSTALL%\arm\ws2.lib=22
%C_LIB_INSTALL%\arm\mfcce400.lib=23
%C_LIB_INSTALL%\arm\ole32.lib=24
%C_LIB_INSTALL%\arm\oleaut32.lib=25
%C_LIB_INSTALL%\arm\olece400.lib=26
%C_LIB_INSTALL%\arm\uuid.lib=27
%C_LIB_INSTALL%\arm\ceshell.lib=28
%C_LIB_INSTALL%\arm\commctrl.lib=29
%C_LIB_INSTALL%\arm\wininet.lib=30 |
xmate y harbour? | buenas noches.
Quien sea tan amable y este utilizando xmate, podria pasarme un proyecto (configuracion)
que utilice harbour y fwh?
gracias. |
xmate y harbour? | qual o seu email? |
xmate y harbour? | Obrigado por responder. Eu passo meu email.
gusmavf arroba gmail punto com |
xmate y harbour? | [url:1en0sm92]https://bitbucket.org/fivetech/fivewin-contributions/downloads/FIVEDIT.EXE[/url:1en0sm92] |
xmate y harbour? | Antonio,
He intentado pasarme a ese editor pero me gusta mas la simpleza que tiene el xMate,
si tuviese un makefile de donde poder ver las librerias que son necesarias para pasar
a harbourd... ya seria total. El xMate es como usar vin en vez de gedit... editor del corazon.
gracias. |
xmate y harbour? | Desculpe a demora, enviado! |
xmate y harbour? | recibido
Gracias! |
xml | Necesito intercambiar mensajes mediante xml.
Para ello estoy revisando el foro y he tratado de probar con mxml pero no logro compilar.
En el prg he incorporado la línea: #include "hbmxml.ch"
Teniendo que descargar el fichero de cabecera de internet porque no lo encuentro ni en los directorios de harbour ni en los de fw.
Y en la lista de librerías de harbour he probado alternativamente con:
1.- Para 32 bits con:
hbmxml.lib
hbmxml-bcc.lib
[code=fw:33n0ngzk]<div class="fw" id="{CB}" style="font-family: monospace;">Compiling...<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r1412151448<span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2014</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'wintpv.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'wintpv.ppo'</span>...<br />Lines <span style="color: #000000;">49411</span>, Functions/Procedures <span style="color: #000000;">583</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'wintpv.c'</span>... Done.<br />Embarcadero C++ <span style="color: #000000;">7.00</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />wintpv.c:<br /><span style="color: #000000;">Turbo</span> Incremental Link <span style="color: #000000;">6.70</span> Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1997</span><span style="color: #000000;">-2014</span> Embarcadero Technologies, Inc.<br />Fatal: <span style="color: #000000;">Too</span> many DEF file names: <span style="color: #000000;">C</span>:\harbour\lib\hbmxml.lib<br />* Linking errors *<br />No se pudo encontrar c:\CLIWIN\FW\wintpv.tds<br />No se pudo encontrar c:\CLIWIN\FW\wintpv.map</div>[/code:33n0ngzk]
2.- Para 64 bits con:
hbmxml.lib
hbmxml-x64.lib
Al terminar la compilación me da el siguiente error:
[code=fw:33n0ngzk]<div class="fw" id="{CB}" style="font-family: monospace;">Compiling...<br />Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r1412151448<span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2014</span>, http:<span style="color: #B900B9;">//harbour-project.org/</span><br />Compiling <span style="color: #ff0000;">'wintpv.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'wintpv.ppo'</span>...<br />Lines <span style="color: #000000;">49041</span>, Functions/Procedures <span style="color: #000000;">583</span><br />Generating C source output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'wintpv.c'</span>... Done.<br />Microsoft <span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> C/C++ Optimizing Compiler Version <span style="color: #000000;">18.00</span><span style="color: #000000;">.31101</span> <span style="color: #00C800;">for</span> x64<br />Copyright <span style="color: #000000;">(</span>C<span style="color: #000000;">)</span> Microsoft Corporation. All rights reserved.<br /><br />wintpv.c<br />Microsoft <span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> Windows <span style="color: #000000;">(</span>R<span style="color: #000000;">)</span> <span style="color: #0000ff;">Resource</span> Compiler Version <span style="color: #000000;">6.3</span><span style="color: #000000;">.9600</span><span style="color: #000000;">.17298</span><br />Copyright <span style="color: #000000;">(</span>C<span style="color: #000000;">)</span> Microsoft Corporation. All rights reserved.<br /><br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLLOADSTRING<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLGETTYPE<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLGETELEMENT<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLGETOPAQUE<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLWALKNEXT<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLSAVEALLOCSTRING<br />wintpv.obj : <span style="color: #000000;">error</span> LNK2001: <span style="color: #000000;">unresolved</span> external symbol HB_FUN_MXMLDELETE<br />wintpv_64.EXE : <span style="color: #000000;">fatal</span> error LNK1120: <span style="color: #000000;">7</span> unresolved externals<br />* Linking errors *</div>[/code:33n0ngzk]
Les ruego me indiquen alguna sugerencia para solventar el problema. |
xml | Tratemiento de ficheros XML.
Me respondo a mi mismo, por si le puede servir a alguien más dado lo enredoso para llegar a la solución y el tiempo empleado.
[u:3fypbmj7]Primero[/u:3fypbmj7] debéis descargar Harbour (actualmente la versión 3.2) directamente de su web, en concreto el archivo: [b:3fypbmj7]harbour-nightly-win.exe[/b:3fypbmj7] de la web: [color=#4000FF:3fypbmj7]https://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/[/color:3fypbmj7]
Una vez descargado lo instalais, colocándolo por ejemplo en la carperta C:\hb32, CON CUIDADO DE QUE NO TENGAIS UNA IGUAL QUE ESTÉ EN USO para no machacarla.
Esto es para conseguir los dos ficheros de cabecera .ch que deberéis de incluir en vuestros programas. En concreto los ficheros:
hbxml.ch
hbmxml.ch
Que no vienen en los harbour que traen mis versiones de FW, ni la de 32 bits ni la de 64.
[u:3fypbmj7]Segundo[/u:3fypbmj7], en los archivos .bat (si usais este método para compilar y linkar) agregar las dos librerías siguientes:
hbmxml.lib
mxml.lib
Que, en mi caso, si que vienen con el harbour que incorporan mis versiones de FW.
Para 32 bits (con BCC):
[code=fw:3fypbmj7]<div class="fw" id="{CB}" style="font-family: monospace;">echo %hdirl%\hbmxml.lib + >> b32.bc<br />echo %hdirl%\mxml.lib + >> b32.bc</div>[/code:3fypbmj7]
Siendo %hdirl% en mi caso: C:\harbour\lib (Estas dos librerías si vienen en el Harbour que acompaña a mi versión de fw)
Para 64 bits ((MSVC++) Ago.2014 ):
[code=fw:3fypbmj7]<div class="fw" id="{CB}" style="font-family: monospace;">echo %hdirl%\hbmxml.lib >> msvc.tmp<br />echo %hdirl%\mxml.lib >> msvc.tmp</div>[/code:3fypbmj7]
Siendo %hdirl% en mi caso: C:\harbour64\lib (Estas dos librerías si vienen en el Harbour que acompaña a mi versión de fw)
[u:3fypbmj7]Tercero[/u:3fypbmj7], además en el código fuente de vuestros programas hay que agregar:
[code=fw:3fypbmj7]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//Para tratamiento de ficheros XML</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\h</span>b32<span style="color: #000000;">\c</span>ontrib<span style="color: #000000;">\x</span>hb<span style="color: #000000;">\h</span>bxml.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\h</span>b32<span style="color: #000000;">\c</span>ontrib<span style="color: #000000;">\h</span>bmxml.ch"</span><span style="color: #ff0000;">"</span></div>[/code:3fypbmj7]
Saludos. |
xml | Corrijo una errata del punto tercero:
En vez de añadir a vuestros fuentes las líneas que ponía en el tercer punto anterior añadir estas:
[code=fw:1aqhpgga]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//Para tratamiento de ficheros XML</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\h</span>b32<span style="color: #000000;">\c</span>ontrib<span style="color: #000000;">\x</span>hb<span style="color: #000000;">\h</span>bxml.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"C:<span style="color: #000000;">\h</span>b32<span style="color: #000000;">\c</span>ontrib<span style="color: #000000;">\h</span>bmxml<span style="color: #000000;">\h</span>bmxml.ch"</span></div>[/code:1aqhpgga] |
xml + harbour | Gostaria de Usar XML e HARBOUR é Possivel ?atualemente uso XHARBOUR onde existe uma classe chamada TXML mas gostaria de migrar para harbour e só esta faltando essa rotina. |
xml help | About the xml below, how I can read a especific value of especific node? If a do xmlNode := xmlIter:Find('CNPJ') i get the first node (<emit>) CNPJ value 7094099400877. But I want to get directly the value of CNPJ in node <dest>
Thanks in advance.
- <emit>
<CNPJ>70940994008277</CNPJ>
<xNome>PANDURATA ALIMENTOS LTDA.EXTR. KM 937,2 ESTAB.170</xNome>
<xFant>PANDURATA/82</xFant>
- <enderEmit>
<xLgr>ROD BR-381 FERNAO DIAS</xLgr>
<nro>K 937</nro>
<xCpl>2 S/N</xCpl>
<xBairro>ROSEIRA</xBairro>
<cMun>3125101</cMun>
<xMun>EXTREMA</xMun>
<UF>MG</UF>
<CEP>37640000</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
</enderEmit>
<IE>2512872330491</IE>
<CRT>3</CRT>
</emit>
- <dest>
<CNPJ>01937635000859</CNPJ>
<xNome>SONDA SUPERM EXP IMP LTDA</xNome>
- <enderDest>
<xLgr>AV SENADOR TEOTONIO VILELA</xLgr>
<nro>5800</nro>
<xBairro>JARDIM SAO JOSE</xBairro>
<cMun>3550308</cMun>
<xMun>SAO PAULO</xMun>
<UF>SP</UF>
<CEP>04804000</CEP>
<cPais>1058</cPais>
<xPais>BRASIL</xPais>
<fone>1131790160</fone>
</enderDest>
<IE>115051646110</IE>
</dest> |
xml help | Wanderson,
You may review FWH\samples\xmlreader.prg and xmltree.prg which are good examples for using trees |
xml help | Thank you Antonio. |
xml in dialog | Hi,
Is there a way to display the contents of an xml in a dialog like the internet explorer does with indentations and change the color of some words?
Thanks in advance. |
xml in dialog | Hello,
Are you looking for something like this:
Best regards
Otto
[img:1fq1pnxz]https://mybergland.com/fwforum/xmlviewer.png[/img:1fq1pnxz] |
xml in dialog | This is a xBrowse! |
xml in dialog | [quote="Otto":1nuv3ha2]This is a xBrowse![/quote:1nuv3ha2]
Hi Otto,
I think this solve my problem, but i want to change a color with some tags.
Do you put the code here? Thank you so mutch |
xml in dialog | You may also try the built-in function of FWH
[code=fw:3a91q3to]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_XmlView<span style="color: #000000;">(</span> cXmlFile <span style="color: #000000;">)</span><br /> </div>[/code:3a91q3to]
Mr. Otto's program appears to be more advanced than this. |
xml in dialog | [quote="nageswaragunupudi":fv9j5237]You may also try the built-in function of FWH
[code=fw:fv9j5237]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_XmlView<span style="color: #000000;">(</span> cXmlFile <span style="color: #000000;">)</span><br /> </div>[/code:fv9j5237]
Mr. Otto's program appears to be more advanced than this.[/quote:fv9j5237]
Thank you Mr. Nages. Fw_XmlView() allows change some lines color? |
xml in dialog | [quote="nageswaragunupudi":1xg1zguy]You may also try the built-in function of FWH
[code=fw:1xg1zguy]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_XmlView<span style="color: #000000;">(</span> cXmlFile <span style="color: #000000;">)</span><br /> </div>[/code:1xg1zguy]
Mr. Otto's program appears to be more advanced than this.[/quote:1xg1zguy]
No reconoce esta función. Debo poner algún include o alguna libreria adicional?
Gracias |
xml in dialog | Which version of Fivewin do you use? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.