topic
stringlengths
1
63
text
stringlengths
1
577k
Aplicación se ""congela""
Angel, no te crea ningún fichero hb_out.log? Has cambiado últimamente algo en la aplicación? Estás usando alguna librería de terceros?
Aplicación se ""congela""
Angel, Aqui tienes explicado como ver el consumo de objetos GDI: [url:8tifw6rn]http://www.tenforums.com/general-support/3077-memory-leak-icons-preview-disapear-ghost-ram-usage.html[/url:8tifw6rn]
Aplicación se ""congela""
Bueno, conseguí hacer funcionar el Checkres(). Cosa curiosa, tengo una línea de código: [code=fw:2qe77p6w]<div class="fw" id="{CB}" style="font-family: monospace;">Set <span style="color: #00C800;">Default</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">&#40;</span>cDirTrabajo<span style="color: #000000;">&#41;</span></div>[/code:2qe77p6w] Si la elimino CheckRes funciona perfectamente (de hecho si ejecuto checkres() justo antes de esa línea funciona bien ... ), curioso. Bueno, a lo que iba. Hace unos meses empecé a sustituir los botones (BUTTON) por Ribbon (Trbtn), y al observar el primer resultado del checkres me ha saltado la liebre. El acceso a una única ficha ha arrojado este resultado : [code=fw:2qe77p6w]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">269487392</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ENVIODEERRORENTRANDOALPROGRAMA<span style="color: #000000;">&#40;</span><span style="color: #000000;">184</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">519</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">235932981</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">202377857</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1913653851</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-1139799473</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-753923516</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1997539906</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1051176</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-1827665397</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1544555009</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1309673983</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-1391457814</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-267384355</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">571476422</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->ASI_FICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">362</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ASIENTOS<span style="color: #000000;">&#40;</span><span style="color: #000000;">112</span><span style="color: #000000;">&#41;</span>->FICHEDITA<span style="color: #000000;">&#40;</span><span style="color: #000000;">1154</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>EDITAFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">168</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">36</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TDIALOG<span style="color: #000000;">&#40;</span><span style="color: #000000;">87</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">880</span><span style="color: #000000;">&#41;</span>->DIALOGBOXINDIRECT<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MSGRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">42</span><span style="color: #000000;">&#41;</span>->KEYFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">902</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>BROWSEFICHA<span style="color: #000000;">&#40;</span><span style="color: #000000;">708</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2610</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1019</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">KEYDOWN</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2213</span><span style="color: #000000;">&#41;</span>->TWINDOW:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1700</span><span style="color: #000000;">&#41;</span>->TXBROWSE:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">11666</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">1108348180</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->CONTAEND<span style="color: #000000;">&#40;</span><span style="color: #000000;">596</span><span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">262</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #000000;">SYSCOMMAND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">2372</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->WINRUN<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TMDIFRAME:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">980</span><span style="color: #000000;">&#41;</span>->ENTRADA<span style="color: #000000;">&#40;</span><span style="color: #000000;">536</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">103</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">06</span>/<span style="color: #000000;">07</span>/<span style="color: #000000;">2016</span> <span style="color: #000000;">14</span>:<span style="color: #000000;">41</span>:<span style="color: #000000;">54</span>: ====================================================================================================   <br /> </div>[/code:2qe77p6w] He ajustado la clase para la correcta eliminación del Brush (supongo que en las últimas versiones de fw este bug ya estará solucionado) y controlaré el rendimiento. Gracias por las pistas, iré informando.
Aplicación se ""congela""
When I init with Windows seven I have allways this problems Now I made allways dialog with sources @x,y and try to insert on res only the bitmaps and try to use only 16x16 bmps to have much memory I not Know why i have that error I not founded a solution and then I use the sources by hand.... the sample test run ok then when i create a big application there is allways error of memory and lose of resources
Aplicación se ""congela""
Angel, > He ajustado la clase para la correcta eliminación del Brush (supongo que en las últimas versiones de fw este bug ya estará solucionado) Cómo lo has corregido ? Puedes mostrar un ejemplo de como usas los botones TRBtn ?
Aplicación se ""congela""
Con este simple ejemplo extraído de testrbtn.prg : [code=fw:tjwuckwa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> oDlg, oPopup, oBtn<br />   <br />   SetResDebug <span style="color: #000000;">&#40;</span>.T.<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Test"</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"click"</span> <span style="color: #000000;">&#41;</span> ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Class TRBtn"</span> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>ivetech.bmp"</span> <span style="color: #0000ff;">LEFT</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br />   <br />   CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:tjwuckwa] Fichero Rc: [code=fw:tjwuckwa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <windows.h><br /><br />#ifdef __FLAT__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest"</span><br />#endif<br /><br />#ifdef __64__<br />   <span style="color: #000000;">1</span> <span style="color: #000000;">24</span> <span style="color: #ff0000;">"WinXP/WindowsXP.Manifest64"</span><br />#endif <br /><br />Test <span style="color: #0000ff;">DIALOG</span> <span style="color: #000000;">17</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">185</span>, <span style="color: #000000;">147</span> <br /><span style="color: #0000ff;">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"MS Sans Serif"</span> <br /><span style="color: #000000;">&#123;</span>  <br />   CONTROL <span style="color: #ff0000;">"Test"</span>, <span style="color: #000000;">100</span>, <span style="color: #ff0000;">"TRBTN"</span>, WS_CHILD | WS_VISIBLE, <span style="color: #000000;">10</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span><br />   DEFPUSHBUTTON <span style="color: #ff0000;">"OK"</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">67</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">14</span> <br /><span style="color: #000000;">&#125;</span></div>[/code:tjwuckwa] En mi version FWH 12.04 ya obtengo en checkres.txt [code=fw:tjwuckwa]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #000000;">07</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">16</span> <span style="color: #000000;">17</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">31</span>: <span style="color: #0000ff;">BRUSH</span>,<span style="color: #000000;">-703592644</span>,<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>TRBTN<span style="color: #000000;">&#40;</span><span style="color: #000000;">102</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #00C800;">DISPLAY</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TCONTROL:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1666</span><span style="color: #000000;">&#41;</span>->TRBTN:<span style="color: #000000;">HANDLEEVENT</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1520</span><span style="color: #000000;">&#41;</span>->_FWH<span style="color: #000000;">&#40;</span><span style="color: #000000;">3153</span><span style="color: #000000;">&#41;</span>->DIALOGBOX<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>->TDIALOG:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span><span style="color: #000000;">&#41;</span>->MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">15</span><span style="color: #000000;">&#41;</span><br />    <br /><span style="color: #000000;">07</span>/<span style="color: #000000;">10</span>/<span style="color: #000000;">16</span> <span style="color: #000000;">17</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">31</span>: ==================================================================================================== <br /> </div>[/code:tjwuckwa] Los cambios en el método [i:tjwuckwa]Destroy[/i:tjwuckwa] de la clase Trbtn.prg son muy simples y, pienso que en nuevas versiones estará corregido ya que debería "cantar" bastante en el uso de recursos de otros usuarios. [code=fw:tjwuckwa]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hArrow</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TRBGROUP"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">if</span> ::<span style="color: #000000;">hBack</span> != ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hBack</span><br />         DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBack</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #B900B9;">// Para eliminar el brush si el botón no está en un TRBGROUP - Ajuste Angel - Sigev</span><br />   <span style="color: #00C800;">else</span><br />     DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBack</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hRgn</span> <span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">FreeBitmaps</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oPopup</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   <span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /> </div>[/code:tjwuckwa]
Aplicación se ""congela""
[code=fw:15f0birl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Ribbon.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oPopup, oBtn<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"Test"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> RBBTN oBtn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">POPUP</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENU</span> BuildPopup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">ROUND</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"click"</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Class TRBtn"</span> BITMAP <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>ivetech.bmp"</span> <span style="color: #0000ff;">LEFT</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;FreeResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;DbCloseAll<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> All<br /><br />&nbsp; &nbsp;Hb_GCAll<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;CLEAR MEMORY<br /><br />&nbsp; &nbsp;CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;PostQuitMessage<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;__QUIT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> BuildPopup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oPopup<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #0000ff;">MENU</span> oPopup <span style="color: #0000ff;">POPUP</span> <span style="color: #000000;">2007</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"One"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"One"</span> <span style="color: #000000;">&#41;</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>ivetech.bmp"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Two"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Two"</span> <span style="color: #000000;">&#41;</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>ivetech.bmp"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SEPARATOR</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Three"</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Three"</span> <span style="color: #000000;">&#41;</span> FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\1</span>6x16<span style="color: #000000;">\f</span>ivetech.bmp"</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ENDMENU</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> oPopup<br />&nbsp;</div>[/code:15f0birl] 
Aplicación se ""congela""
Si, eso está incluído en versiones posteriores a la que indicas
Aplicación se ""congela""
Angel, Asi tambien debería funcionar bien: [code=fw:kenkdogw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hArrow</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">hBack</span> != ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hBack</span><br />&nbsp; &nbsp; &nbsp; DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBack</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hRgn</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">FreeBitmaps</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oPopup</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span></div>[/code:kenkdogw]
Aplicación se ""congela""
[quote="Antonio Linares":1c2j58h4]Angel, Asi tambien debería funcionar bien: [code=fw:1c2j58h4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TRBtn<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hArrow</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">hBack</span> != ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">hBack</span><br />      DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBack</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hRgn</span> <span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">FreeBitmaps</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oPopup</span> != <span style="color: #00C800;">nil</span><br />      ::<span style="color: #000000;">oPopup</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   <span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">0</span></div>[/code:1c2j58h4][/quote:1c2j58h4] En efecto, así también libera correctamente los recursos.
Aplicación se cierra al ejecutar HB_HashIni()
Hola Gente Tengo una aplicación que hace lo siguiente: Al ejecutarse verifica que exista un archivo hash.ini, si es no, pide para introducir parámetros varios, como por ej. el camino de las BD Esta aplicación tiene sus años, la última compilación es de OCT'16 y la compile con FW 1204 y xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9421) Ahora pretendo hacer un modificación y zas! me salta el error del título Los pasos para verificar e intentar detectar el error son: - borro el archivo hash.ini; ejecuto la app, pide los datos a incluir, se ejecuta la linea HB_WriteIni(...), salgo y el archivo se generó - ejecuto la app, Verifica mediante File(...hash.ini) y por T, antes de ejecutar HB_ReadIni(...), incluí a modo de prueba, FOpen(), devuelve el nHandle, luego hago FClose( nHandle) devuelve T. En la linea siguiente ejecuta HB_ReadIni(...) y zas!! hasta luego sin mas. Lo puse dentro de un TRY CATCH, no captura error alguno Se me agotaron las ideas! Alguna pista? muchas gracias
Aplicación se cierra al ejecutar HB_HashIni()
Mario, > incluí a modo de prueba, FOpen(), devuelve el nHandle, luego hago FClose( nHandle) Prueba a quitar esas llamadas
Aplicación se cierra al ejecutar HB_HashIni()
Antonio; mucas gracias por ocuparte Esas llamadas las incluí despues de encontrar que el fallo se daba en HB_RedIni() Acabo de comentar todo. Se sale de app en HB_ReadIni() Tambien incluí Memoread, el error sigue en HB_ReadIni() [code=fw:f8s2n51z]<div class="fw" id="{CB}" style="font-family: monospace;">      <span style="color: #00C800;">try</span><br />         ? <span style="color: #ff0000;">"camino"</span>,scPathSiGeCo+scIniFile<br />         ? <span style="color: #000000;">&#40;</span>n:= FOpen<span style="color: #000000;">&#40;</span> scPathSiGeCo+scIniFile <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />         ? FClose<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span><br />         ? cVar:=MEMOREAD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"d:<span style="color: #000000;">\m</span>gideas<span style="color: #000000;">\s</span>igeco<span style="color: #000000;">\m</span>gigo32.cfg"</span><span style="color: #000000;">&#41;</span><br />         ? File<span style="color: #000000;">&#40;</span> scPathSiGeCo+scIniFile <span style="color: #000000;">&#41;</span><br />         ? FileAttr<span style="color: #000000;">&#40;</span> scPathSiGeCo+scIniFile <span style="color: #000000;">&#41;</span><br />         WQout<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span> cVar <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />         shIni:= HB_ReadINI<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>scPathSiGeCo+scIniFile<span style="color: #000000;">&#41;</span>,,,<span style="color: #00C800;">FALSE</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//scPathSiGeCo+</span><br />      catch oErr<br />         ? oErr:<span style="color: #000000;">Description</span><br />      end<br /> </div>[/code:f8s2n51z]
Aplicar color a las pestañas de un folder
Muy buenas, me gustaría saber como puedo aplicar color de fondo a las pestañas de un folder. Gracias. Un Saludo.
Aplicar color a las pestañas de un folder
En principio los folders suelen usan colores predefinidos de Windows, que que el pintado lo hace Windows y no FWPPC.
Aplicar un Font X a todos los browse de la App.
Hola a tod@s Actualmente defino un font X para aplicarlo al browse de mi app. haciendo esto : DEFINE FONT oFntBrw NAME "XXXXX" SIZE 0, -12 en el browse lo aplico, y al final de la funcion lo destruyo con RELEASE FONT oFntBrw y esto es en cada funcion/procedimiento que manejo un browse, para efecto que todos tengan el mismo font, mi pregunta es : Como podria hacerlo para que todos los browse de la app. lo apliquen sin tanta definicion del font ? Lo probe, declarando Static la variable, funciona, pero ignoro si sea lo correcto. Quizas haciendo un #define alguna sugerencia... Muchas Gracias
Aplicar un Font X a todos los browse de la App.
se me ocurre: porque no haces un font seleccionable por el usuario o lo defines tu y lo almacenas en una bd y luego lo cargas, en una variable MEMVAR o publica salu2 Pako
Aplicar un Font X a todos los browse de la App.
Hola Francisco Quizas no me explique correctamente, no es tanto el saber cual FONT se va a aplicar, sino que, se puedan aplicar sin tanto codigo de definicion por cada dialogo. por que de hecho el font lo estoy asignando yo. Gracias por contestar <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Aplicar un Font X a todos los browse de la App.
Raymundo, Lo puedes definir sólo una vez al comienzo de tu aplicación, usarlo tantas veces como necesites, y destruirlo al final de la aplicación.
Aplicar un Font X a todos los browse de la App.
Ok Antonio, enterado Gracias a todos. <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
Aplication for SPA - Control and booking of hours.
Greetings, I'm designing a system for SPA, with reserves of dating, I think TCalex Daniel class I would help me or just xBrowse and if someone could post or send to my email an example of how to use it with TDolphin not give me much this classes, and I see samples, all directly methodos and really, I think that class does not come much appreciate any help, ideas or suggestions, of course, thanks and greetings. What I need is to control appointments to SPA, the left upright go hours and top horizontally cubicles to be used instead of weekdays, so I think I will serve this class with some changes or if someone has done some adaptation to what I do, I hope any comments or suggestions, thanks, greetings To show a button of what I need to do, by the time I try to xBrowse. Excuse my English-translator. DE ESTA FORMA [img:rb1787ub]http&#58;//imageshack&#46;com/a/img600/5306/a2bp&#46;jpg[/img:rb1787ub] Y DE ESTA OTRA FORMA, ENTRE OTRAS [img:rb1787ub]http&#58;//imageshack&#46;com/a/img849/6329/59qg&#46;jpg[/img:rb1787ub]
Aplication for SPA - Control and booking of hours.
there isTPlanning.prg class of Daniel, ask to daniel !! It run ok but not for Hours but for the day : one day to next nighht as in Hotel booking [img:19qqkcmb]http&#58;//imageshack&#46;com/a/img843/2136/2p7q&#46;jpg[/img:19qqkcmb] Or you can use a simply xbrowse array as this : [img:19qqkcmb]https&#58;//imagizer&#46;imageshack&#46;us/v2/800x501q90/805/orariov&#46;jpg[/img:19qqkcmb]
Aplication for SPA - Control and booking of hours.
Silvio, muchas gracias por responder y las ideas, podrias compartir la TPlann o de donde puedo descargar la y ver samples.? creo que cambiando los dias por horas, podria servirme la TPlann, gracias, saludos...
Aplication for SPA - Control and booking of hours.
[quote="Silvio.Falconi":1qcc6cm1]there isTPlanning.prg class of Daniel, ask to daniel !! It run ok but not for Hours but for the day : one day to next nighht as in Hotel booking [img:1qcc6cm1]http&#58;//imageshack&#46;com/a/img843/2136/2p7q&#46;jpg[/img:1qcc6cm1] Or you can use a simply xbrowse array as this : [img:1qcc6cm1]https&#58;//imagizer&#46;imageshack&#46;us/v2/800x501q90/805/orariov&#46;jpg[/img:1qcc6cm1][/quote:1qcc6cm1] Silvio, saludos, podrias compartir la TPlann con los ultimos cambios o de donde puedo descargarla y ver samples.? creo que cambiando los dias por horas, podria servirme la TPlann y si podrias volover subir tus mimagenes para verlas mejor, gracias, saludos...
Aplication for SPA - Control and booking of hours.
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20671&hilit=wellness&start=15">viewtopic.php?f=3&t=20671&hilit=wellness&start=15</a><!-- l --> Best regards, Otto
Aplication for SPA - Control and booking of hours.
[quote="Otto":1gvtxv95]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20671&hilit=wellness&start=15 Best regards, Otto[/quote:1gvtxv95] Gracias Otto, lo revisare, ese topic es del 2011, esa es la vesion mas actualizada de la TPLann.?...por casualidad tendras la mas actual de la TPLann y la TCalex y algun sample de como usarlas..? gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Aplication with FWHMysqlMariaDb
Mr. Rao I'm finishing my first little app with fwhmysql , now I'm working with the details... It works perfectly, and I just have to finish details of the user interface, I now my question is not new, there is something about this somewhere in forum but I didn't find it. The thing is: I want to open a xBrowse with for example a recordset of 20 rows of Clients table and I want to have down in the xbrowse for example: 'Row 12/12500' where 12 is the line where I am and 12500 is total rows in the table, I'm using autoexpand. How can I do this? I have to use footers for that... or is there a better way? Thanks in advance for your help.
Aplication with FWHMysqlMariaDb
Wherever we display, the message is : "Row " + cValToChar( oBrw:KeyNo ) + "/" + cValToChar( oBrw:nLen ) [u:31pxdjn4][b:31pxdjn4]Display in footer:[/b:31pxdjn4][/u:31pxdjn4] If we display as footer, it looks nice if it is the footer of the first column. This is possible if the first column is wide enough to accommodate the width of the message. In that case, please do [code=fw:31pxdjn4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oBrw:<span style="color: #000000;">lFooter</span> := .t.  <span style="color: #B900B9;">// or better use FOOTERS clause in XBROWSE command</span><br />oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bFooter</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">"Row "</span> + cValToChar<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/"</span> + cValToChar<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />oBrw:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">&#123;</span> || oBrw:<span style="color: #000000;">oCol</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>:<span style="color: #000000;">RefreshFooter</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:31pxdjn4] [u:31pxdjn4][b:31pxdjn4]Display below the browse:[/b:31pxdjn4][/u:31pxdjn4] Next best place is to display in the dialog/window just below the browse as Say. [code=fw:31pxdjn4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />@ row,col <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Row "</span> + cValToChar<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"/"</span> + cValToChar<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">SIZE</span> w,h <span style="color: #0000ff;">OF</span> oDlg<br />oBrw:<span style="color: #000000;">bChange</span> := <span style="color: #000000;">&#123;</span> || oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /> </div>[/code:31pxdjn4] [u:31pxdjn4][b:31pxdjn4]Display RowNo and Total Rows on RecordSelector.[/b:31pxdjn4][/u:31pxdjn4] [code=fw:31pxdjn4]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      WITH OBJECT oBrw<br />         :<span style="color: #000000;">lFooter</span>          := .t.<br />         :<span style="color: #000000;">bRecSelHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">"RowNo"</span> <span style="color: #000000;">&#125;</span><br />         :<span style="color: #000000;">bRecSelData</span>      := <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">KeyNo</span> <span style="color: #000000;">&#125;</span><br />         :<span style="color: #000000;">bRecSelFooter</span>    := <span style="color: #000000;">&#123;</span> |o| o:<span style="color: #000000;">nLen</span> <span style="color: #000000;">&#125;</span><br />         :<span style="color: #000000;">oRecSelFont</span>      := oFont  <span style="color: #B900B9;">// optional</span><br />         :<span style="color: #000000;">nRecSelWidth</span>     := <span style="color: #ff0000;">"99999"</span> <span style="color: #B900B9;">// required size</span><br />      END<br /> </div>[/code:31pxdjn4]
Aplicciones Windows bajo Android?
Hola a todos, Sabeis si existe algun emulador que permita ejecutar aplicacines Windows bajo Android? Gracias
Aplicciones Windows bajo Android?
Carlos, Podrias usar alguna app de Android tipo VNC que te permite controlar el PC remotamente. Otra opción seria un emulador de Windows en Android, pero al tener que convertir instrucciones de x86 en ARM, posiblemente el resultado seria muy lento
Apollo
Hi, someone can tell me if apollodb can be used by a xHarbour / Fivewin program. From what I read in [url:3pwjvfms]http&#58;//www&#46;apollodb&#46;com[/url:3pwjvfms] the answer is no. I wrote two days ago but no answer. In other words I will open, read and edit my original dbf tables through their apollodbserver? (server side) But what about my xHarbour/Fivewin program? (client side) Many thanks to all marco
Apollo
UP!
Apollo
As I recall, many many years ago Apollo was able to work with the commercial version of xharbour, but perhaps not. I would be curious if it would work with a Harbour version ... built using MSVC and Harbour ... Of course if you can't get an answer from them .....
Apollo
Dear Tim, They did non answer me <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> I still forward my demand
Apollo
Hello Marco, I am not clear if you want to link in Apollo in a Fivewin program or if you want to connect to dbf/cdx from another language. I used VB6 / VB.net with Apollo simultaneously with my FIVEWIN program without any problems. But direct access not the database server. Best regards, Otto
Apollo
Otto, Did you use Apollo with FWH ? Which compiler ( Pelles, Borland, MSVC ) ? I would want to use FWH with Harbour and MSVC and work with the Apollo server ... which would provide me some nice distribution options. It's sad they have not replied to this question. Tim
Apollo
Hello Tim, no I used VB and from there direct access not the database Server. Best regards, Otto
Apollo
Otto, sometimes I think that if a customer asks to me to work with my fivewin programs from several remote locations througth vpn slow speed I have no solution. Probably Apollo is a product that allows remote access to data. Only apporting little modifications in my software if the dbf tables are local to client in which exe is running there is a direct access to dbf tables otherwise requests ar managed by Apollo server-side and client- side. At least I hope.
Apollo
Hi Marco. Some times ago I try too with Apollo, without success. Try <!-- m --><a class="postlink" href="http://www.kresin.ru/en/letodb.html">http://www.kresin.ru/en/letodb.html</a><!-- m --> Best regards Ruben Dario Fernandez
Apollo
Ruben, It looks like the site has not been updated in over a year. Is that still an active product ? Have you used it with FWH ? How about data objects ? Are transactions separate or do all database calls need to be revised to the transaction model shown in the FAQ ? Thanks Tim
Apollo
Tim, the page is updated. The new version is dated 2016. Include Libs the exes and a manager too.(connection managger) I'm tesing right now. It's easy to make it wotk. In my test I did not use data objects till now, I'll will test. I,m not use transactions now, because I'm just testing. Transactions are supported, look into FAQ. 2.17 b3 version is the last (2016). I believe that this project is alive. Best regards Ruben Dario Fernandez
Apollo
Ruben, Thanks for the info. At first reading the FAQ, it seemed like you could just add in the RDD and all would work, but then it showed the Transaction sample and I didn't understand if that meant all the code had to be written that way. I am also curious about performance. The discussion on setup for the server shows it can have problems and slow down significantly. I hope you will share what you find. Tim
Apollo
Ok. Tim, I'm testing. "I'll be back" Regards Ruben Dario Fernandez
Apollo
Ruben, is it possible to download two exe files? Server Side: the server and Client Side such as a browse of a dbf table? I'm curious to try it through a vpn Many thanks
Apollo DataBase
Hola amigos, ¿Alguno usa Apollo?. No encontré nada en el foro ni en las listas de Harbour. Un saludo
Apollo DataBase
Lucas, [url:ejr4eqfd]http&#58;//www&#46;apollodb&#46;com/[/url:ejr4eqfd]
Apollo DataBase
umm, siempre he mirado a apollo como un producto interesante por que la compra del servidor $127.00 es compra unica, para multimples implementaciones, sin limite de usaurios. a diferencia de ads server que se compra por licencia y con cada implementacion se debe comprar el servidor. ahora el unico compilador que lo soporta es xharbour.com ya que Przemek desarollo un rdd exclusivo para este compilador de paga. pero solo en modo local (mas que todo para el soporte de indices nsx), no para servidor, lo cual le quita toda la gracia. los otros compiladores xharbour.org y harbour.org no lo toman en cuenta, creo que seria interesante la implementacion de un rdd con soporte para servidor.
Apollo DataBase
Lucas: Pienso lo mismo que Carlos, pero aparentemente nadie lo usa y creo que lo mas barato para usar DBF's Quizás alguien tenga algo para alumbrar un poco el tema. Barato, siguen los DBFs, como primer solución estaría interesante. Aqui un link, pero no hay nada, esta vacio, sobre hbApollo <!-- m --><a class="postlink" href="http://www.harbour-project.org/download_contrib.html">http://www.harbour-project.org/download_contrib.html</a><!-- m --> Saludos Ruben Fernandez.
Apollo DataBase
Hola a ambos, Muchas gracias por responder. La verdad una lástima que harbour no lo soporte. No quiero cambiarme a xHabour.com porque veo que está obsoleto, da problemas con Fviewin y su web está prácticamente parada. Con Harbour estoy muy conento. Una lástima.
Apollo DataBase
¿Alguna noticia sobre este tema? Tenemos que utilizar Apollo RDD con Harbour?
Apollo Database
Hi, Anyone is using Apollo?. There is no info on the forum or Harbour lists. Thanks very much.
Apollo Database
Lucas, [url:1bmubuab]http&#58;//www&#46;apollodb&#46;com/[/url:1bmubuab]
Apollo Database
Lucas: I make the same question in the past, but nobody answer. I believe that it's a cheap solution for dbf's. May be someone know the way to test it. (mi ingles es pésimo, mil disculpas) Saludos Ruben Fernandez.
Apollo RDD? se puede con FWH como?
Hola: Alguien me puede informar si este RDD (cliente servidor) se puede usar con FWH. (Ya estoy tratando con MySql, pero...) Muchas gracias Ruben Fernandez
Apollo RDD? se puede con FWH como?
Ruben Fernandez, Si usas [x]Harbour, y Apollo funciona en los compiladores, no debes de tener problema alguno. En el caso de mysql, existen varias opciones tanto de paga como de uso libre. y que significa el "pero" saludos
Apollo RDD? se puede con FWH como?
Gracias William por contestar, la pregunta apunta a que MySql no contempla (a mi parecer) la posibilidad de que un programa se instale ya con las bases MySql incluidas, el programador debe ir al lugar e instalar MySql. este es el pero. La pregunta sobre Apollo es porque es la alternativa mas barata para los DBF (cliente servisor) ya que ADS es bastante caro y tambien hay que instalarlo en el lugar. Por lo que veo no hay posibilidad de vender un programa por internet y que sea cliente servidor. Gracias y saludos Ruben Fernandez
Apollo RDD? se puede con FWH como?
Ruben Fernandez, Disculpa antes que nada por contestar hasta ahora, pero mysql tiene una opción de que sea "embebido", así no necesitas instalar servidor alguno.
Apollo RDD? se puede con FWH como?
William: Me podrias dar mas datos para saber donde buscar. Muchas gracias. Ruben Fernandez
Apollo RDD? se puede con FWH como?
Ruben, Si existe una forma de hacer una instalacion de MySQL ya con datos "precargados". Esto tambien me tuvo un buen rato de cabeza, hasta que le encontre el como. <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Realmente no es muy dificil pero tampoco facil, en mi caso, tengo que entregar la Database con un poco mas de 100 tablas y 1,000,000 de registros aprox. y me esta funcando muy bien el procediento. Saludos
Apollo RDD? se puede con FWH como?
Raymundo Islas M., Sería importante comentes el procedimiento para que nos ayude a ms de uno saludos y gracias
Apollo RDD? se puede con FWH como?
Gracias Raymundo, podrías ser tan amable de darme/nos mas información. Muchas gracias y disculpa. Ruben Fernandez
Apollo RDD? se puede con FWH como?
Ok guys, por supuesto !! Espero pueda explicarlo de una manera facil y entendible <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Escenario : Tenemos una PC con MySQL instalado como server y ya tenemos la DB con tablas ( PC-A ) e informacion que deseamos enviarsela a algun cliente ( PC-B ). Pasos a realizar en PC-A : - Detenemos el servicio de MySQL - Comprimimos la carpeta MySQL ( ubicada normalmente en Archivos de Programa, en mi caso raiz de C: ) - Reactivamos el servicio y listo ! Pasos a seguir en la PC-B : ( en la mayoria de las veces, lo hago en forma remota ) - Descomprimir archivo MySQL.ZIP en la unidad que deseen ( en mi caso, sigo con raiz de C: ) - Click derecho a la carpeta generada ( MySQL ) - Propiedades - y quitar atributo de solo lectura incluyendo subcarpetas, en Vista y 7, es necesario dar acceso total a la misma - Dentro de la carpeta esta My.ini que tiene nuestra configuracion y ajustes, copiar este archivo a carpeta Windows y lo renombramos a MySql.ini - Ya copiado y renombrado lo editamos y buscamos las entradas : basedir,datadir y ajustamos segun se descomprimio el archivo con datos [code=fw:1sp9pwv8]<div class="fw" id="{CB}" style="font-family: monospace;">#Path <span style="color: #0000ff;">to</span> installation directory. All paths are usually resolved relative <span style="color: #0000ff;">to</span> this.<br />basedir=<span style="color: #ff0000;">"C:/MySQL/"</span>              <--- Ajustar <br />#Path <span style="color: #0000ff;">to</span> the database root<br />datadir=<span style="color: #ff0000;">"C:/MySQL/Data/"</span>      <------ Ajustar aqui tambien !!!!</div>[/code:1sp9pwv8] - Hecho esto, abrimos una ventana del simbolo de sistema ( DOS ) nos pasamos a la carpeta : MySQl\Bin - Aqui empieza lo interesante ! - vamos a escribir el siguiente comando : [b:1sp9pwv8]mysqld-nt.exe --install MySQL --defaults-file=c:\windows\mysql.ini --local-service [/b:1sp9pwv8]y damos enter Si nos sale el aviso que se creo el servicio correctamente seguimos sino, verificamos el comando por si nos fallo algun espacio o guion, en caso de error quizas sea necesario eliminar el servicio y teclear de nuevo correctamente. - y por ultimo, escribimos el comando : [b:1sp9pwv8]net start MySQL[/b:1sp9pwv8] Y listo !!! Ya debemos tener MySql funcionando y con datos en la maquina de nuestro cliente. Casi se me pasaba ! [b:1sp9pwv8]es necesario abrir el puerto 3306 manualmente en el firewall para que no haya ninguna bronca con las terminales ![/b:1sp9pwv8] Como comentario adicional,[b:1sp9pwv8] se recomiendo desactivar el firewall antes de hacer el proceso del PC-B e inclusive el antivirus si es muy quisquilloso.[/b:1sp9pwv8] Saludos
Apollo RDD? se puede con FWH como?
De momento lo estoy haciendo de manera remota, ahorrandome todo lo que implica ir al sitio del cliente, pero en pocos dias lo voy a implementar con el instalador que uso. Supongo que no deberia haber problemas para que se realize el proceso de manera automatica. Hay un "pequeño gran" detalle que no comente, que es cuando en MySQL tengo datos ( DBs ) de varios clientes, pero esa.... esa es otra historia <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Saludos
Apollo RDD? se puede con FWH como?
Raymundo Islas M, Difiero un poquillo con el asunto. Lo que haces según la explicacion (lo cual funciona y eso es lo bueno) es un respaldo y restauración posterior. El caso de mysql embebido es una DLL que hace la función mencionada sin copiar ni instalar nada (modificar el my.ini) solo entregas tu EXE con la DLL [b:2amidb3b]libmysqld.dll[/b:2amidb3b] y una carpeta de datos, y asi tendrías el mysql embebido. No lo tengo dominado pero he estado leyendo mucho y es la forma "embebida" de mysql.
Apollo RDD? se puede con FWH como?
Holas,,, Lo que menciona Raymundo funciona,,, aun que yo mas lo veria como para recuperar una base de datos instalada en una unidad distinta a la unidad "C:", y que formatearon el sistema operativo (que esta en la unidad "C:"),,, pero nagevando por San Google, halle esto que funciona con InnoSetup... (ojo que aun no lo probe...) este texto esta contenido en un file denominado "componentesbd.iss" [code=fw:2ztml2kk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />; Este instalador ejecuta de manera automatizada los componentes de Base de Datos:<br />; el motor MySQL y el montaje de la base de datos del sistema.<br /><br /><span style="color: #000000;">&#91;</span>Setup<span style="color: #000000;">&#93;</span><br />AppName=Componentes de Base de Datos<br />AppVerName=Componentes de Base de Datos<br />;DefaultGroupName=<br />AppPublisher=Mi Empresa<br />AppVersion=<span style="color: #000000;">1.0</span><br />AllowNoIcons=<span style="color: #00C800;">false</span><br />AppCopyright=<br />PrivilegesRequired=admin<br />; Este es el nombre del archivo exe que se va a generar<br />OutputBaseFilename=SetupComponentesBD<br />;DefaultDirName=<span style="color: #000000;">&#123;</span>pf<span style="color: #000000;">&#125;</span><br />ShowLanguageDialog=no<br />LanguageDetectionMethod=none<br />; MinVersion es la versión mínima sobre la cual debe correr el instalador.<br />; En este caso el instalador necesita como mínimo a Windows <span style="color: #000000;">2000</span>.<br />MinVersion=<span style="color: #000000;">0</span>,<span style="color: #000000;">5.0</span><br />; OnlyBelowVersion es la versión máxima sobre la cual debe correr el instalador.<br />; En este caso la versión máxima será Windows Vista<br />OnlyBelowVersion=<span style="color: #000000;">0</span>,<span style="color: #000000;">6.1</span><br /><br />; OJO: <span style="color: #000000;">estos</span> valores aqui abajo indican que no hay desinstalador y que no va a crear grupo de programa para esto <span style="color: #000000;">&#40;</span>ya que no se ocupa<span style="color: #000000;">&#41;</span><br />CreateAppDir=<span style="color: #00C800;">false</span><br />DisableProgramGroupPage=<span style="color: #00C800;">true</span><br />UsePreviousGroup=<span style="color: #00C800;">false</span><br />Uninstallable=<span style="color: #00C800;">false</span><br />AlwaysRestart=<span style="color: #00C800;">false</span><br /><br /><span style="color: #000000;">&#91;</span>Tasks<span style="color: #000000;">&#93;</span><br />; Esto es la indicación para innosetup de que debe crear los íconos necesarios<br />; para iniciar el programa y para desinstalarlo<br />;Name: <span style="color: #000000;">desktopicon</span>; Description: <span style="color: #000000;">Create</span> a &desktop <span style="color: #0000ff;">icon</span>; GroupDescription: <span style="color: #000000;">Additional</span> icons:<br /><br /><span style="color: #000000;">&#91;</span>Files<span style="color: #000000;">&#93;</span><br />; Este es el archivo de configuracion de MySQL que yo ya prepare de antemano<br />Source: <span style="color: #000000;">mycnf</span>\my.ini; DestDir: <span style="color: #000000;">&#123;</span>win<span style="color: #000000;">&#125;</span>; DestName: <span style="color: #000000;">my</span>.ini; Flags: <span style="color: #000000;">ignoreversion</span><br />; Este archivo mbd.dat es un script SQL con el montaje de la base de datos, el cual yo copio en la carpeta temporal<br />; de windows; y con el parámetro <span style="color: #ff0000;">"deleteafterinstall"</span> se borrará automáticamente cuando termine<br />; la instalación<br />Source: <span style="color: #000000;">bd</span>\mbd.dat; DestDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; Flags: <span style="color: #000000;">ignoreversion</span> deleteafterinstall<br /><br /><span style="color: #000000;">&#91;</span>INI<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #000000;">&#91;</span>Icons<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #000000;">&#91;</span>Run<span style="color: #000000;">&#93;</span><br />; Instalamos MySQL <span style="color: #000000;">5</span> en modo desatendido y silencioso<br />Filename: <span style="color: #000000;">msiexec</span>; Parameters: <span style="color: #ff0000;">"/i mysql-essential-5.0.45-win32.msi /qn INSTALLDIR="</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\m</span>ysql"</span><span style="color: #ff0000;">""</span>; WorkingDir: <span style="color: #000000;">&#123;</span>src<span style="color: #000000;">&#125;</span>\mysql_5<span style="color: #000000;">.0</span><span style="color: #000000;">.45</span>; StatusMsg: <span style="color: #000000;">Instalando</span> Motor de Base de Datos; Description: <span style="color: #000000;">Instalar</span> Motor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br /><br />; Instalamos el servicio de MySQL<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysqld-nt.exe; Parameters: --install; WorkingDir: <span style="color: #000000;">C</span>:\mysql\bin; StatusMsg: <span style="color: #000000;">Instalando</span> Servicio MySQL; Description: <span style="color: #000000;">Instalar</span> Servicio MySQL; Flags: <span style="color: #000000;">runhidden</span><br />; Levantamos el servicio de MySQL en Windows 2K_XP<br />Filename: <span style="color: #000000;">net</span>.exe; Parameters: <span style="color: #000000;">start</span> mysql; StatusMsg: <span style="color: #000000;">Iniciando</span> Servicio MySQL; Description: <span style="color: #000000;">Iniciar</span> Servicio MySQL; Flags: <span style="color: #000000;">runhidden</span><br /><br />; *** Hacemos los ajustes finales de usuarios y passwords en la base de datos ***<br />; Se monta la base de datos de la aplicación<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"source mbd.dat;"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; BeforeInstall: <span style="color: #0000ff;">Sleep</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">7000</span><span style="color: #000000;">&#41;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br />; Borramos al usuario invitado<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"delete from mysql.user where user='';"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br />; Insertamos al usuario root del host % <span style="color: #000000;">&#40;</span>para permitir conexiones remotas<span style="color: #000000;">&#41;</span><br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"insert into mysql.user(host,user) values ('%','root');"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br />; Le damos todos los privilegios al usuario root del host % que acabamos de agregar<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"grant all on *.* to root;"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br />; Asignamos el password para el usuario root<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"update mysql.user set password=PASSWORD('contrasenya');"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br />; Flusheamos los privilegios<br />Filename: <span style="color: #000000;">C</span>:\mysql\bin\mysql.exe; Parameters: <span style="color: #ff0000;">"-e "</span><span style="color: #ff0000;">"flush privileges;"</span><span style="color: #ff0000;">" -u root"</span>; WorkingDir: <span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span>; StatusMsg: <span style="color: #000000;">Configurando</span> Servidor de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br /><br />; Agregamos al puerto <span style="color: #000000;">3306</span> en las excepciones del firewall de windows<br />Filename: <span style="color: #000000;">netsh</span>; Parameters: <span style="color: #000000;">firewall</span> add portopening TCP <span style="color: #000000;">3306</span> MySql; StatusMsg: <span style="color: #000000;">Aplicando</span> directivas de seguridad; MinVersion: <span style="color: #000000;">0</span>,<span style="color: #000000;">4.0</span>; OnlyBelowVersion: <span style="color: #000000;">0</span>,<span style="color: #000000;">5.3</span>; Description: <span style="color: #000000;">Aplicando</span> directivas de seguridad; Flags: <span style="color: #000000;">runhidden</span><br /><br /><span style="color: #000000;">&#91;</span>Registry<span style="color: #000000;">&#93;</span><br />; Agregamos la carpeta de MySQL <span style="color: #000000;">5</span> al PATH de Windows en<br />; Windows 2K_XP<br />; OJO: <span style="color: #000000;">al</span> <span style="color: #00C800;">final</span> no necesite habilitar esto pero lo deje por aquello de que se quiera habilitar<br />;Root: <span style="color: #000000;">HKLM</span>; Subkey: <span style="color: #000000;">System</span>\CurrentControlSet\Control\Session Manager\Environment; ValueType: <span style="color: #000000;">string</span>; ValueName: <span style="color: #000000;">Path</span>; ValueData: <span style="color: #ff0000;">"{reg:HKLM<span style="color: #000000;">\S</span>ystem<span style="color: #000000;">\C</span>urrentControlSet<span style="color: #000000;">\C</span>ontrol<span style="color: #000000;">\S</span>ession Manager<span style="color: #000000;">\E</span>nvironment,Path};C:<span style="color: #000000;">\m</span>ysql<span style="color: #000000;">\b</span>in"</span>; MinVersion: <span style="color: #000000;">0</span>,<span style="color: #000000;">4.0</span>; OnlyBelowVersion: <span style="color: #000000;">0</span>,<span style="color: #000000;">5.3</span><br /><br /><span style="color: #000000;">&#91;</span>Messages<span style="color: #000000;">&#93;</span><br />; Estos mensajes simplemente son un override de los mensajes de Innosetup ya que vienen<br />; en inglés.<br />WelcomeLabel1=Instalación de los Componentes de Base de Datos<br />WelcomeLabel2=Este proceso instalará los Componentes de Base de Datos.%n%nSe recomienda cerrar todas las aplicaciones abiertas%nantes de continuar.<br />ButtonBack=< &Atrás<br />ButtonBrowse=&Examinar...<br />ButtonCancel=Cancelar<br />ButtonFinish=&Finalizar<br />ButtonInstall=&Instalar<br />ButtonNewFolder=Crear &Nueva Carpeta<br />ButtonNext=&Siguiente ><br />ButtonNoToAll=N&o a todos<br />ButtonYes=&Sí<br />ButtonYesToAll=S&í a todos<br />ClickFinish=Presione Finalizar para completar la Instalación.<br />ClickNext=Presione Siguiente para continuar, o Cancelar%npara salir de la Instalación.<br />ConfirmDeleteSharedFileTitle=¿Remover Archivo Compartido?<br />ConfirmDeleteSharedFile2=El sistema indica que el archivo indicado no está siendo utilizado por%nningún programa. ¿Desea eliminarlo?%n%nSi algún programa requiere de este archivo y es eliminado, no%nfuncionará correctamente. Si no está seguro, presione No.%nConservar este archivo no hará daño alguno a su sistema.<br />ConfirmTitle=Confirmación<br />ConfirmUninstall=¿Está seguro que desea eliminar completamente %<span style="color: #000000;">1</span> y todos%nsus componentes?<br />DirDoesntExist=La carpeta:%n%n%<span style="color: #000000;">1</span>%n%nno existe. ¿Desea crearla?<br />DirDoesntExistTitle=La Carpeta No Existe<br />DirExists=La carpeta:%n%n%<span style="color: #000000;">1</span>%n%ntodavía existe. ¿Desea instalar en esa carpeta de todas formas?<br />DirExistsTitle=La Carpeta Existe<br />ExistingFileNewer=El archivo existente es más nuevo que el que intenta instalar.%nSe recomienda conservar el archivo existente.%n%n¿Desea conservar el archivo existente?<br />ExitSetupMessage=La instalación no se ha completado. Si sale de la instalación%nel programa no será instalado.%n%nDeberá ejecutar nuevamente la instalación para completarla.%n%n¿Desea salir de la instalación?<br />ExitSetupTitle=Salir de la Instalación<br />FileExists=El archivo o carpeta todavía existe.%n%n¿Desea sobreescribirlo?<br />FinishedHeadingLabel=Completando el Asistente de Instalación<br />FinishedLabel=La instalación ha finalizado.<br />FinishedLabelNoIcons=La instalación ha finalizado.<br />FinishedRestartLabel=Para finalizar la instalación, usted debe reiniciar la computadora.%n¿Desea reiniciar su computadora en este momento?<br />FinishedRestartMessage=Para finalizar la instalación, usted debe reiniciar la computadora.%n%n¿Desea reiniciar su computadora en este momento?<br />InstallingLabel=Favor espere mientras se instalan los componentes en su computadora.<br />NewFolderName=Nueva Carpeta<br />ReadyLabel1=El Asistente de instalación está preparado para iniciar.<br />ReadyLabel2a=Presione Instalar para continuar con la instalación, o presione%nAtrás si desea revisar o cambiar alguna configuración.<br />ReadyLabel2b=Presione Instalar para continuar con la instalación.<br />SelectDirBrowseLabel=Para continuar, presione Siguiente. Si desea seleccionar una%ncarpeta diferente presione Examinar.<br />SelectDirDesc=¿En qué carpeta desea instalar?<br />SelectDirLabel3=El Asistente instalará los componentes en la siguiente carpeta.<br />SelectStartMenuFolderBrowseLabel=Para continuar, presione Siguiente. Si desea seleccionar una%ncarpeta diferente, presione Examinar.<br />SelectStartMenuFolderDesc=¿En donde desea colocar los accesos directos?<br />SelectStartMenuFolderLabel3=El Asistente creará los accesos directos en la carpeta de Menú siguiente.<br />SelectTasksDesc=¿Cuáles tareas adicionales deben ser llevadas a cabo?<br />SelectTasksLabel2=Seleccione las tareas adicionales que desea ejecutar mientras%nse instalan los componentes, luego presione Siguiente.<br />SetupAborted=El Asistente de Instalación no finalizó correctamente.%n%nFavor corrija el problema y ejecute de nuevo la Instalación.<br />SetupAppTitle=Instalación<br />SetupWindowTitle=Instalación - %<span style="color: #000000;">1</span><br />StatusCreateDirs=Creando carpetas...<br />StatusCreateIcons=Creando accesos directos...<br />StatusCreateIniEntries=Creando entradas INI...<br />StatusCreateRegistryEntries=Creando entradas de registro...<br />StatusExtractFiles=Extrayendo archivos...<br />StatusRegisterFiles=Registrando archivos...<br />StatusRegisterFiles=Registrando archivos...<br />StatusRollback=Deshaciendo cambios...<br />StatusRunProgram=Finalizando instalación...<br />StatusSavingUninstall=Guardando información de desinstalación...<br />StatusUninstalling=Desinstalando %<span style="color: #000000;">1</span>...<br />UninstallAppFullTitle=Desinstalación de %<span style="color: #000000;">1</span><br />UninstallAppTitle=Desinstalación<br />UninstalledAll=%<span style="color: #000000;">1</span> fue desinstalado correctamente.<br />UninstalledAndNeedsRestart=Para completar la desinstalación, debe reiniciar su computadora.%n%n¿Desea reiniciar su computadora en este momento?<br />UninstalledMost=Desinstalación de %<span style="color: #000000;">1</span> completada.%n%nAlgunos elementos no pudieron ser removidos. Deben ser%neliminados manualmente.<br />UninstallStatusLabel=Favor espere mientras la desinstalación de %<span style="color: #000000;">1</span> se lleva a cabo.<br />WizardInfoAfter=Información<br />WizardInfoBefore=Información<br />WizardInstalling=Instalando<br />WizardPreparing=Preparando la Instalación<br />WizardReady=Listo para Instalar<br />WizardSelectDir=Seleccionar Destino de la Instalación<br />WizardSelectProgramGroup=Seleccionar Carpeta de Menú de Inicio<br />WizardSelectTasks=Seleccionar Tareas Adicionales<br />WizardUninstalling=Estado de la Instalación<br />YesRadio=&Sí, reiniciar la computadora ahora<br />NoRadio=&No, reiniciaré la computadora más tarde<br />NotOnThisPlatform=Este programa no se puede ejecutar en %<span style="color: #000000;">1</span>.<br />WinVersionTooHighError=Este programa no puede ser instalado en %<span style="color: #000000;">1</span> versión %<span style="color: #000000;">2</span> o mayor.<br />WinVersionTooLowError=Este programa requiere %<span style="color: #000000;">1</span> versión %<span style="color: #000000;">2</span> o mayor.<br /><br /> </div>[/code:2ztml2kk]
Apollo RDD? se puede con FWH como?
I este contenido para instalar la aplicacion.. [code=fw:1mq6rnpg]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">&#91;</span>Setup<span style="color: #000000;">&#93;</span><br />AppName=Mi Aplicacion<br />AppVerName=Mi Aplicacion<br />DefaultGroupName=Grupo de Programa<br />AppPublisher=Mi Empresa<br />AppVersion=<span style="color: #000000;">1.0</span><br />AllowNoIcons=<span style="color: #00C800;">false</span><br />AppCopyright=<br />PrivilegesRequired=admin<br />; Este es el nombre del archivo exe que se va a generar<br />OutputBaseFilename=SetupAplicacion<br />; Esta es la carpeta de instalación por defecto. OJO: <span style="color: #000000;">&#123;</span>pf<span style="color: #000000;">&#125;</span> es una variable propia de<br />; innosetup y significa la carpeta de Archivos de programa <span style="color: #000000;">&#40;</span>o Program files si es<br />; un windows en inglés<span style="color: #000000;">&#41;</span><br />DefaultDirName=<span style="color: #000000;">&#123;</span>pf<span style="color: #000000;">&#125;</span>\Aplicacion<br />ShowLanguageDialog=no<br />LanguageDetectionMethod=none<br />; MinVersion es la versión mínima sobre la cual debe correr el instalador.<br />; En este caso se necesita como mínimo Windows <span style="color: #000000;">2000</span><br />MinVersion=<span style="color: #000000;">0</span>,<span style="color: #000000;">5.0</span><br />; OnlyBelowVersion es la versión máxima sobre la cual debe correr el instalador.<br />; En este caso la versión máxima es el Windows Vista<br />OnlyBelowVersion=<span style="color: #000000;">0</span>,<span style="color: #000000;">6.1</span><br /><br /><span style="color: #000000;">&#91;</span>Tasks<span style="color: #000000;">&#93;</span><br />; Esto no se toca. Es la indicación para innosetup de que debe crear los íconos necesarios<br />; para iniciar el programa y para desinstalarlo<br /><span style="color: #0000ff;">Name</span>: <span style="color: #000000;">desktopicon</span>; Description: <span style="color: #000000;">Create</span> a &desktop <span style="color: #0000ff;">icon</span>; GroupDescription: <span style="color: #000000;">Additional</span> icons:<br /><br /><span style="color: #000000;">&#91;</span>Files<span style="color: #000000;">&#93;</span><br />; OJO: <span style="color: #000000;">antes</span> que todo. Los parámetros: <span style="color: #000000;">regserver</span> restartreplace shared file, etc. son<br />; parámetros que tienen que ir tal y como aparecen acá. Cuesta un poco comprenderlos.<br />; Por ahora los dejamos tal y como están acá.<br />; Otra cosa: <span style="color: #000000;">&#123;</span>sys<span style="color: #000000;">&#125;</span> = carpeta system de windows<br />; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>win<span style="color: #000000;">&#125;</span> = carpeta windows de windows<br />; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>cf<span style="color: #000000;">&#125;</span> = carpeta archivos comunes de windows<br />; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>tmp<span style="color: #000000;">&#125;</span> = carpeta temporal de windows<br />; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span> = carpeta donde se va a instalar el programa <span style="color: #000000;">&#40;</span>fue definida arriba en el parámetro: <span style="color: #000000;">DefaultDirName</span>=<br />; -------------------------------------------------------------------------------------<br />; Aquí van los archivos de la aplicación: <span style="color: #000000;">el</span> .exe y otros que ocupe el programa<br />Source: <span style="color: #000000;">carpetademiproyecto</span>\aplicacion.exe; DestDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>; Flags: <span style="color: #000000;">ignoreversion</span><br />Source: <span style="color: #000000;">carpetademiproyecto</span>\config.ini; DestDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>; Flags: <span style="color: #000000;">ignoreversion</span><br />Source: <span style="color: #000000;">carpetademiproyecto</span>\*.dll; DestDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>; Flags: <span style="color: #000000;">ignoreversion</span><br />Source: <span style="color: #000000;">carpetademiproyecto</span>\rpt\*.dat; DestDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>\rpt; Flags: <span style="color: #000000;">ignoreversion</span><br /><br /><span style="color: #000000;">&#91;</span>INI<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #000000;">&#91;</span>Icons<span style="color: #000000;">&#93;</span><br />; Estos son los íconos que el instalador va a crear en el grupo de programas.<br />; Aquí se incluye: <span style="color: #000000;">el</span> ícono para abrir el programa, el ícono para desinstalar el programa<br />; y el ícono que se ubica en el escritorio<br />; OJO: <span style="color: #000000;">&#123;</span>group<span style="color: #000000;">&#125;</span> = nombre del grupo de programa que se definió arriba en el parámetro: <span style="color: #000000;">DefaultGroupName</span>=<br /><span style="color: #0000ff;">Name</span>: <span style="color: #000000;">&#123;</span>group<span style="color: #000000;">&#125;</span>\Grupo de Programa; Filename: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>\aplicacion.exe; WorkingDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>; IconIndex: <span style="color: #000000;">0</span><br /><span style="color: #0000ff;">Name</span>: <span style="color: #000000;">&#123;</span>group<span style="color: #000000;">&#125;</span>\Desinstalar Aplicacion; Filename: <span style="color: #000000;">&#123;</span>uninstallexe<span style="color: #000000;">&#125;</span><br /><span style="color: #0000ff;">Name</span>: <span style="color: #000000;">&#123;</span>userdesktop<span style="color: #000000;">&#125;</span>\Aplicacion; Filename: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>\aplicacion.exe; Tasks: <span style="color: #000000;">desktopicon</span>; WorkingDir: <span style="color: #000000;">&#123;</span>app<span style="color: #000000;">&#125;</span>; IconIndex: <span style="color: #000000;">0</span><br /><br /><span style="color: #000000;">&#91;</span>Run<span style="color: #000000;">&#93;</span><br />; OJO: <span style="color: #000000;">yo</span> tengo una carpeta llamada complementos en donde tengo el instalador del Net Framework <span style="color: #000000;">2.0</span> y el MSI del driver de MyODBC<br />; Esta línea ejecuta silenciosamente el instalador del Microsoft Net Framework <span style="color: #000000;">2.0</span><br />Filename: <span style="color: #000000;">&#123;</span>src<span style="color: #000000;">&#125;</span>\complementos\dotnetfx_2<span style="color: #000000;">.0</span>.exe; Parameters: <span style="color: #ff0000;">"/q:a /C:"</span><span style="color: #ff0000;">"install /q"</span><span style="color: #ff0000;">""</span>; WorkingDir: <span style="color: #000000;">&#123;</span>src<span style="color: #000000;">&#125;</span>\complementos; Description: <span style="color: #000000;">Microsoft</span> Net Framework <span style="color: #000000;">2.0</span>; StatusMsg: <span style="color: #000000;">Instalando</span> Microsoft Net Framework <span style="color: #000000;">2.0</span>; Flags: <span style="color: #000000;">runhidden</span><br />; Esta línea ejecuta el driver de MyODBC<br />Filename: <span style="color: #000000;">msiexec</span>; Parameters: /i mysql-connector-odbc<span style="color: #000000;">-3.51</span><span style="color: #000000;">.17</span>-win32.msi /qn; WorkingDir: <span style="color: #000000;">&#123;</span>src<span style="color: #000000;">&#125;</span>\complementos; StatusMsg: <span style="color: #000000;">Instalando</span> Driver de Base de Datos; Description: <span style="color: #000000;">Instalar</span> Driver de Base de Datos; Flags: <span style="color: #000000;">runhidden</span><br /><br /><span style="color: #000000;">&#91;</span>Registry<span style="color: #000000;">&#93;</span><br /><br /><span style="color: #000000;">&#91;</span>Messages<span style="color: #000000;">&#93;</span><br />; Estos mensajes simplemente son un override de los mensajes de Innosetup ya que vienen<br />; en inglés.<br />WelcomeLabel1=Instalación de Mi Aplicacion<br />WelcomeLabel2=Este proceso instalará Mi Aplicacion.%n%nSe recomienda cerrar todas las aplicaciones abiertas%nantes de continuar.<br />ButtonBack=< &Atrás<br />ButtonBrowse=&Examinar...<br />ButtonCancel=Cancelar<br />ButtonFinish=&Finalizar<br />ButtonInstall=&Instalar<br />ButtonNewFolder=Crear &Nueva Carpeta<br />ButtonNext=&Siguiente ><br />ButtonNoToAll=N&o a todos<br />ButtonYes=&Sí<br />ButtonYesToAll=S&í a todos<br />ClickFinish=Presione Finalizar para completar la Instalación.<br />ClickNext=Presione Siguiente para continuar, o Cancelar%npara salir de la Instalación.<br />ConfirmDeleteSharedFileTitle=¿Remover Archivo Compartido?<br />ConfirmDeleteSharedFile2=El sistema indica que el archivo indicado no está siendo utilizado por%nningún programa. ¿Desea eliminarlo?%n%nSi algún programa requiere de este archivo y es eliminado, no%nfuncionará correctamente. Si no está seguro, presione No.%nConservar este archivo no hará daño alguno a su sistema.<br />ConfirmTitle=Confirmación<br />ConfirmUninstall=¿Está seguro que desea eliminar completamente %<span style="color: #000000;">1</span> y todos%nsus componentes?<br />DirDoesntExist=La carpeta:%n%n%<span style="color: #000000;">1</span>%n%nno existe. ¿Desea crearla?<br />DirDoesntExistTitle=La Carpeta No Existe<br />DirExists=La carpeta:%n%n%<span style="color: #000000;">1</span>%n%ntodavía existe. ¿Desea instalar en esa carpeta de todas formas?<br />DirExistsTitle=La Carpeta Existe<br />ExistingFileNewer=El archivo existente es más nuevo que el que intenta instalar.%nSe recomienda conservar el archivo existente.%n%n¿Desea conservar el archivo existente?<br />ExitSetupMessage=La instalación no se ha completado. Si sale de la instalación%nel programa no será instalado.%n%nDeberá ejecutar nuevamente la instalación para completarla.%n%n¿Desea salir de la instalación?<br />ExitSetupTitle=Salir de la Instalación<br />FileExists=El archivo o carpeta todavía existe.%n%n¿Desea sobreescribirlo?<br />FinishedHeadingLabel=Completando el Asistente de Instalación<br />FinishedLabel=La instalación ha finalizado.<br />FinishedLabelNoIcons=La instalación ha finalizado.<br />FinishedRestartLabel=Para finalizar la instalación, usted debe reiniciar la computadora.%n¿Desea reiniciar su computadora en este momento?<br />FinishedRestartMessage=Para finalizar la instalación, usted debe reiniciar la computadora.%n%n¿Desea reiniciar su computadora en este momento?<br />InstallingLabel=Favor espere mientras se instalan los componentes en su computadora.<br />NewFolderName=Nueva Carpeta<br />ReadyLabel1=El Asistente de instalación está preparado para iniciar.<br />ReadyLabel2a=Presione Instalar para continuar con la instalación, o presione%nAtrás si desea revisar o cambiar alguna configuración.<br />ReadyLabel2b=Presione Instalar para continuar con la instalación.<br />SelectDirBrowseLabel=Para continuar, presione Siguiente. Si desea seleccionar una%ncarpeta diferente presione Examinar.<br />SelectDirDesc=¿En qué carpeta desea instalar?<br />SelectDirLabel3=El Asistente instalará los componentes en la siguiente carpeta.<br />SelectStartMenuFolderBrowseLabel=Para continuar, presione Siguiente. Si desea seleccionar una%ncarpeta diferente, presione Examinar.<br />SelectStartMenuFolderDesc=¿En donde desea colocar los accesos directos?<br />SelectStartMenuFolderLabel3=El Asistente creará los accesos directos en la carpeta de Menú siguiente.<br />SelectTasksDesc=¿Cuáles tareas adicionales deben ser llevadas a cabo?<br />SelectTasksLabel2=Seleccione las tareas adicionales que desea ejecutar mientras%nse instalan los componentes, luego presione Siguiente.<br />SetupAborted=El Asistente de Instalación no finalizó correctamente.%n%nFavor corrija el problema y ejecute de nuevo la Instalación.<br />SetupAppTitle=Instalación<br />SetupWindowTitle=Instalación - %<span style="color: #000000;">1</span><br />StatusCreateDirs=Creando carpetas...<br />StatusCreateIcons=Creando accesos directos...<br />StatusCreateIniEntries=Creando entradas INI...<br />StatusCreateRegistryEntries=Creando entradas de registro...<br />StatusExtractFiles=Extrayendo archivos...<br />StatusRegisterFiles=Registrando archivos...<br />StatusRegisterFiles=Registrando archivos...<br />StatusRollback=Deshaciendo cambios...<br />StatusRunProgram=Finalizando instalación...<br />StatusSavingUninstall=Guardando información de desinstalación...<br />StatusUninstalling=Desinstalando %<span style="color: #000000;">1</span>...<br />UninstallAppFullTitle=Desinstalación de %<span style="color: #000000;">1</span><br />UninstallAppTitle=Desinstalación<br />UninstalledAll=%<span style="color: #000000;">1</span> fue desinstalado correctamente.<br />UninstalledAndNeedsRestart=Para completar la desinstalación, debe reiniciar su computadora.%n%n¿Desea reiniciar su computadora en este momento?<br />UninstalledMost=Desinstalación de %<span style="color: #000000;">1</span> completada.%n%nAlgunos elementos no pudieron ser removidos. Deben ser%neliminados manualmente.<br />UninstallStatusLabel=Favor espere mientras la desinstalación de %<span style="color: #000000;">1</span> se lleva a cabo.<br />WizardInfoAfter=Información<br />WizardInfoBefore=Información<br />WizardInstalling=Instalando<br />WizardPreparing=Preparando la Instalación<br />WizardReady=Listo para Instalar<br />WizardSelectDir=Seleccionar Destino de la Instalación<br />WizardSelectProgramGroup=Seleccionar Carpeta de Menú de Inicio<br />WizardSelectTasks=Seleccionar Tareas Adicionales<br />WizardUninstalling=Estado de la Instalación<br />YesRadio=&Sí, reiniciar la computadora ahora<br />NoRadio=&No, reiniciaré la computadora más tarde<br />NotOnThisPlatform=Este programa no se puede ejecutar en %<span style="color: #000000;">1</span>.<br />WinVersionTooHighError=Este programa no puede ser instalado en %<span style="color: #000000;">1</span> versión %<span style="color: #000000;">2</span> o mayor.<br />WinVersionTooLowError=Este programa requiere %<span style="color: #000000;">1</span> versión %<span style="color: #000000;">2</span> o mayor.<br /><br />&nbsp;</div>[/code:1mq6rnpg]
Apollo RDD? se puede con FWH como?
William, Aqui quizas la diferencia principal entre tu enfoque y el mio,[b:2g34vpd1] son los datos[/b:2g34vpd1]. En mi caso, tengo forzosamente que entregar la app con muchisimos datos en los catalogos ( que son principalmente para consulta ) y no veia de que otra manera lograrlo. Te imaginas cuanto tardaria mandar por conexion de mi server ese millon y pico de registros a la Pc del cliente.... o peor aun, cuanta tardaria levantarlos desde un archivo de texto...o hacer la conversion de las DBFs a MySql por cada instalacion.... wow !! no quiero ni pensarlo. En la maquina que uso para "exportar" los datos de la version actual ( DBFs ) a la nueva ( Tablas ) se ha llegado a tardar varias horas y eso que no esta tan tirada a la calle ( i7 a 4.2 Ghz, 6 Gb ram y un VelociRaptor ), que crees que pasaria con un cliente que tenga una PIV a 2.X Ghz y 1-2 Gb ram ? Con esto, creo haber logrado mi objetivo principal que era hacer llegar toda esa informacion inicial al cliente de una manera mas facil y rapida al mismo momento en que se instala la app. Por otro lado, creo que tienes toda la razon, puedo utilizar este metodo para realizar los respaldos de la misma. Muchos Saludos y esperando que tu y todos los tuyos y todos los demas se encuentra muy bien, ya que otra vez los esta "mojando" mucho la madre naturaleza.
Apollo RDD? se puede con FWH como?
Willi Quintana, Se ve muy interesante ese script de instalacion. Aunque comentas que aun no has tenido el chance de probarlo a fondo, me intriga un par de cosillas : - El archivo mbd.dat al parecer seria identico a un archivo xxxxxxx.sql como los que genera Navicat o SqlYog u otros Si es asi, creo que regresamos al punto donde comento el tiempo que tardaria en levantar todos los datos de ese archivo a las tablas. - Aunque suene un poco fuera del tema, la instalacion de MySql seria de manera "natural", y a veces se necesita un poco de "fine tune" a algunos parametros del server. Este tema lo veo muy interesante para todos nosotros, ya que al parecer nuestro siguiente paso seria usar algun motor de datos de este corte. Ojala y los demas colegas que estan mas avanzados que yo, nos compartan algo de sus conocimientos en el tema y si William logra depurar los detalles que comenta para usarlo en forma "embebida" estaria fenomenal para evitarnos lo engorroso de la instalacion. Saludos a todos.
Apollo RDD? se puede con FWH como?
Raymundo Islas M, Si usas tablas tipo innodb, a como lo estas haciendo es lo correcto, pues las tablas innodb concentran todo en unos archivos (creo que 2-3) pero si usas myisam, con respaldar la carpeta de la base de datos correspondiente (llámese contenedor) estarías trasladando tus datos como si de DBF se trataran. Y para el caso del modelo "Embebido" y precisamente esa es una de las funciones, la de enviar "todo" incluído en tu aplicación. Llámese tablas con datos precargados. Estoy leyendo mas el tema del embebido, pronto tendremos repuestas mas palpables. sigo al pendiente
Apollo RDD? se puede con FWH como?
Willi Quintana, Muy interesante aportación. Pero es para instalaciones "limpias", y en el caso del buen Ray, necesita enviar instalaciones con información precargada y según comenta, con muchos miles. Creo que el modelo embebido le funcionará como espera.
Apollo RDD? se puede con FWH como?
Hola Rubén pásate por aquí: <!-- m --><a class="postlink" href="http://lacolinadelloco.blogia.com/">http://lacolinadelloco.blogia.com/</a><!-- m -->
Apollo RDD? se puede con FWH como?
William, Asi es, manejo InnoDb. Por lo que comentas, promete mucho esa opcion embedded. Voy a investigar un poco mas al respecto. Saludos
Apollo RDD? se puede con FWH como?
[quote="Raymundo Islas M.":2vq38job]William, Asi es, manejo InnoDb. Por lo que comentas, promete mucho esa opcion embedded. Voy a investigar un poco mas al respecto. Saludos[/quote:2vq38job] Okas, estaré al pendiente del post.
Apollo RDD? se puede con FWH como?
XManuel: Espectacular, Gracias
Apollo RDD? se puede con FWH como?
Para el que le interese aquí dejo un ejemplo del sistema empotrado o embebido usando Eagle1 y FWH. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Descomprime y ejecuta el ejemplo. No es necesario que exista una instalación de MySQL. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Adjunto también el PRG del ejemplo. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> El link: <!-- m --><a class="postlink" href="http://www.zshare.net/download/805040485f6c0e68/">http://www.zshare.net/download/805040485f6c0e68/</a><!-- m --> o aquí: <!-- m --><a class="postlink" href="http://www.megaupload.com/?d=942Z4CU5">http://www.megaupload.com/?d=942Z4CU5</a><!-- m --> Saludos
Apollo alguien la usa?
Amigos alguien sabe algo de esta librería.? Gracias, saludos Ruben Diario Fernandez Gracias y saludos cordiales. Rubén Dario Fernández Fwh 16.08 - Bcc 7.2 - Synwrite
Aportaciones de Mr. Rao
Hola Amigos: Donde encuentro las aportaciones de Mr. Rao para el manejo de MariaDB, cuando más necesita uno las cosas no las encuentra. <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Saludos
Aportaciones de Mr. Rao
<!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php#fwmysql_support">http://wiki.fivetechsoft.com/doku.php#fwmysql_support</a><!-- m --> <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_fwmariaconnection">http://wiki.fivetechsoft.com/doku.php?i ... connection</a><!-- m --> <!-- m --><a class="postlink" href="http://wiki.fivetechsoft.com/doku.php?id=fivewin_class_fwmariarowset">http://wiki.fivetechsoft.com/doku.php?i ... ariarowset</a><!-- m --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=32737&start=0">viewtopic.php?f=3&t=32737&start=0</a><!-- l --> <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33104#p194979">viewtopic.php?f=3&t=33104#p194979</a><!-- l -->
Aportaciones de Mr. Rao
Cristobal: Muchas gracias. Un abrazo
Aporte - FullNetView()
Hola a todos... Jugando un poco más con la respuesta que ofrecí en esta pregunta. [url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=29520&p=166746#p166746:kgqukta3]Ver respuesta anterior.[/url:kgqukta3] Se me ocurrió darle una vuelta de rosca a dicha función para armar un array multi con más información de las PCs de una LAN. La función devolverá un array de tres dimensiones retornando el nombre del equipo, su dirección IP y su dirección MAC, la cual es super sencilla de entender y como se verá no tiene ningún misterio, sólo se usan comando de la consola de Windows. (Para su uso quitar los MsgInfo() ya que los dejé para que se pueda visualizar fácilmente la idea.) [code=fw:kgqukta3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// DETALLE DE PCS DE UNA RED //</span><br /><span style="color: #00C800;">Function</span> FullNetView<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> aPCs,Q,cTexto,nLinea,cIP,cLinea,cMac<br /><br />aPcs:=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />WAITRUN<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"cmd.exe /c  net view > C:<span style="color: #000000;">\P</span>Cs.txt"</span> , .f.<span style="color: #000000;">&#41;</span><br /><br />cTexto   :=MEMOREAD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>Cs.txt"</span><span style="color: #000000;">&#41;</span><br />nLinea   :=MLCOUNT<span style="color: #000000;">&#40;</span>cTexto<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">FOR</span> Q=<span style="color: #000000;">4</span> <span style="color: #0000ff;">TO</span> nLinea<br />   cLinea:=MEMOLINE<span style="color: #000000;">&#40;</span>cTexto,<span style="color: #000000;">255</span>,Q<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>clinea,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"<span style="color: #000000;">\\</span>"</span><br />      AADD<span style="color: #000000;">&#40;</span>aPCs,<span style="color: #000000;">&#123;</span>ALLTRIM<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cLinea,<span style="color: #000000;">23</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">FOR</span> Q=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span>aPCs<span style="color: #000000;">&#41;</span><br /><br />   WAITRUN<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"cmd.exe /c  ping -n 1 -4 "</span>+<span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">&#40;</span>aPCs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,LEN<span style="color: #000000;">&#40;</span>aPCs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" > C:<span style="color: #000000;">\P</span>ING.txt"</span> , .f.<span style="color: #000000;">&#41;</span><br /><br />   cTexto    :=MEMOREAD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>ING.txt"</span><span style="color: #000000;">&#41;</span><br />   nLinea    :=MLCOUNT<span style="color: #000000;">&#40;</span>cTexto<span style="color: #000000;">&#41;</span><br />   cLinea    :=MEMOLINE<span style="color: #000000;">&#40;</span>cTexto,<span style="color: #000000;">255</span>,<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br />   cIP       :=<span style="color: #0000ff;">RIGHT</span><span style="color: #000000;">&#40;</span>ALLTRIM<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span>,LEN<span style="color: #000000;">&#40;</span>ALLTRIM<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>-RAT<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">" "</span>,ALLTRIM<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   cIP       :=<span style="color: #0000ff;">LEFT</span><span style="color: #000000;">&#40;</span>cIP,LEN<span style="color: #000000;">&#40;</span>ALLTRIM<span style="color: #000000;">&#40;</span>cIP<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br /><br />   aPcs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:=cIP<br /><br />   WAITRUN<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"cmd.exe /c  arp -a "</span>+cIP+<span style="color: #ff0000;">" > C:<span style="color: #000000;">\A</span>RP.txt"</span> , .f.<span style="color: #000000;">&#41;</span><br /><br />   cTexto    :=MEMOREAD<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\A</span>RP.txt"</span><span style="color: #000000;">&#41;</span><br />   nLinea    :=MLCOUNT<span style="color: #000000;">&#40;</span>cTexto<span style="color: #000000;">&#41;</span><br />   cLinea    :=MEMOLINE<span style="color: #000000;">&#40;</span>cTexto,<span style="color: #000000;">255</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span><br /><br />   cMac      :=<span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span>cLinea,<span style="color: #000000;">25</span>,<span style="color: #000000;">17</span><span style="color: #000000;">&#41;</span><br />   aPcs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:=cMac<br /><br /><br />   <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"EQUIPO: "</span>+aPcs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>+CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />           <span style="color: #ff0000;">"IP: "</span>+aPcs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>+CHR<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+;<br />           <span style="color: #ff0000;">"MAC: "</span>+aPcs<span style="color: #000000;">&#91;</span>Q<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>,<span style="color: #ff0000;">"Detalle del equipo"</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">NEXT</span><br /><br />fErase<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>Cs.txt"</span><span style="color: #000000;">&#41;</span><br />fErase<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\P</span>ing.txt"</span><span style="color: #000000;">&#41;</span><br />fErase<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C:<span style="color: #000000;">\A</span>RP.txt"</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> aPCs<br /><span style="color: #B900B9;">//</span><br /> </div>[/code:kgqukta3] El uso que se le de a la función dependerá del consumidor... pero me pareció buena idea escribirla y compartirla con el foro. Espero sea de utilidad. Saludos a todos!
Aporte - FullNetView()
Excelente Esteban, muy amable, gracias. Saludos.
Aporte - Ordenar Hojas de Un Libro de Excel
Hola, el dia de hoy me solicitaron que de un libro de Excel, que genero en tiempo real y que tiene muchas hojas, que al final se vieran ordenadas ascendentemente, y buscando en el foro y en internet me encontre el siguiente codigo de visual basic, que usando el procesador de Macros de Excel ALT+F11, si funciona pero la idea es que nuestro sistema lo hiciera automaticamente: [code=fw:282j44bl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Sub Sort_Active_Book<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Dim i As Integer<br />Dim j As Integer<br />Dim iAnswer As VbMsgBoxResult<br /><span style="color: #ff0000;">'<br />'</span> <span style="color: #0000ff;">Prompt</span> the user as which direction they wish <span style="color: #0000ff;">to</span><br /><span style="color: #ff0000;">' sort the worksheets.<br />'</span><br />   iAnswer = MsgBox<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sort Sheets in Ascending Order?"</span> & Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> _<br />     & <span style="color: #ff0000;">"Clicking No will sort in Descending Order"</span>, _<br />     vbYesNoCancel + vbQuestion + vbDefaultButton1, <span style="color: #ff0000;">"Sort Worksheets"</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">For</span> i = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Sheets.<span style="color: #0000ff;">Count</span><br />      <span style="color: #00C800;">For</span> j = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> Sheets.<span style="color: #0000ff;">Count</span> - <span style="color: #000000;">1</span><br /><span style="color: #ff0000;">'<br />'</span> <span style="color: #00C800;">If</span> the answer is Yes, then sort in ascending order.<br /><span style="color: #ff0000;">'<br />         If iAnswer = vbYes Then<br />            If UCase$(Sheets(j).Name) > UCase$(Sheets(j + 1).Name) Then<br />               Sheets(j).Move After:=Sheets(j + 1)<br />            End If<br />'</span><br /><span style="color: #ff0000;">' If the answer is No, then sort in descending order.<br />'</span><br />         ElseIf iAnswer = vbNo Then<br />            <span style="color: #00C800;">If</span> UCase$<span style="color: #000000;">&#40;</span>Sheets<span style="color: #000000;">&#40;</span>j<span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">Name</span><span style="color: #000000;">&#41;</span> < UCase$<span style="color: #000000;">&#40;</span>Sheets<span style="color: #000000;">&#40;</span>j + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">Name</span><span style="color: #000000;">&#41;</span> Then<br />               Sheets<span style="color: #000000;">&#40;</span>j<span style="color: #000000;">&#41;</span>.<span style="color: #0000ff;">Move</span> After:=Sheets<span style="color: #000000;">&#40;</span>j + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />            End <span style="color: #00C800;">If</span><br />         End <span style="color: #00C800;">If</span><br />      <span style="color: #00C800;">Next</span> j<br />   <span style="color: #00C800;">Next</span> i<br />End Sub<br /> </div>[/code:282j44bl] que convertido a nuestro lenguaje quedo de la siguiente forma: [code=fw:282j44bl]<div class="fw" id="{CB}" style="font-family: monospace;"><br />      <span style="color: #00C800;">IF</span> msgyesno<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Desea Ordenar las Hojas del Libro de Excel ?"</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> oExcel:<span style="color: #000000;">Sheets</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">FOR</span> j := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> oExcel:<span style="color: #000000;">Sheets</span>:<span style="color: #0000ff;">Count</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span><br /><br />                  <span style="color: #00C800;">IF</span> UPPER<span style="color: #000000;">&#40;</span> oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> j <span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Name</span> <span style="color: #000000;">&#41;</span> > UPPER<span style="color: #000000;">&#40;</span> oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> j + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Name</span> <span style="color: #000000;">&#41;</span><br />                      oSheet := oExcel:<span style="color: #000000;">Sheets</span><span style="color: #000000;">&#40;</span>oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> j <span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Name</span><span style="color: #000000;">&#41;</span><br />                      oExcel:<span style="color: #000000;">Sheets</span><span style="color: #000000;">&#40;</span> oExcel:<span style="color: #000000;">WorkSheets</span><span style="color: #000000;">&#40;</span> j + <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Name</span> <span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> oSheet <span style="color: #000000;">&#41;</span><br />                  <span style="color: #00C800;">ENDIF</span><br /><br />            <span style="color: #00C800;">NEXT</span><br />        <span style="color: #00C800;">NEXT</span><br /><br /> </div>[/code:282j44bl] Espero les sirva de algo esta aportacion...
Aporte - Ordenar Hojas de Un Libro de Excel
Gracias Derpipu
Aporte - Ordenar Hojas de Un Libro de Excel
Luis Fernando: Un tequila por eso, Gracias Saludos
Aporte - Ordenar Hojas de Un Libro de Excel
[quote="Armando":ck9j00cx]Luis Fernando: Un tequila por eso, Gracias Saludos[/quote:ck9j00cx] Mejor la botella, jjejjejjejjejje
Aporte - Ordenar Hojas de Un Libro de Excel
[quote="Armando":3yyu1lzl]Luis Fernando: Un tequila por eso, Gracias Saludos[/quote:3yyu1lzl] Mejor la botella, jjejjejjejjejje
Aporte Scripts xDevStudio HB y xHB Con BCC y MSVC Parte 1
Desde hace rato les quede debiendo estos scripts, con los cuales pueden configurar xDevStudio para compilar con Harbour y Xharbour con Borland y Microsoft Visual C, se muchos han tenido dificultades para compilar y tener las versiones de sus aplicaciones de manera fácil con xHarbour o Harbour pero no han logrado hacerlo, con xDev pueden lograrlo. Cada Script de compilación se encuentra en la carpeta scripts esta compuesto de 2 Archivos: Un archivo de configuración: Ej: FiveWin32.xCompiler donde se pueden configurar opciones de compilación. Un Archivo Script&#058; Ej: FiveWin.xCompiler.prg donde se genera todo el script y los archivos bath inclusión de librerías de acuerdo a lo que se defina en el las opciones archivo anterior A los archvios .xCompiler no les hice ningún cambio solo modifique los .xCompiler.prg a continuación coloco el contenido de cada script La asociacion de cada archivo .xCompliler con cada script .xCompiler.prg lo hace con la siguiente instruccion: <option source="nombredearchivo.xCompiler.prg"> La configuración de los entornos de programación se guarda en el archivo Presets.xIni Scripts de compilación para habour y Borland C++ FiveWin32.xCompiler [code=fw:80jb5ljb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><!--<br />### Standard xDev Config - Layout v1<span style="color: #000000;">.5</span> #########<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># Created @ <span style="color: #000000;">16</span>/<span style="color: #000000;">9</span>/<span style="color: #000000;">2006</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># xDevStudio Project - <!-- e --><a href="mailto:xdev@kssoftware.com.br">xdev@kssoftware.com.br</a><!-- e --> &nbsp;#<br />################################################<br />--><br /><compiler <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveWin 32 Bits & Harbour + Borland C++"</span>><br />&nbsp; &nbsp;<option <span style="color: #0000ff;">icon</span>=<span style="color: #ff0000;">"Icons.icl,8"</span>><br />&nbsp; &nbsp;<option source=<span style="color: #ff0000;">"FiveWin.xCompiler.prg"</span>><br />&nbsp; &nbsp;<option depends=<span style="color: #ff0000;">".prg, .c, .obj, .rc, .res"</span>><br />&nbsp; &nbsp;<option compiler=<span style="color: #ff0000;">"harbour.exe"</span>><br />&nbsp; &nbsp;<option onbuild=<span style="color: #ff0000;">"MakeFW32h_BCC"</span>><br /><br />&nbsp; &nbsp;<parameters><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes copiadas do Harbour.xCompiler */</span><br />&nbsp; &nbsp; &nbsp; <option fFlagA=<span style="color: #ff0000;">"/A - auto declarar como MEMVAR"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/A,"</span> hint=<span style="color: #ff0000;">"Declara automaticamente os símbolos não definidos como MEMVAR"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagB=<span style="color: #ff0000;">"/B - Usar depurador?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/B,"</span> hint=<span style="color: #ff0000;">"Habilita o DEBUG em seu aplicativo, que poderá ser invocado, teclando-se ALT+D"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagL=<span style="color: #ff0000;">"/L - Excluir número de &nbsp;linhas"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/L,"</span> hint=<span style="color: #ff0000;">"Exclui a referência interna dos números de linhas dos arquivos deste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagM=<span style="color: #ff0000;">"/M - Compilação individual dos PRGs"</span> &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/M,"</span> hint=<span style="color: #ff0000;">"Determina (quando desativado) que o arquivo principal deve ser compilado junto com os arquivos PRGs referenciados com o comando DO. Se ativado todos os arquivos serão compilados separadamente."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagN=<span style="color: #ff0000;">"/N - Não definir função inicial autom."</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/N,"</span> hint=<span style="color: #ff0000;">"Faz com que não seja incluída a função inicial em cada arquivo compilado neste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagP=<span style="color: #ff0000;">"/P - Gerar arquivo pré-processado"</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/P,"</span> hint=<span style="color: #ff0000;">"Informa se um arquivo pre-processado (.PPO) deve ser gerado ou nao."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagZ=<span style="color: #ff0000;">"/Z - Suprimir optimização .AND./.OR."</span> &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/Z,"</span> hint=<span style="color: #ff0000;">"Desabilita a optimização de campos booleanos"</span>><br /><br /><br />&nbsp; &nbsp; &nbsp; <option fUseUPX=<span style="color: #ff0000;">"Compactar com UPX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Compacta o aplicativo atual com UPX (<!-- m --><a class="postlink" href="http://upx.sourceforge.net/">http://upx.sourceforge.net/</a><!-- m -->). O UPX é um compressor de arquivos executáveis gratuito, com alta-performance para diversos formatos executáveis. Consegue uma relação excelente de compressão e seus executáveis não sofrem nenhum dano."</span>><br />&nbsp; &nbsp; &nbsp; <option fUseMT=<span style="color: #ff0000;">"Habilitar MT"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"MT,"</span> hint=<span style="color: #ff0000;">"Habilita ou não a compilação multi thread"</span>><br />&nbsp; &nbsp; &nbsp; <option fForceCON=<span style="color: #ff0000;">"Forçar app. console?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Força a exibição da janela de console mesmo para um aplicativo gráfico"</span><br /><span style="color: #B900B9;">/* &nbsp; &nbsp;<option fUseHBDLL="Usa HB.DLL?" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Não" select="Sim,Não" hint="Habilita o uso da biblioteca dinâmica (HARBOUR.DLL) em seu aplicativo. Lembre-se que talvez seja necessário incluir o arquivo MAINWIN.C da pasta SOURCE do [x]HB para o correto funcionamento de sua aplicação.">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <option fMiscOption1=<span style="color: #ff0000;">"Flags do Harbour"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Harbour"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption2=<span style="color: #ff0000;">"Flags do Compilador C"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador BCC ou GCC"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption3=<span style="color: #ff0000;">"Flags do Linker"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Linker ou MinGW"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option RDD1=<span style="color: #ff0000;">"Rdd SQL LIB?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD2=<span style="color: #ff0000;">"Rdd DBFCDX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD3=<span style="color: #ff0000;">"Rdd ADS?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD ADS"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD4=<span style="color: #ff0000;">"ODBC Libs?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte às funções de ODBC"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option CustomLIBs=<span style="color: #ff0000;">"LIBs customizadas?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> hint=<span style="color: #ff0000;">"Determina que nenhum arquivo *.LIB será incluido por padrao no script do projeto, mas apenas aquelas que você adicionar"</span>><br />&nbsp; &nbsp; &nbsp; <option CustomDefines=<span style="color: #ff0000;">"Defines"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Define as diretrivas #DEFINE de pré-processamento para todos os módulos deste PROJETO"</span>><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* <option Linker="Linker" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Borland" select="Borland, MinGW" &nbsp;hint="Especifica o lineditor para gerar o seu projeto">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes específicas da MiniGUI */</span><br />&nbsp; &nbsp; &nbsp; <option fUseSQLLIBFirst=<span style="color: #ff0000;">"SQL LIB Antes das LIBs do FW?"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Determina se os arquivos .LIB da SQL LIB RDD devem preceder as LIBs do FW"</span>><br />&nbsp; &nbsp;</parameters><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Os arquivos que poderemos processar ...<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.PRG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".prg"</span> output=<span style="color: #ff0000;">".c"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFilePRG"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".c"</span> output=<span style="color: #ff0000;">".obj"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFileC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.RC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".rc"</span> output=<span style="color: #ff0000;">".res"</span> group=<span style="color: #ff0000;">"Recursos"</span> onbuild=<span style="color: #ff0000;">"OnFileRC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp;</extension><br /></compiler><br /><br />&nbsp;</div>[/code:80jb5ljb] Archivo de Script que acompaña FiveWin.xCompiler.prg [code=fw:80jb5ljb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*<br />&nbsp;* São Paulo , 16/06/2006 @ 06:36<br />&nbsp;* Revisado em 23/8/2006 17:00:02<br />&nbsp;* -----------------------------<br />&nbsp;* MiniGUI.xCompiler.prg<br />&nbsp;*<br />&nbsp;* Arquivo contendo os comandos de Script para processamento de um projeto<br />&nbsp;* Harbour modo CONSOOLE com Borland BCC ou MinGW.<br />&nbsp;*/</span><br /><span style="color: #00D7D7;">#define</span> CRLF Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Prepare<br />&nbsp; &nbsp;type := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TargetType'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'harbour.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hb.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo principal do compilador não existe!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido BCC32.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ilink32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido ILINK32.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #00C800;">function</span> UnPrepare<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .PRG<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFilePRG<br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;cmd := <span style="color: #ff0000;">'harbour.exe'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /q /o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' '</span> + fFlagA + <span style="color: #ff0000;">' '</span> + fFlagL + <span style="color: #ff0000;">' '</span> + fFlagM + <span style="color: #ff0000;">' '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">' '</span> + fFlagN + <span style="color: #ff0000;">' '</span> + fFlagZ &nbsp;+ <span style="color: #ff0000;">' '</span> + fFlagP<br />&nbsp;*<br />&nbsp;* Verificarmos se ele nao quer desativar o DEBUG para este módulo em específico!<br />&nbsp;* para isto usamos a funcao SameText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> que compara os <span style="color: #000000;">2</span> argumentos ignorando<br />&nbsp;* letras maiúsculas / <span style="color: #0000ff;">min</span>úsculas.<br />&nbsp;*<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> PRG_DisableDebug, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' '</span> + fFlagB<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Colocamos os outros parametros <span style="color: #000000;">&#40;</span>se houver<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">" "</span> + fMiscOption1<br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .C<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileC<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;* Salvamos e executamos o comando específico para compilar<br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'b32.bc'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'BCC32 -M -c @B32.BC'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .RC<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileRC<br />&nbsp; &nbsp;cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'brc32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'porc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Erro ao localizar o aplicativo necessário para compilar o módulo "'</span>+m_sFileName+<span style="color: #ff0000;">'"!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; cmd += <span style="color: #ff0000;">' -r -fo"'</span> + m_sOutPut + <span style="color: #ff0000;">'" -i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><br /><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;run <span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> MakeFW32h_BCC<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'LIB'</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'DLL'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Arquivos *.'</span> + type + <span style="color: #ff0000;">' não são suportados por este script (ainda)!'</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'Neste caso use o "Harbour 32 Bits & BCC / MinGW" para criar estes arquivos.'</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .F.<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;* Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />&nbsp;* ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-Gn -Tpe -s +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'", + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+m_sOutPut + <span style="color: #ff0000;">'", + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+ChangeFileExt<span style="color: #000000;">&#40;</span> m_sOutPut, <span style="color: #ff0000;">'.map'</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">'", + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'cw32.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'import32.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'psapi.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD4, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbc32.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'nddeapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'nddeapi.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'iphlpapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'iphlpapi.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rasapi32.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rasapi32.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Põe os RCs do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.RES"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'b32.bc'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'ILINK32 @B32.BC'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> bOk .and. SameText<span style="color: #000000;">&#40;</span> fUseUPX, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'upx.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; if Empty(cmd)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgError( 'Erro ao localizar o arquivo UPX.EXE necessário para compactar seu aplicativo!'+m_PreSetPath )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return .f.<br />&nbsp; &nbsp; &nbsp; end */</span><br /><br />&nbsp; &nbsp; &nbsp; aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev TITLE UPX'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev FILE '</span>+ m_sOutPut +<span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\U</span>PX.EXE --compress-icons=0 &nbsp;--compress-exports=0 -9 "'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cmd := ListAsText<span style="color: #000000;">&#40;</span> aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; runBat<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'sqllib.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; sql_lib := <span style="color: #ff0000;">'sqllib.lib + '</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; sql_lib := ApplyMacros<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'sqllib_($hV).lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizadas não preenchemos isto...<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* A SQL LIB RDD deve preceder sobre as do FW?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Sim ele quer usar e é para ter precedência!!<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysql.lib +'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* É Harbour ou xHabour() ?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH.lib FiveHC.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH.lib FiveHC.lib +'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Testamos se ele quer usar a HARBOUR.DLL se for, isto reduz o numero de LIBs<br />&nbsp; &nbsp; &nbsp; &nbsp;* linkadas no projeto.<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseHBDLL, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'harbour.lib + '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'xhb.lib &nbsp; &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbrtl.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbvm.lib &nbsp; &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'gtgui.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtgui.lib &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtwin.lib &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hblang.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbmacro.lib &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbrdd.lib &nbsp; &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Testa se o arquivo bcc640.lib existe no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * PATH passado no segundo arqumento, neste caso m_PreSetLib<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hbcpage.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcpage.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddntx.lib &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD2, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddcdx.lib &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddfpt.lib &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddntx.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD2, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddcdx.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib + '</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rddfpt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddfpt.lib &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'hbsix.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbsix.lib &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Já adicionamos isto lá encima.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysql.lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcommon.lib &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbpp.lib &nbsp; &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbct.lib &nbsp; &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbwin.lib &nbsp; &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcplr.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbpcre.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbmzip.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'minizip.lib &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbzlib.lib &nbsp; &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbziparc.lib &nbsp; + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'png.lib &nbsp; &nbsp; &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pcrepos.lib &nbsp; &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .LIB no projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.LIB"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" + &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizada, caimos fora!<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fFlagB, <span style="color: #ff0000;">'/B'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'debug.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span><br /><br />&nbsp;</div>[/code:80jb5ljb] Scripts para compilar con xHarbour y Borland FiveWinb.xCompiler.prg [code=fw:80jb5ljb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><!--<br />### Standard xDev Config - Layout v1<span style="color: #000000;">.5</span> #########<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># Created @ <span style="color: #000000;">16</span>/<span style="color: #000000;">9</span>/<span style="color: #000000;">2006</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># xDevStudio Project - <!-- e --><a href="mailto:xdev@kssoftware.com.br">xdev@kssoftware.com.br</a><!-- e --> &nbsp;#<br />################################################<br />--><br /><compiler <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveWin 32 Bits & xHarbour + Borland C++"</span>><br />&nbsp; &nbsp;<option <span style="color: #0000ff;">icon</span>=<span style="color: #ff0000;">"Icons.icl,8"</span>><br />&nbsp; &nbsp;<option source=<span style="color: #ff0000;">"FiveWinb.xCompiler.prg"</span>><br />&nbsp; &nbsp;<option depends=<span style="color: #ff0000;">".prg, .c, .obj, .rc, .res"</span>><br />&nbsp; &nbsp;<option compiler=<span style="color: #ff0000;">"harbour.exe"</span>><br />&nbsp; &nbsp;<option onbuild=<span style="color: #ff0000;">"MakeFW32_BCC"</span>><br /><br />&nbsp; &nbsp;<parameters><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes copiadas do Harbour.xCompiler */</span><br />&nbsp; &nbsp; &nbsp; <option fFlagA=<span style="color: #ff0000;">"/A - auto declarar como MEMVAR"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/A,"</span> hint=<span style="color: #ff0000;">"Declara automaticamente os símbolos não definidos como MEMVAR"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagB=<span style="color: #ff0000;">"/B - Usar depurador?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/B,"</span> hint=<span style="color: #ff0000;">"Habilita o DEBUG em seu aplicativo, que poderá ser invocado, teclando-se ALT+D"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagL=<span style="color: #ff0000;">"/L - Excluir número de &nbsp;linhas"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/L,"</span> hint=<span style="color: #ff0000;">"Exclui a referência interna dos números de linhas dos arquivos deste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagM=<span style="color: #ff0000;">"/M - Compilação individual dos PRGs"</span> &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/M,"</span> hint=<span style="color: #ff0000;">"Determina (quando desativado) que o arquivo principal deve ser compilado junto com os arquivos PRGs referenciados com o comando DO. Se ativado todos os arquivos serão compilados separadamente."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagN=<span style="color: #ff0000;">"/N - Não definir função inicial autom."</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/N,"</span> hint=<span style="color: #ff0000;">"Faz com que não seja incluída a função inicial em cada arquivo compilado neste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagP=<span style="color: #ff0000;">"/P - Gerar arquivo pré-processado"</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/P,"</span> hint=<span style="color: #ff0000;">"Informa se um arquivo pre-processado (.PPO) deve ser gerado ou nao."</span>> &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <option fFlagZ=<span style="color: #ff0000;">"/Z - Suprimir optimização .AND./.OR."</span> &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/Z,"</span> hint=<span style="color: #ff0000;">"Desabilita a optimização de campos booleanos"</span>><br />&nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp; &nbsp; <option fUseUPX=<span style="color: #ff0000;">"Compactar com UPX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Compacta o aplicativo atual com UPX (<!-- m --><a class="postlink" href="http://upx.sourceforge.net/">http://upx.sourceforge.net/</a><!-- m -->). O UPX é um compressor de arquivos executáveis gratuito, com alta-performance para diversos formatos executáveis. Consegue uma relação excelente de compressão e seus executáveis não sofrem nenhum dano."</span>><br />&nbsp; &nbsp; &nbsp; <option fUseMT=<span style="color: #ff0000;">"Habilitar MT"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"MT,"</span> hint=<span style="color: #ff0000;">"Habilita ou não a compilação multi thread"</span>><br />&nbsp; &nbsp; &nbsp; <option fForceCON=<span style="color: #ff0000;">"Forçar app. console?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Força a exibição da janela de console mesmo para um aplicativo gráfico"</span><br /><span style="color: #B900B9;">/* &nbsp; &nbsp;<option fUseHBDLL="Usa HB.DLL?" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Não" select="Sim,Não" hint="Habilita o uso da biblioteca dinâmica (HARBOUR.DLL) em seu aplicativo. Lembre-se que talvez seja necessário incluir o arquivo MAINWIN.C da pasta SOURCE do [x]HB para o correto funcionamento de sua aplicação.">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <option fMiscOption1=<span style="color: #ff0000;">"Flags do Harbour"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Harbour"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption2=<span style="color: #ff0000;">"Flags do Compilador C"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador BCC ou GCC"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption3=<span style="color: #ff0000;">"Flags do Linker"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Linker ou MinGW"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option RDD1=<span style="color: #ff0000;">"Rdd SQL LIB?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD2=<span style="color: #ff0000;">"Rdd DBFCDX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD3=<span style="color: #ff0000;">"Rdd ADS?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD ADS"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD4=<span style="color: #ff0000;">"ODBC Libs?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte às funções de ODBC"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option CustomLIBs=<span style="color: #ff0000;">"LIBs customizadas?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> hint=<span style="color: #ff0000;">"Determina que nenhum arquivo *.LIB será incluido por padrao no script do projeto, mas apenas aquelas que você adicionar"</span>><br />&nbsp; &nbsp; &nbsp; <option CustomDefines=<span style="color: #ff0000;">"Defines"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Define as diretrivas #DEFINE de pré-processamento para todos os módulos deste PROJETO"</span>><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* <option Linker="Linker" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Borland" select="Borland, MinGW" &nbsp;hint="Especifica o lineditor para gerar o seu projeto">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes específicas da MiniGUI */</span><br />&nbsp; &nbsp; &nbsp; <option fUseSQLLIBFirst=<span style="color: #ff0000;">"SQL LIB Antes das LIBs do FW?"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Determina se os arquivos .LIB da SQL LIB RDD devem preceder as LIBs do FW"</span>><br />&nbsp; &nbsp;</parameters><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* <br />&nbsp; &nbsp; * Os arquivos que poderemos processar ...<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.PRG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span> <br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".prg"</span> output=<span style="color: #ff0000;">".c"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFilePRG"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".c"</span> output=<span style="color: #ff0000;">".obj"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFileC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.RC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".rc"</span> output=<span style="color: #ff0000;">".res"</span> group=<span style="color: #ff0000;">"Recursos"</span> onbuild=<span style="color: #ff0000;">"OnFileRC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp;</extension><br /></compiler><br /><br />&nbsp;</div>[/code:80jb5ljb] Script de Complilacion FiveWinb.xCompiler.prg [code=fw:80jb5ljb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* São Paulo , 16/06/2006 @ 06:36<br />&nbsp;* Revisado em 23/8/2006 17:00:02<br />&nbsp;* -----------------------------<br />&nbsp;* MiniGUI.xCompiler.prg<br />&nbsp;*<br />&nbsp;* Arquivo contendo os comandos de Script para processamento de um projeto<br />&nbsp;* Harbour modo CONSOOLE com Borland BCC ou MinGW.<br />&nbsp;*/</span><br /><span style="color: #00D7D7;">#define</span> CRLF Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Prepare<br />&nbsp; &nbsp;type := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TargetType'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'harbour.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hb.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo principal do compilador não existe!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido BCC32.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'ilink32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido ILINK32.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #00C800;">function</span> UnPrepare<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .PRG<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFilePRG<br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;cmd := <span style="color: #ff0000;">'harbour.exe'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /q /o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' '</span> + fFlagA + <span style="color: #ff0000;">' '</span> + fFlagL + <span style="color: #ff0000;">' '</span> + fFlagM + <span style="color: #ff0000;">' '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">' '</span> + fFlagN + <span style="color: #ff0000;">' '</span> + fFlagZ &nbsp;+ <span style="color: #ff0000;">' '</span> + fFlagP<br />&nbsp;*<br />&nbsp;* Verificarmos se ele nao quer desativar o DEBUG para este módulo em específico!<br />&nbsp;* para isto usamos a funcao SameText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> que compara os <span style="color: #000000;">2</span> argumentos ignorando<br />&nbsp;* letras maiúsculas / <span style="color: #0000ff;">min</span>úsculas.<br />&nbsp;*<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> PRG_DisableDebug, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' '</span> + fFlagB<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Colocamos os outros parametros <span style="color: #000000;">&#40;</span>se houver<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">" "</span> + fMiscOption1<br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .C<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileC<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;* Salvamos e executamos o comando específico para compilar<br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'b32.bc'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'BCC32 -M -c @B32.BC'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .RC<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileRC<br />&nbsp; &nbsp;cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'brc32.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'porc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Erro ao localizar o aplicativo necessário para compilar o módulo "'</span>+m_sFileName+<span style="color: #ff0000;">'"!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; cmd += <span style="color: #ff0000;">' -r -fo"'</span> + m_sOutPut + <span style="color: #ff0000;">'" -i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;run <span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> MakeFW32_BCC<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'LIB'</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'DLL'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Arquivos *.'</span> + type + <span style="color: #ff0000;">' não são suportados por este script (ainda)!'</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">'Neste caso use o "Harbour 32 Bits & BCC / MinGW" para criar estes arquivos.'</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .F.<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;* Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />&nbsp;* ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-Gn -Tpe -s +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'", + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp;+ '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+m_sOutPut + <span style="color: #ff0000;">'", + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+ChangeFileExt<span style="color: #000000;">&#40;</span> m_sOutPut, <span style="color: #ff0000;">'.map'</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">'", + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'cw32.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'import32.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'psapi.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD4, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbc32.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'nddeapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'nddeapi.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'iphlpapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'iphlpapi.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rasapi32.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rasapi32.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Põe os RCs do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.RES"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'b32.bc'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'ILINK32 @B32.BC'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> bOk .and. SameText<span style="color: #000000;">&#40;</span> fUseUPX, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'upx.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; if Empty(cmd)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgError( 'Erro ao localizar o arquivo UPX.EXE necessário para compactar seu aplicativo!' )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return .f.<br />&nbsp; &nbsp; &nbsp; end */</span><br /><br />&nbsp; &nbsp; &nbsp; aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev TITLE UPX'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev FILE '</span>+ m_sOutPut +<span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\U</span>PX.EXE --compress-icons=0 &nbsp;--compress-exports=0 -9 "'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cmd := ListAsText<span style="color: #000000;">&#40;</span> aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; runBat<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'sqllib.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; sql_lib := <span style="color: #ff0000;">'sqllib.lib + '</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; sql_lib := ApplyMacros<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'sqllib_($hV).lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizadas não preenchemos isto...<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* A SQL LIB RDD deve preceder sobre as do FW?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Sim ele quer usar e é para ter precedência!!<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysql.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllibx.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* É Harbour ou xHabour() ?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH.lib FiveHC.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveHx.lib FiveHC.lib +'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Testamos se ele quer usar a HARBOUR.DLL se for, isto reduz o numero de LIBs<br />&nbsp; &nbsp; &nbsp; &nbsp;* linkadas no projeto.<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseHBDLL, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'harbour.lib + '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rtl.lib + &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'vm.lib + &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'gtgui.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtgui.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtwin.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'lang.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'macro.lib + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rdd.lib + &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Testa se o arquivo bcc640.lib existe no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * PATH passado no segundo arqumento, neste caso m_PreSetLib<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'codepage.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'codepage.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfntx.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD2, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfcdx.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib +'</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'dbfdbt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfdbt.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'dbffpt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbffpt.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'hbsix.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbsix.lib + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Já adicionamos isto lá encima.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysql.lib +'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllibx.lib +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'common.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pp.lib + &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ct.lib + &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbzip.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'zlib.lib + &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pcrepos.lib + &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'png.lib + &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .LIB no projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.LIB"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" + &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizada, caimos fora!<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fFlagB, <span style="color: #ff0000;">'/B'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'debug.lib + '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span><br /><br />&nbsp;</div>[/code:80jb5ljb]
Aporte Scripts xDevStudio HB y xHB Con BCC y MSVC Parte 1
Script de compilacion para xHarbour y Microsoft Visual C++ Express 2010 FiveWinbM.xCompiler [code=fw:l8fbs5ju]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><!--<br />### Standard xDev Config - Layout v1<span style="color: #000000;">.5</span> #########<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># Created @ <span style="color: #000000;">16</span>/<span style="color: #000000;">9</span>/<span style="color: #000000;">2006</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># xDevStudio Project - <!-- e --><a href="mailto:xdev@kssoftware.com.br">xdev@kssoftware.com.br</a><!-- e --> &nbsp;#<br />################################################<br />--><br /><compiler <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveWin 32 Bits & xHarbour MS Visual C++"</span>><br />&nbsp; &nbsp;<option <span style="color: #0000ff;">icon</span>=<span style="color: #ff0000;">"Icons.icl,8"</span>><br />&nbsp; &nbsp;<option source=<span style="color: #ff0000;">"FiveWinbM.xCompiler.prg"</span>><br />&nbsp; &nbsp;<option depends=<span style="color: #ff0000;">".prg, .c, .obj, .rc, .res"</span>><br />&nbsp; &nbsp;<option compiler=<span style="color: #ff0000;">"harbour.exe"</span>><br />&nbsp; &nbsp;<option onbuild=<span style="color: #ff0000;">"MakeFW32_MSVC"</span>><br /><br />&nbsp; &nbsp;<parameters><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes copiadas do Harbour.xCompiler */</span><br />&nbsp; &nbsp; &nbsp; <option fFlagA=<span style="color: #ff0000;">"/A - auto declarar como MEMVAR"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/A,"</span> hint=<span style="color: #ff0000;">"Declara automaticamente os símbolos não definidos como MEMVAR"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagB=<span style="color: #ff0000;">"/B - Usar depurador?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/B,"</span> hint=<span style="color: #ff0000;">"Habilita o DEBUG em seu aplicativo, que poderá ser invocado, teclando-se ALT+D"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagL=<span style="color: #ff0000;">"/L - Excluir número de &nbsp;linhas"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/L,"</span> hint=<span style="color: #ff0000;">"Exclui a referência interna dos números de linhas dos arquivos deste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagM=<span style="color: #ff0000;">"/M - Compilação individual dos PRGs"</span> &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/M,"</span> hint=<span style="color: #ff0000;">"Determina (quando desativado) que o arquivo principal deve ser compilado junto com os arquivos PRGs referenciados com o comando DO. Se ativado todos os arquivos serão compilados separadamente."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagN=<span style="color: #ff0000;">"/N - Não definir função inicial autom."</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/N,"</span> hint=<span style="color: #ff0000;">"Faz com que não seja incluída a função inicial em cada arquivo compilado neste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagP=<span style="color: #ff0000;">"/P - Gerar arquivo pré-processado"</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/P,"</span> hint=<span style="color: #ff0000;">"Informa se um arquivo pre-processado (.PPO) deve ser gerado ou nao."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagZ=<span style="color: #ff0000;">"/Z - Suprimir optimização .AND./.OR."</span> &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/Z,"</span> hint=<span style="color: #ff0000;">"Desabilita a optimização de campos booleanos"</span>><br /><br /><br />&nbsp; &nbsp; &nbsp; <option fUseUPX=<span style="color: #ff0000;">"Compactar com UPX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Compacta o aplicativo atual com UPX (<!-- m --><a class="postlink" href="http://upx.sourceforge.net/">http://upx.sourceforge.net/</a><!-- m -->). O UPX é um compressor de arquivos executáveis gratuito, com alta-performance para diversos formatos executáveis. Consegue uma relação excelente de compressão e seus executáveis não sofrem nenhum dano."</span>><br />&nbsp; &nbsp; &nbsp; <option fUseMT=<span style="color: #ff0000;">"Habilitar MT"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"MT,"</span> hint=<span style="color: #ff0000;">"Habilita ou não a compilação multi thread"</span>><br />&nbsp; &nbsp; &nbsp; <option fForceCON=<span style="color: #ff0000;">"Forçar app. console?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Força a exibição da janela de console mesmo para um aplicativo gráfico"</span><br /><span style="color: #B900B9;">/* &nbsp; &nbsp;<option fUseHBDLL="Usa HB.DLL?" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Não" select="Sim,Não" hint="Habilita o uso da biblioteca dinâmica (HARBOUR.DLL) em seu aplicativo. Lembre-se que talvez seja necessário incluir o arquivo MAINWIN.C da pasta SOURCE do [x]HB para o correto funcionamento de sua aplicação.">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <option fMiscOption1=<span style="color: #ff0000;">"Flags do Harbour"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Harbour"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption2=<span style="color: #ff0000;">"Flags do Compilador C"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador BCC ou GCC"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption3=<span style="color: #ff0000;">"Flags do Linker"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Linker ou MinGW"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option RDD1=<span style="color: #ff0000;">"Rdd SQL LIB?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD2=<span style="color: #ff0000;">"Rdd DBFCDX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD3=<span style="color: #ff0000;">"Rdd ADS?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD ADS"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD4=<span style="color: #ff0000;">"ODBC Libs?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte às funções de ODBC"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option CustomLIBs=<span style="color: #ff0000;">"LIBs customizadas?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> hint=<span style="color: #ff0000;">"Determina que nenhum arquivo *.LIB será incluido por padrao no script do projeto, mas apenas aquelas que você adicionar"</span>><br />&nbsp; &nbsp; &nbsp; <option CustomDefines=<span style="color: #ff0000;">"Defines"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Define as diretrivas #DEFINE de pré-processamento para todos os módulos deste PROJETO"</span>><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* <option Linker="Linker" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Borland" select="Borland, MinGW" &nbsp;hint="Especifica o lineditor para gerar o seu projeto">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes específicas da MiniGUI */</span><br />&nbsp; &nbsp; &nbsp; <option fUseSQLLIBFirst=<span style="color: #ff0000;">"SQL LIB Antes das LIBs do FW?"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Determina se os arquivos .LIB da SQL LIB RDD devem preceder as LIBs do FW"</span>><br />&nbsp; &nbsp;</parameters><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Os arquivos que poderemos processar ...<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.PRG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".prg"</span> output=<span style="color: #ff0000;">".c"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFilePRG"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".c"</span> output=<span style="color: #ff0000;">".obj"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFileC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.RC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".rc"</span> output=<span style="color: #ff0000;">".res"</span> group=<span style="color: #ff0000;">"Recursos"</span> onbuild=<span style="color: #ff0000;">"OnFileRC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp;</extension><br /></compiler><br /><br />&nbsp;</div>[/code:l8fbs5ju] Archivo script de compilacion FiveWinbM.xCompiler.prg [code=fw:l8fbs5ju]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* São Paulo , 16/06/2006 @ 06:36<br />&nbsp;* Revisado em 23/8/2006 17:00:02<br />&nbsp;* -----------------------------<br />&nbsp;* MiniGUI.xCompiler.prg<br />&nbsp;*<br />&nbsp;* Arquivo contendo os comandos de Script para processamento de um projeto<br />&nbsp;* Harbour modo CONSOOLE com Borland BCC ou MinGW.<br />&nbsp;*/</span><br /><span style="color: #00D7D7;">#define</span> CRLF Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Prepare<br />&nbsp; &nbsp;type := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TargetType'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'harbour.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hb.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo principal do compilador não existe!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'cl.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido cl.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'link.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido LINK.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #00C800;">function</span> UnPrepare<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .PRG<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFilePRG<br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;cmd := <span style="color: #ff0000;">'harbour.exe'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /q /o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' '</span> + fFlagA + <span style="color: #ff0000;">' '</span> + fFlagL + <span style="color: #ff0000;">' '</span> + fFlagM + <span style="color: #ff0000;">' '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">' '</span> + fFlagN + <span style="color: #ff0000;">' '</span> + fFlagZ &nbsp;+ <span style="color: #ff0000;">' '</span> + fFlagP<br />&nbsp;*<br />&nbsp;* Verificarmos se ele nao quer desativar o DEBUG para este módulo em específico!<br />&nbsp;* para isto usamos a funcao SameText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> que compara os <span style="color: #000000;">2</span> argumentos ignorando<br />&nbsp;* letras maiúsculas / <span style="color: #0000ff;">min</span>úsculas.<br />&nbsp;*<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> PRG_DisableDebug, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' '</span> + fFlagB<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Colocamos os outros parametros <span style="color: #000000;">&#40;</span>se houver<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">" "</span> + fMiscOption1<br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .C<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileC<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-l"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/GA -c "'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, &nbsp;m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -c -i /D_CRT_SECURE_NO_WARNINGS -D__HARBOUR__ "'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -Gs15000 -c -W3 -GA /D_CRT_SECURE_NO_WARNINGS "'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -TP -c -W3 -GA -D_CRT_SECURE_NO_WARNINGS -D__HARBOUR__ -D__FLAT__ &nbsp;"'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;* Salvamos e executamos o comando específico para compilar<br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'msvc.tmp'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'cl @msvc.tmp'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .RC<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileRC<br />&nbsp; &nbsp;cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'rc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'rc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Erro ao localizar o aplicativo necessário para compilar o módulo "'</span>+m_sFileName+<span style="color: #ff0000;">'"!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp;* &nbsp;cmd += <span style="color: #ff0000;">' -r -fo"'</span> + m_sOutPut + <span style="color: #ff0000;">'" /I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -r -d__FLAT__ &nbsp;-i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" -fo"'</span> + m_sOutPut +<span style="color: #ff0000;">'" "'</span>+ m_sFileName+<span style="color: #ff0000;">'" '</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; <span style="color: #B900B9;">// cmd += ' "' + m_sFileName + '"'</span><br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;run <span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> MakeFW32_MSVC<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'LIB'</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'DLL'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;MsgError( 'Arquivos *.' + type + ' não são suportados por este script (ainda)!'+;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Neste caso use o "Harbour 32 Bits & CL / MinGW" para criar estes arquivos.' ;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> BuildLib<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-/i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br />* &nbsp;Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />* &nbsp;ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc +'</span> <span style="color: #000000;">&#41;</span><br />* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br /><span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+m_sOutPut + '" &nbsp; &nbsp;' )</span><br /><span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+ChangeFileExt( m_sOutPut, '.map')+'" &nbsp; ' )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'kernel32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'user32.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gdi32.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'winspool.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'comctl32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'comdlg32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'advapi32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'shell32.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ole32.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oleaut32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'uuid.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD4, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbc32.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbccp32.lib '</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;end<br /><br /><span style="color: #B900B9;">// AADD( aLines, 'iphlpapi.lib &nbsp;' )</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'mpr.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'winmm.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libcpmt.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oldnames.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'version.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'wsock32.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'msimg32.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oledlg.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'psapi.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'nddeapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'nddeapi.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'iphlpapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'iphlpapi.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rasapi32.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rasapi32.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp;* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Põe os RCs do projeto<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.RES"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'mvc.tmp'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'LINK @mvc.tmp /subsystem:windows /nologo /FORCE:MULTIPLE /ignore:4006 /NODEFAULTLIB:libc /OUT:"'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; <span style="color: #B900B9;">// if bOk .and. SameText( fUseUPX, 'Sim' )</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseUPX, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// cmd := FindFile( 'upx.exe', m_PreSetPath )</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*if Empty(cmd)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgError( 'Erro ao localizar o arquivo UPX.EXE necessário para compactar seu aplicativo!' )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return .f.<br />&nbsp; &nbsp; &nbsp; end */</span><br /><br />&nbsp; &nbsp; &nbsp; aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev TITLE UPX'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev FILE '</span>+ m_sOutPut +<span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\U</span>PX.EXE --compress-icons=0 &nbsp;--compress-exports=0 -9 "'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cmd := ListAsText<span style="color: #000000;">&#40;</span> aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; runBat<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> BuildLib<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-/i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;* Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />&nbsp;* ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />* &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cLinea :=<span style="color: #ff0000;">''</span><br /><br /><span style="color: #B900B9;">/* &nbsp; FOR i := 1 TO t<br />&nbsp; &nbsp; &nbsp; &nbsp;IF i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD( aLines, '"'+aFiles[i]+'" ' )<br />&nbsp; &nbsp; &nbsp; &nbsp;ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD( aLines, '"'+aFiles[i]+'" &nbsp; ' )<br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />*/</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; cLinea := cLinea+ <span style="color: #ff0000;">' '</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp;<span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+m_sOutPut + '" &nbsp; &nbsp;' )</span><br />&nbsp;<span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+ChangeFileExt( m_sOutPut, '.map')+'" &nbsp; ' )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br /><br />&nbsp;<span style="color: #B900B9;">// &nbsp;MemoWrite( 'mvc.tmp', aLines )</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'LIB /OUT:'</span>+m_sOutPut +<span style="color: #ff0000;">' '</span>+cLinea <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><br /><span style="color: #00C800;">function</span> DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'sqllib.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; sql_lib := <span style="color: #ff0000;">'sqllib.lib + '</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; sql_lib := ApplyMacros<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'sqllib_($hV).lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizadas não preenchemos isto...<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* A SQL LIB RDD deve preceder sobre as do FW?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Sim ele quer usar e é para ter precedência!!<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysqlm.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllibx.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* É Harbour ou xHabour() ?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH32.lib FiveHC32.lib '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveHMx.lib FiveHC32.lib '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Testamos se ele quer usar a HARBOUR.DLL se for, isto reduz o numero de LIBs<br />&nbsp; &nbsp; &nbsp; &nbsp;* linkadas no projeto.<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseHBDLL, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'harbour.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rtl.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'vm.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'gtgui.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtgui.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtwin.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'lang.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'macro.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rdd.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Testa se o arquivo bcc640.lib existe no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * PATH passado no segundo arqumento, neste caso m_PreSetLib<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'codepage.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'codepage.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfntx.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD2, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfcdx.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib '</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'dbfdbt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbfdbt.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'dbffpt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dbffpt.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'hbsix.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbsix.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Já adicionamos isto lá encima.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysql.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'common.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pp.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ct.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbzip.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'zlib.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pcrepos.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'png.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .LIB no projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.LIB"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizada, caimos fora!<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fFlagB, <span style="color: #ff0000;">'/B'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'debug.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span><br /><br />&nbsp;</div>[/code:l8fbs5ju] Srcripts de compilacion para Microsoft Vusual C++ Expres 2010 y Harbour FiveWinMvc.xCompiler [code=fw:l8fbs5ju]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><!--<br />### Standard xDev Config - Layout v1<span style="color: #000000;">.5</span> #########<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># Created @ <span style="color: #000000;">16</span>/<span style="color: #000000;">9</span>/<span style="color: #000000;">2006</span> <span style="color: #000000;">09</span>:<span style="color: #000000;">38</span>:<span style="color: #000000;">10</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #<br /># &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;#<br /># xDevStudio Project - <!-- e --><a href="mailto:xdev@kssoftware.com.br">xdev@kssoftware.com.br</a><!-- e --> &nbsp;#<br />################################################<br />--><br /><compiler <span style="color: #0000ff;">name</span>=<span style="color: #ff0000;">"FiveWin 32 Bits & Harbour + Microsoft Visual C++"</span>><br />&nbsp; &nbsp;<option <span style="color: #0000ff;">icon</span>=<span style="color: #ff0000;">"Icons.icl,8"</span>><br />&nbsp; &nbsp;<option source=<span style="color: #ff0000;">"FiveWinMvc.xCompiler.prg"</span>><br />&nbsp; &nbsp;<option depends=<span style="color: #ff0000;">".prg, .c, .obj, .rc, .res"</span>><br />&nbsp; &nbsp;<option compiler=<span style="color: #ff0000;">"harbour.exe"</span>><br />&nbsp; &nbsp;<option onbuild=<span style="color: #ff0000;">"MakeFW32_MVC"</span>><br /><br />&nbsp; &nbsp;<parameters><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes copiadas do Harbour.xCompiler */</span><br />&nbsp; &nbsp; &nbsp; <option fFlagA=<span style="color: #ff0000;">"/A - auto declarar como MEMVAR"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/A,"</span> hint=<span style="color: #ff0000;">"Declara automaticamente los símbolos no definidos como MEMVAR"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagB=<span style="color: #ff0000;">"/B - Usar depurador?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/B,"</span> hint=<span style="color: #ff0000;">"Habilita el DEBUG en su aplicativo, que podrá ser invocado, tecleando ALT+D"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagL=<span style="color: #ff0000;">"/L - Excluir número de &nbsp;lineas"</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/L,"</span> hint=<span style="color: #ff0000;">"Exclui a referência interna dos números de linhas dos arquivos deste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagM=<span style="color: #ff0000;">"/M - Compilacion individual de PRGs"</span> &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/M,"</span> hint=<span style="color: #ff0000;">"Determina (quando desativado) que o arquivo principal deve ser compilado junto com os arquivos PRGs referenciados com o comando DO. Se ativado todos os arquivos serão compilados separadamente."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagN=<span style="color: #ff0000;">"/N - No definir funcion inicial autom."</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/N,"</span> hint=<span style="color: #ff0000;">"Faz com que não seja incluída a função inicial em cada arquivo compilado neste projeto"</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagP=<span style="color: #ff0000;">"/P - Generar archivo pré-procesado"</span> &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/P,"</span> hint=<span style="color: #ff0000;">"Informa se um arquivo pre-processado (.PPO) deve ser gerado ou nao."</span>><br />&nbsp; &nbsp; &nbsp; <option fFlagZ=<span style="color: #ff0000;">"/Z - Suprimir optimizacion .AND./.OR."</span> &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"/Z,"</span> hint=<span style="color: #ff0000;">"Desabilita a optimização de campos booleanos"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option fUseUPX=<span style="color: #ff0000;">"Comprimir con UPX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Compacta o aplicativo atual com UPX (<!-- m --><a class="postlink" href="http://upx.sourceforge.net/">http://upx.sourceforge.net/</a><!-- m -->). O UPX é um compressor de arquivos executáveis gratuito, com alta-performance para diversos formatos executáveis. Consegue uma relação excelente de compressão e seus executáveis não sofrem nenhum dano."</span>><br />&nbsp; &nbsp; &nbsp; <option fUseMT=<span style="color: #ff0000;">"Habilitar MT"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> values=<span style="color: #ff0000;">"MT,"</span> hint=<span style="color: #ff0000;">"Habilita ou não a compilação multi thread"</span>><br />&nbsp; &nbsp; &nbsp; <option fForceCON=<span style="color: #ff0000;">"Forzar app. consola?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Força a exibição da janela de console mesmo para um aplicativo gráfico"</span><br /><span style="color: #B900B9;">/* &nbsp; &nbsp;<option fUseHBDLL="Usa HB.DLL?" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Não" select="Sim,Não" hint="Habilita o uso da biblioteca dinâmica (HARBOUR.DLL) em seu aplicativo. Lembre-se que talvez seja necessário incluir o arquivo MAINWIN.C da pasta SOURCE do [x]HB para o correto funcionamento de sua aplicação.">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <option fMiscOption1=<span style="color: #ff0000;">"Flags de Harbour"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Harbour"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption2=<span style="color: #ff0000;">"Flags de Compilador C"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador BCC ou GCC"</span>><br />&nbsp; &nbsp; &nbsp; <option fMiscOption3=<span style="color: #ff0000;">"Flags de Linker"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hint=<span style="color: #ff0000;">"Permite especificar parâmetros adicionais para o compilador Linker ou MinGW"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option RDD1=<span style="color: #ff0000;">"Rdd SQL LIB?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD2=<span style="color: #ff0000;">"Rdd DBFCDX?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD DBFCDX"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD3=<span style="color: #ff0000;">"Rdd ADS?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte ao RDD ADS"</span>><br />&nbsp; &nbsp; &nbsp; <option RDD4=<span style="color: #ff0000;">"ODBC Libs?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Linka junto ao aplicativo as LIBs para suporte às funções de ODBC"</span>><br /><br />&nbsp; &nbsp; &nbsp; <option CustomLIBs=<span style="color: #ff0000;">"LIBs customizadas?"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> hint=<span style="color: #ff0000;">"Determina que nenhum arquivo *.LIB será incluido por padrao no script do projeto, mas apenas aquelas que você adicionar"</span>><br />&nbsp; &nbsp; &nbsp; <option CustomDefines=<span style="color: #ff0000;">"Defines"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hint=<span style="color: #ff0000;">"Define as diretrivas #DEFINE de pré-processamento para todos os módulos deste PROJETO"</span>><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* <option Linker="Linker" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default="Borland" select="Borland, MinGW" &nbsp;hint="Especifica o lineditor para gerar o seu projeto">*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/* Opçoes específicas da MiniGUI */</span><br />&nbsp; &nbsp; &nbsp; <option fUseSQLLIBFirst=<span style="color: #ff0000;">"SQL LIB Antes das LIBs do FW?"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Sim"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Determina se os arquivos .LIB da SQL LIB RDD devem preceder as LIBs do FW"</span>><br />&nbsp; &nbsp;</parameters><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Os arquivos que poderemos processar ...<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.PRG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".prg"</span> output=<span style="color: #ff0000;">".c"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFilePRG"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.C &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".c"</span> output=<span style="color: #ff0000;">".obj"</span> group=<span style="color: #ff0000;">"Módulos"</span> onbuild=<span style="color: #ff0000;">"OnFileC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_DisableDebug=<span style="color: #ff0000;">"Disable Debug"</span> <span style="color: #00C800;">default</span>=<span style="color: #ff0000;">"Não"</span> <span style="color: #0000ff;">select</span>=<span style="color: #ff0000;">"Sim,Não"</span> hint=<span style="color: #ff0000;">"Desabilita a opção de DEBUG para este arquivo em específico"</span>><br />&nbsp; &nbsp;</extension><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.RC &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<extension file=<span style="color: #ff0000;">".rc"</span> output=<span style="color: #ff0000;">".res"</span> group=<span style="color: #ff0000;">"Recursos"</span> onbuild=<span style="color: #ff0000;">"OnFileRC"</span>><br />&nbsp; &nbsp; &nbsp; <option PRG_Defines=<span style="color: #ff0000;">"Defines"</span> hint=<span style="color: #ff0000;">"Define uma ou mais diretrivas #DEFINE de pre-processamento específicas para este ARQUIVO"</span>><br />&nbsp; &nbsp;</extension><br /></compiler><br /><br />&nbsp;</div>[/code:l8fbs5ju] Script de compilacion FiveWinMvc.xCompiler.prg [code=fw:l8fbs5ju]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* São Paulo , 16/06/2006 @ 06:36<br />&nbsp;* Revisado em 23/8/2006 17:00:02<br />&nbsp;* -----------------------------<br />&nbsp;* MiniGUI.xCompiler.prg<br />&nbsp;*<br />&nbsp;* Arquivo contendo os comandos de Script para processamento de um projeto<br />&nbsp;* Harbour modo CONSOOLE com Borland BCC ou MinGW.<br />&nbsp;*/</span><br /><span style="color: #00D7D7;">#define</span> CRLF Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">13</span><span style="color: #000000;">&#41;</span>+Chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> Prepare<br />&nbsp; &nbsp;type := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'TargetType'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'harbour.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hb.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo principal do compilador não existe!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'cl.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido cl.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'link.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'O arquivo requerido LINK.EXE não foi localizado no sistema!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #00C800;">function</span> UnPrepare<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> .t.<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .PRG<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFilePRG<br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;cmd := <span style="color: #ff0000;">'harbour.exe'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' "'</span> + m_sFileName + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /q /o"'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">' '</span> + fFlagA + <span style="color: #ff0000;">' '</span> + fFlagL + <span style="color: #ff0000;">' '</span> + fFlagM + <span style="color: #ff0000;">' '</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">' '</span> + fFlagN + <span style="color: #ff0000;">' '</span> + fFlagZ &nbsp;+ <span style="color: #ff0000;">' '</span> + fFlagP<br />&nbsp;*<br />&nbsp;* Verificarmos se ele nao quer desativar o DEBUG para este módulo em específico!<br />&nbsp;* para isto usamos a funcao SameText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> que compara os <span style="color: #000000;">2</span> argumentos ignorando<br />&nbsp;* letras maiúsculas / <span style="color: #0000ff;">min</span>úsculas.<br />&nbsp;*<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> PRG_DisableDebug, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' '</span> + fFlagB<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmd += <span style="color: #ff0000;">' /D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Colocamos os outros parametros <span style="color: #000000;">&#40;</span>se houver<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd += <span style="color: #ff0000;">" "</span> + fMiscOption1<br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .C<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileC<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-l"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/GA -c "'</span> + m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, &nbsp;m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -c -i /D_CRT_SECURE_NO_WARNINGS -D__HARBOUR__ "'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -Gs15000 -c -W3 -GA /D_CRT_SECURE_NO_WARNINGS "'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' -TP -c -W3 -GA -D_CRT_SECURE_NO_WARNINGS -D__HARBOUR__ -D__FLAT__ &nbsp;"'</span> + m_sFileName + <span style="color: #ff0000;">'" '</span>+<span style="color: #ff0000;">' /Fo'</span>+ m_sOutPut <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;* Salvamos e executamos o comando específico para compilar<br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'msvc.tmp'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'cl @msvc.tmp'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #B900B9;">/*<br />&nbsp;* Esta função é executada, sempre que a xDev precisar compilar um arquivo .RC<br />&nbsp;*/</span><br /><span style="color: #00C800;">function</span> OnFileRC<br />&nbsp; &nbsp;cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'rc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cmd := FindFile<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'rc.exe'</span>, m_PreSetPath <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; MsgError<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Erro ao localizar o aplicativo necessário para compilar o módulo "'</span>+m_sFileName+<span style="color: #ff0000;">'"!'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> .f.<br />&nbsp; &nbsp;end<br /><br />&nbsp;* Preparamos a linha de comando<br />&nbsp;* &nbsp;cmd += <span style="color: #ff0000;">' -r -fo"'</span> + m_sOutPut + <span style="color: #ff0000;">'" /I"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'"'</span><br />&nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -r -d__FLAT__ &nbsp;-i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" -fo"'</span> + m_sOutPut +<span style="color: #ff0000;">'" "'</span>+ m_sFileName+<span style="color: #ff0000;">'" '</span><br /><br />&nbsp;* Verificamos as diretrivas #DEFINEs e adicionamos ela na linha de comando!<br />&nbsp; &nbsp;aDefs := Alltrim<span style="color: #000000;">&#40;</span>CustomDefines<span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">','</span> + ; &nbsp; <span style="color: #B900B9;">// Diretrivas gerais do projeto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alltrim<span style="color: #000000;">&#40;</span>PRG_Defines<span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Diretrivas específicas deste arquivo</span><br /><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">';'</span>, <span style="color: #ff0000;">','</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := StrTran<span style="color: #000000;">&#40;</span>aDefs, <span style="color: #ff0000;">' '</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aDefs := ListAsArray<span style="color: #000000;">&#40;</span> aDefs, <span style="color: #ff0000;">','</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cmd &nbsp; := alltrim<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aDefs <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span>aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cmd += <span style="color: #ff0000;">' -D'</span> + aDefs<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">next</span><br /><br />&nbsp;* Ajustamos os outros parametros<br />&nbsp; <span style="color: #B900B9;">// cmd += ' "' + m_sFileName + '"'</span><br /><br />&nbsp;* Executamos o comando específico para compilar<br />&nbsp; &nbsp;run <span style="color: #000000;">&#40;</span>cmd<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><span style="color: #00C800;">function</span> MakeFW32_MVC<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'LIB'</span> <span style="color: #000000;">&#41;</span> .or. ;<br />&nbsp; &nbsp; &nbsp; SameText<span style="color: #000000;">&#40;</span> type, <span style="color: #ff0000;">'DLL'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp;MsgError( 'Arquivos *.' + type + ' não são suportados por este script (ainda)!'+;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;'Neste caso use o "Harbour 32 Bits & CL / MinGW" para criar estes arquivos.' ;</span><br />&nbsp; &nbsp; <span style="color: #B900B9;">// &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> BuildLib<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">function</span> BuildExe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-/i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br />* &nbsp;Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />* &nbsp;ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc +'</span> <span style="color: #000000;">&#41;</span><br />* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br /><span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+m_sOutPut + '" &nbsp; &nbsp;' )</span><br /><span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+ChangeFileExt( m_sOutPut, '.map')+'" &nbsp; ' )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'kernel32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'user32.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gdi32.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'winspool.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'comctl32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'comdlg32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'advapi32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'shell32.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ole32.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oleaut32.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'uuid.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD4, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbc32.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'odbccp32.lib '</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;end<br /><br /><span style="color: #B900B9;">// AADD( aLines, 'iphlpapi.lib &nbsp;' )</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'mpr.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'winmm.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libcpmt.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oldnames.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'version.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'wsock32.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'msimg32.lib &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'oledlg.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'psapi.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'nddeapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'nddeapi.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'iphlpapi.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'iphlpapi.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rasapi32.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rasapi32.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp;* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">' '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Põe os RCs do projeto<br />&nbsp; &nbsp; */</span><br /><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.RES"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;MemoWrite<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'mvc.tmp'</span>, aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'LINK @mvc.tmp /subsystem:windows /nologo /FORCE:MULTIPLE /ignore:4006 /NODEFAULTLIB:libc /OUT:"'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; <span style="color: #B900B9;">// if bOk .and. SameText( fUseUPX, 'Sim' )</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseUPX, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// cmd := FindFile( 'upx.exe', m_PreSetPath )</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*if Empty(cmd)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MsgError( 'Erro ao localizar o arquivo UPX.EXE necessário para compactar seu aplicativo!' )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return .f.<br />&nbsp; &nbsp; &nbsp; end */</span><br /><br />&nbsp; &nbsp; &nbsp; aLines := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev TITLE UPX'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ECHO xDev FILE '</span>+ m_sOutPut +<span style="color: #ff0000;">''</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c:<span style="color: #000000;">\w</span>indows<span style="color: #000000;">\U</span>PX.EXE --compress-icons=0 &nbsp;--compress-exports=0 -9 "'</span>+m_sOutPut + <span style="color: #ff0000;">'"'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cmd := ListAsText<span style="color: #000000;">&#40;</span> aLines <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; runBat<span style="color: #000000;">&#40;</span> cmd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><br /><span style="color: #00C800;">function</span> BuildLib<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;* Preparamos a linha de comando<br />&nbsp; &nbsp;aLines &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-/i"'</span> + m_PreSetInclude +<span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br />&nbsp;* &nbsp;AAdd<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-L"'</span> + m_PreSetLib + <span style="color: #ff0000;">';'</span> +m_PreSetObj + <span style="color: #ff0000;">'" +'</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp;* Usamos sempre a função SAMETEXT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> pq ela compara removendo os espaços e<br />&nbsp;* ignorando maiúsculas e <span style="color: #0000ff;">min</span>úsculas<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fForceCON, <span style="color: #ff0000;">'Sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'-aa +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />* &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'/nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc +'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'c0w32.obj + &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .OBJ do projeto<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.OBJ"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;t := Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;cLinea :=<span style="color: #ff0000;">''</span><br /><br /><span style="color: #B900B9;">/* &nbsp; FOR i := 1 TO t<br />&nbsp; &nbsp; &nbsp; &nbsp;IF i == t<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD( aLines, '"'+aFiles[i]+'" ' )<br />&nbsp; &nbsp; &nbsp; &nbsp;ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD( aLines, '"'+aFiles[i]+'" &nbsp; ' )<br />&nbsp; &nbsp; &nbsp; &nbsp;End<br />&nbsp; &nbsp;End<br /><br />*/</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> t<br />&nbsp; &nbsp; &nbsp; cLinea := cLinea+ <span style="color: #ff0000;">' '</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp;<span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+m_sOutPut + '" &nbsp; &nbsp;' )</span><br />&nbsp;<span style="color: #B900B9;">// &nbsp;AADD( aLines, '"'+ChangeFileExt( m_sOutPut, '.map')+'" &nbsp; ' )</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Chamamos a função que pega o nome das libs corretas<br />&nbsp; &nbsp; */</span><br /><br />&nbsp;<span style="color: #B900B9;">// &nbsp;MemoWrite( 'mvc.tmp', aLines )</span><br />&nbsp; &nbsp;runBat<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'LIB /OUT:'</span>+m_sOutPut +<span style="color: #ff0000;">' '</span>+cLinea <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;bOk := <span style="color: #000000;">&#40;</span>ErrorLevel<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Testamos se ele quer compactar o aplicativo gerado usando UPX<br />&nbsp; &nbsp; * 22/01/2008 - 10:35:49<br />&nbsp; &nbsp; */</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> bOk<br /><br /><br /><span style="color: #00C800;">function</span> DefaultLibs<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'sqllib.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; sql_lib := <span style="color: #ff0000;">'sqllib.lib + '</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; sql_lib := ApplyMacros<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'sqllib_($hV).lib + '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizadas não preenchemos isto...<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* A SQL LIB RDD deve preceder sobre as do FW?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Sim ele quer usar e é para ter precedência!!<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysqlm.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'sqllib.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* É Harbour ou xHabour() ?<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> IsHarbour<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH32.lib FiveHC32.lib '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'FiveH32.lib FiveHC32.lib '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Testamos se ele quer usar a HARBOUR.DLL se for, isto reduz o numero de LIBs<br />&nbsp; &nbsp; &nbsp; &nbsp;* linkadas no projeto.<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fUseHBDLL, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'harbour.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'xhb.lib &nbsp; &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbrtl.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbvm.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'gtgui.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtgui.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'gtwin.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hblang.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbmacro.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbrdd.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * Testa se o arquivo bcc640.lib existe no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * PATH passado no segundo arqumento, neste caso m_PreSetLib<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'hbcpage.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcpage.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddntx.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD2, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddcdx.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddfpt.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> RDD3, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddads.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'ace32.lib '</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'bcc640.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'bcc640.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'rddfpt.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'rddfpt.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> FileExists<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">'hbsix.lib'</span>, m_PreSetLib <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbsix.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end<br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !SameText<span style="color: #000000;">&#40;</span> RDD1, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Ele não quer usar a SQL LIB<br /><br />&nbsp; &nbsp; &nbsp; elseif SameText<span style="color: #000000;">&#40;</span> fUseSQLLIBFirst, <span style="color: #ff0000;">'sim'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;* Já adicionamos isto lá encima.<br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'libmysqlm.lib '</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'dolphinhm.lib '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br /><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcommon.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbpp.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbct.lib &nbsp; &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbwin.lib &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbcplr.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbpcre.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbmzip.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'minizip.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbzlib.lib &nbsp; &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbziparc.lib &nbsp; &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'png.lib &nbsp; &nbsp; &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'pcrepos.lib &nbsp; &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;end<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; * Incluimos os arquivos .LIB no projeto<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;aFiles := Project<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"*.LIB"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> aFiles <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'"'</span>+aFiles<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">'" &nbsp; '</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;End<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> CustomLIBs, <span style="color: #ff0000;">'Sim'</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp;* Se ele tem a lista de LIBs personalizada, caimos fora!<br />&nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> SameText<span style="color: #000000;">&#40;</span> fFlagB, <span style="color: #ff0000;">'/B'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aLines, <span style="color: #ff0000;">'hbdebug.lib &nbsp;'</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; end<br />&nbsp; &nbsp;end<br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> &nbsp;.t.<br /><br />&nbsp;</div>[/code:l8fbs5ju]
Aporte Scripts xDevStudio HB y xHB Con BCC y MSVC Parte 1
Archivo de Configuracion de entornos de programacion Presets.xIni [code=fw:1ugdcnz6]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #000000;">&#91;</span>FiveWin32.xCompiler<span style="color: #000000;">&#93;</span><br />Version=FWH HB <span style="color: #000000;">3.2</span> BCC <span style="color: #000000;">5.8</span>|PATH=c:\bcc58\BIN;c:\hb32\bin\bcc|INCLUDE=c:\bcc58\include;c:\HB32\include;C:\FWH\INCLUDE|LIB=c:\bcc58\lib;c:\bcc58\lib\psdk;c:\hb32\lib\bcc;c:\fwh\lib|OBJ=|DEFINES=|ID=<span style="color: #000000;">414768</span>|COMPILER=<span style="color: #000000;">&#40;</span>Arquivos de versão não encontrados<span style="color: #000000;">&#41;</span> & BCC <span style="color: #000000;">5.82</span> & FW <span style="color: #000000;">12.02</span><br /><br /><span style="color: #000000;">&#91;</span>FiveWin32b.xCompiler<span style="color: #000000;">&#93;</span><br />Version=FWH XHB <span style="color: #000000;">1.2</span> BCC <span style="color: #000000;">5.8</span>|PATH=c:\bcc58\BIN;c:\XHB12\bin\bcc|INCLUDE=c:\bcc58\include;c:\XHB12\include;c:\fwh\include|LIB=c:\bcc58\lib;c:\bcc58\lib\psdk;c:\XHB12\lib\bcc;c:\fwh\lib|OBJ=|DEFINES=|ID=<span style="color: #000000;">301669</span>|COMPILER=<span style="color: #000000;">&#40;</span>Arquivos de versão não encontrados<span style="color: #000000;">&#41;</span> & BCC <span style="color: #000000;">5.82</span> & FW <span style="color: #000000;">12.02</span><br /><br /><span style="color: #000000;">&#91;</span>FiveWin32bM.xCompiler<span style="color: #000000;">&#93;</span><br />Version=FWH XHB <span style="color: #000000;">1.2</span> MVC++ Express <span style="color: #000000;">2010</span>|PATH=c:\VC2010\bin;c:\XHB12\bin\mvc|INCLUDE=c:\XHB12\include;c:\fwh\include;c:\VC2010\include;c:\VC2010\SDK\Include|LIB=c:\VC2010\lib;c:\XHB12\lib\mvc;c:\fwh\lib;c:\VC2010\sdk\lib|OBJ=|DEFINES=|ID=<span style="color: #000000;">750797</span>|COMPILER=<span style="color: #000000;">&#40;</span>Arquivos de versão não encontrados<span style="color: #000000;">&#41;</span> & FW <span style="color: #000000;">12.02</span><br /><br /><span style="color: #000000;">&#91;</span>FiveWin32mvc.xCompiler<span style="color: #000000;">&#93;</span><br />Version=FWH HB <span style="color: #000000;">3.2</span> MSVC++ Express <span style="color: #000000;">2010</span>|PATH=c:\VC2010\bin;c:\hb32\bin\mvc|INCLUDE=c:\fwh\include;c:\hb32\include;c:\VC2010\include;c:\VC2010\SDK\Include|LIB=c:\VC2010\lib;c:\hb32\lib\mvc;c:\fwh\lib;c:\VC2010\sdk\lib|OBJ=|DEFINES=|ID=<span style="color: #000000;">314668</span>|COMPILER=<span style="color: #000000;">&#40;</span>Arquivos de versão não encontrados<span style="color: #000000;">&#41;</span> & FW <span style="color: #000000;">12.02</span><br /><br /><br />&nbsp;</div>[/code:1ugdcnz6]
Aporte Scripts xDevStudio HB y xHB Con BCC y MSVC Parte 1
Nicanor, muchísimas gracias por estos aportes. Estoy utilizando la versión 0.7, funcionan en esta versión o solo es para la versión Black o es indistinto ?? Saludos
Aporte Scripts xDevStudio HB y xHB Con BCC y MSVC Parte 1
Hola, En teoria funciona para cualquier version de xDevStudio .... Slds
Aporte a la Comunidad de FW
Hola a todos. Esta nota es para anunciar que el site <!-- m --><a class="postlink" href="http://fivewin.guayoyosoft.net">http://fivewin.guayoyosoft.net</a><!-- m --> está a la orden de la comunidad de desarrolladores FW+Clipper/Harbour/xHarbour Tiene una recopilación de material relacionado con FiveWin, el cual fué proporcionado en un 99.999999% por nuestro amigo Vikthor (1GB de Gracias), y el cual espero ir enriqueciendo con la ayuda de Uds. Disculpen que ahora no se vea muy bonito... ya con mas tiempo le mejoraré la presentación... por lo pronto me parece que el contenido es más importante... Por lo pronto no tengo más que añadir... solo espero de corazón que el contenido pueda ser de gran utilidad, en especial a quienes se están iniciando con el uso de esta estupenda herramienta de programación como lo es FiveWin. Giancarlo J. Sabattino S. Valencia, Venezuela
Aporte a la Comunidad de FW
Giancarlo: Muchas gracias por el aporte, siempre es bueno tener a donde acudir en aquellos momento en que el mundo se te cierra. Saludos
Aporte para TCalex: Navegación con teclas en Vista Dia
[code=fw:1omqvfhq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">METHOD</span> KeyDown<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TCalex<br /><br />....<br /> <span style="color: #00C800;">case</span> ::<span style="color: #000000;">oView</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TDAYVIEW"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />         <span style="color: #00C800;">case</span> nKey == VK_UP<br />              <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> > <span style="color: #000000;">1</span><br />                 ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />                 ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>-= <span style="color: #000000;">1.0001</span><br />                 AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>, <span style="color: #000000;">&#123;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>, ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nColDown</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />                 ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              <span style="color: #00C800;">ENDIF</span><br />              *<br />         <span style="color: #00C800;">case</span> nKey == VK_DOWN<br />              <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> < ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowCount</span><br />                 ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />                 ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>+= <span style="color: #000000;">1.0001</span><br />                 AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>, <span style="color: #000000;">&#123;</span>::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> , ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nColDown</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />                 ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />              <span style="color: #00C800;">ENDIF</span><br />              *<br />         <span style="color: #00C800;">case</span> nKey == VK_PRIOR <br />                *<br />                ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GoNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                *<br />         <span style="color: #00C800;">case</span> nKey == VK_NEXT <br />                *<br />                ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GoPrev</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />                *<br />endase<br />...<br /> </div>[/code:1omqvfhq]
Aporte para TCalex: Navegación con teclas en Vista Dia
Muchas gracias por compartirlo... Funciona muy bien!
Aporte para TCalex: Navegación con teclas en Vista Dia
Gracias ! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Estoy intentando editar con intro y no necesitar hacerlo con mouse. Necesitariamos asignar la data oCalInfoSelected despues de navegar up/ down. Le estoy dando más vueltas que a un mono pero no veo cómo hacerlo. Ahora lo tengo que dejar. Si alguien quiere echar una mano, sería muy de agradecer. Saludos ========================= EDITADO. Creo que ya lo tengo. Cuando lo pruebe mejor lo subo.
Aporte para TCalex: Navegación con teclas en Vista Dia
Bueno, conseguido.. añadida edicion con Intro. Así tenemos que el codigo de debajo incluye, para la vista diaria: edicion de cita con intro, navegacion entre horas con flecha up/down y navegacion entre dias con avance y retroceso de pagina. [code=fw:1c9901s7]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">case</span> ::<span style="color: #000000;">oView</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TDAYVIEW"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_RETURN<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">HitTest2</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00D7D7;">#Define</span> oCALINFO_ &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">oCalex</span>:<span style="color: #000000;">oCalInfo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">oCalex</span>:<span style="color: #000000;">oCalInfoSelected</span>:= oCALINFO_<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> oCALINFO_ != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Modificacion de agenda</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oSample</span>:<span style="color: #000000;">BuildDialog</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>, oCALINFO_:<span style="color: #000000;">dStart</span>, oCALINFO_:<span style="color: #000000;">dEnd</span>, oCALINFO_:<span style="color: #000000;">nStart</span>, oCALINFO_:<span style="color: #000000;">nEnd</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Nueva cita</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00D7D7;">#Define</span> nAtColDown_ ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nColDown</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00D7D7;">#Define</span> nTime_ &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GetTimeFromRow</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span><span style="color: #000000;">&#41;</span>+ <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00D7D7;">#Define</span> nTimeDown_ &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GetTimeFromRow</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oSample</span>:<span style="color: #000000;">BuildDialog</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">GetFirstDateWeek</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + nAtColDown_ - <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">GetFirstDateWeek</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nAtCol</span> - <span style="color: #000000;">1</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTimeDown_,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTime_ <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_UP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>-= <span style="color: #000000;">0.9999999</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>:= <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>, <span style="color: #000000;">&#123;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>, ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nColDown</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_DOWN<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> < ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowCount</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span>+= <span style="color: #000000;">1.0001</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">aSelectedRow</span>, <span style="color: #000000;">&#123;</span>::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nRowDown</span> , ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">nColDown</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_PRIOR<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GoNext</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_NEXT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">oDayView</span>:<span style="color: #000000;">GoPrev</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_LEFT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">case</span> nKey == VK_RIGHT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">otherwise</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">KeyDown</span><span style="color: #000000;">&#40;</span> nKey, nFlags <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endcase</span><br />&nbsp;</div>[/code:1c9901s7]
Aporte para TCalex: Navegación con teclas en Vista Dia
Muchas gracias nuevamente por compartirlo!
Aporte para TCalex: Navegación con teclas en Vista Dia
Genial aporte. Quería consultarte si en la clase que tu tienes está solucionado este problema que planteé hace algún tiempo : [url:oua2z2h1]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=36079&p=214995&hilit=tcalex#p214995[/url:oua2z2h1] Si miras Septiembre o Diciembre de este año por ejemplo y está el calendario configurado para que el primer día de la semana sea lunes (calendario de España) no "pinta" bien la vista mensual . Gracias,
Aporte para TCalex: Navegación con teclas en Vista Dia
Hola Ángel, No se me mostraban bien. Miré en el foro a ver qué tal y vi tu mensaje <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33878&start=15#p206676">viewtopic.php?f=6&t=33878&start=15#p206676</a><!-- l --> donde Cristóbal te decía que compararas con el bitbucket de Daniel. Eso hice, copié un par de trozos de código que estaban distintos y se me arregló. Si quieres inténtalo y si no te funciona intento buscar cuales son los cambios que hice. Saludos