topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
|---|---|
AYUDA URGENTE ¡¡¡ COMO ENVIAR UN ARCHIVO POR FTP !!!
|
Hola...
Prueba con este codigo. Solo debes modificar un par de cosillas, la ip del ftp, el usuario, la contraseña, el directorio remoto y el local. Espero te sirva.. Por cierto este codigo es del ftp.prg del directorio samples.....
// FTP sample developed by Enrico Maria Giordano
#include "Fwce.ch"
//
// File attributes
//
#define FILE_ATTRIBUTE_READONLY 1
#define FILE_ATTRIBUTE_HIDDEN 2
#define FILE_ATTRIBUTE_SYSTEM 4
#define FILE_ATTRIBUTE_DIRECTORY 16
#define FILE_ATTRIBUTE_ARCHIVE 32
#define FILE_ATTRIBUTE_NORMAL 128
#define FILE_ATTRIBUTE_TEMPORARY 256
//
// access types for InternetOpen()
//
#define INTERNET_OPEN_TYPE_PRECONFIG 0 // use registry configuration
#define INTERNET_OPEN_TYPE_DIRECT 1 // direct to net
#define INTERNET_OPEN_TYPE_PROXY 3 // via named proxy
#define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4 // prevent using java/script/INS
//
// manifests
//
#define INTERNET_INVALID_PORT_NUMBER 0 // use the protocol-specific default
#define INTERNET_DEFAULT_FTP_PORT 21 // default for FTP servers
#define INTERNET_DEFAULT_GOPHER_PORT 70 // " " gopher "
#define INTERNET_DEFAULT_HTTP_PORT 80 // " " HTTP "
#define INTERNET_DEFAULT_HTTPS_PORT 443 // " " HTTPS "
#define INTERNET_DEFAULT_SOCKS_PORT 1080 // default for SOCKS firewall servers.
//
// service types for InternetConnect()
//
#define INTERNET_SERVICE_FTP 1
#define INTERNET_SERVICE_GOPHER 2
#define INTERNET_SERVICE_HTTP 3
//
// flags for FTP
//
#define INTERNET_FLAG_TRANSFER_ASCII 1
#define INTERNET_FLAG_TRANSFER_BINARY 2
FUNCTION MAIN()
LOCAL hInternet, hConnect
hInternet = INTERNETOPEN( "Anystring", INTERNET_OPEN_TYPE_DIRECT, 0, 0, 0 )
hConnect = INTERNETCONNECT( hInternet, "Your ftp address", INTERNET_INVALID_PORT_NUMBER, "userid", "password", INTERNET_SERVICE_FTP, 0, 0 )
// ? FTPGETFILE( hConnect, "Your remote file", "Your local file", 0, FILE_ATTRIBUTE_ARCHIVE, 0, 0 )
? FTPPUTFILE( hConnect, "Your local file", "Your remote file", 0, 0 )
INTERNETCLOSEHANDLE( hConnect )
INTERNETCLOSEHANDLE( hInternet )
RETURN NIL
#pragma BEGINDUMP
#include "windows.h"
#include "wininet.h"
#include "hbapi.h"
LPWSTR AnsiToWide( LPSTR );
HB_FUNC( INTERNETOPEN )
{
LPWSTR cAgent = AnsiToWide( hb_parc( 1 ) );
LPWSTR cProxyName = AnsiToWide( hb_parc( 3 ) );
LPWSTR cProxyBypass = AnsiToWide( hb_parc( 4 ) );
HINTERNET hInternet = InternetOpen( cAgent, hb_parnl( 2 ), cProxyName, cProxyBypass, hb_parnl( 5 ) );
hb_xfree( cAgent );
hb_xfree( cProxyName );
hb_xfree( cProxyBypass );
hb_retnl( ( LONG ) hInternet );
}
HB_FUNC( INTERNETCLOSEHANDLE )
{
hb_retl( InternetCloseHandle( ( HINTERNET ) hb_parnl( 1 ) ) );
}
HB_FUNC( INTERNETCONNECT )
{
LPWSTR cServerName = AnsiToWide( hb_parc( 2 ) );
LPWSTR cUserName = AnsiToWide( hb_parc( 4 ) );
LPWSTR cPassword = AnsiToWide( hb_parc( 5 ) );
HINTERNET hInternet = InternetConnect( ( HINTERNET ) hb_parnl( 1 ), cServerName, ( INTERNET_PORT ) hb_parnl( 3 ), cUserName, cPassword, hb_parnl( 6 ), hb_parnl( 7 ), hb_parnl( 8 ) );
hb_xfree( cServerName );
hb_xfree( cUserName );
hb_xfree( cPassword );
hb_retnl( ( LONG ) hInternet );
}
HB_FUNC( FTPGETFILE )
{
LPWSTR cRemoteFile = AnsiToWide( hb_parc( 2 ) );
LPWSTR cNewFile = AnsiToWide( hb_parc( 3 ) );
hb_retl( FtpGetFile( ( HINTERNET ) hb_parnl( 1 ), cRemoteFile, cNewFile, hb_parl( 4 ), hb_parnl( 5 ), hb_parnl( 6 ), hb_parnl( 7 ) ) );
hb_xfree( cRemoteFile );
hb_xfree( cNewFile );
}
HB_FUNC( FTPPUTFILE )
{
LPWSTR cLocalFile = AnsiToWide( hb_parc( 2 ) );
LPWSTR cNewRemoteFile = AnsiToWide( hb_parc( 3 ) );
hb_retl( FtpPutFile( ( HINTERNET ) hb_parnl( 1 ), cLocalFile, cNewRemoteFile, hb_parnl( 4 ), hb_parnl( 5 ) ) );
hb_xfree( cLocalFile );
hb_xfree( cNewRemoteFile );
}
#pragma ENDDUMP
Saludos...
Elías Torres
|
AYUDA URGENTE!!! INDICES NTX
|
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> HOLA A TODO COMO PUEDO FILTAR UNA DBF POR ENDICES EN FWPPC
LO UNIC QUE TENGO ES LO SIGUIENTE:
USE (curdir()+'\BASES\'+"CLIENTES.DBF") NEW
PERO YO NECESITO ALGO ASI
USE (curdir()+'\BASES\'+"CLIENTES.DBF") INDEX "INDEX1.NTX" NEW
Y AS VES COMO HAGO UN FILTRO
<!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
dbsetorder(1)
dbgotop()
IF dbseek(cart)
dbgoto(RecNo())
IF BASETMP->(RLOCK())
IF cCjaoPza = 'C' //cajas
BASETMP->cantidad +=(ncant*nuni) //sumamos la conversion de cajas a piezas
ELSE //piezas
BASETMP->cantidad += ncant
ENDIF
BASETMP->TOTAL += ntotal
basetmp->(dbcommitall())
basetmp->(dbunlock())
ENDIF
ENDIF
ALGO DE ESTO PERO NO LO PUEDO HACER EN UN POCKET PC
ESPERO Y ALGUIEN ME PUEDA AYUDAR
|
AYUDA URGENTE!!! INDICES NTX
|
Pedro,
> USE (curdir()+'\BASES\'+"CLIENTES.DBF") INDEX "INDEX1.NTX" NEW
Puedes hacerlo perfectamente. Primero debes tener el índice NTX creado:
USE (curdir()+'\BASES\'+"CLIENTES.DBF") NEW
INDEX ON NombreCampo TO "INDEX1.NTX"
SET INDEX TO "INDEX1.NTX"
Es preferible que uses índices CDXs ya que usas un sólo fichero para todos los índices:
REQUEST DBFCDX
USE (curdir()+'\BASES\'+"CLIENTES.DBF") VIA "DBFCDX" NEW
INDEX ON NombreCampo TO "TagNombre"
|
AYUDA URGENTE!!! PARA SOLUCIONA UN GET
|
HOLA A TODOS....
DE NUEVO MOLESTANDO......
TENGO UN PROBLE DE UN GET... ESTOY LEYENDO UN CODIGO DE BARRAS DESDE ESCANER. Y QUIERO QUE CUANDO TERMINAR LA LECTURA DE ESTE ME MANDE A OTRO EVENTO... Y ESTO LO ESTOY HACIENDO PORQUE SE SUPONE QUE LA LECTURA LA HECE EL CODIGO+UN ENTER, ENTONCES LO QUIERO ACER ASI PERO NO FUNCIONA...
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
@ 35,20 GET nCodigo VAR mensa PIXEL SIZE 80,10
oDlg:bKeyDown = { | nKey,nFlags | KeyChar(nKey,nFlags)}
FUNCTION KeyChar(nKey,nFlags)
local nColPos := 0, nColInit:= 0, nColGet := 0
IF nKey == 13//K_ENTER // ENTER
// LO QUE DECEO HACER....
ENDIF
RETURN NIL
PERO ESTO FUNCIONA PARA CUALQUIER TECLA MENOS PARA EL ENTER....
ALGUINE ME PODRIA AYUDAR....-
<!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: -->
|
AYUDA URGENTE!!! PARA SOLUCIONA UN GET
|
Prueba con bKeyChar en vez de bKeyDown,
de todas formas, el código debiera ser:
@ 35,20 GET oCodigo VAR mensa PIXEL SIZE 80,10
oCodigo:bKeyDown = { | nKey,nFlags | KeyChar(nKey,nFlags)}
ó cambiando bKeyDown por bKeyChar
|
AYUDA URGENTE!!! PARA SOLUCIONA UN GET
|
<!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
GRACIAS .....
|
AYUDA XMATE
|
Fivewines,
alguien me puede ayudar con lo siguiente, siempre he utilizado xmate como para compilar mis app. Desde la semana pasada cada vez que hago algo me aparece el siguiente error y se cierra xmate. aguien me puede ayudar....
SYSTEM
------
Error date 05/30/2011 time:12:17:17
Application F:\edpfw\xmate\xMate.exe
File info 01/07/2005 21:15:16 2053120 bytes (Attr.A) ver.1.9y3
Computer HP: Intel 2.00GHz 1976.19k RAM (49% in use )
OS Windows XP Professional Service Pack 3 (Build 2600)
WAIT.LIB ver.1.a, 06/07/2004
User Macato
ERROR INFORMATION
|
AYUDA en reconfigurar FivEdit - Cristobal Navarro
|
hola @Cristobal Navarro Lopez, muy buenas tardes. quería pedirte un favor a que me ayudes a configurar mi FivEdit. Lamentablemente tuve una emergencia de un robo en mi vehículo y me robaron mi mochila, en donde tenia mi computador y respaldos de mi actual proyecto que estaba desarrollando, por lo tanto perdi la configuración que pudimos hacer la ultima vez que me ayudaste, ya hace dos años. Acabo de instalar FiveEdit, la versión 22014 32 bits, no se si es la última, pero trate de reconfigurar los parametros que recordaba anteriormente, y al compilar me sale los siguientes errores:
[code=fw:1by4ddk7]<div class="fw" id="{CB}" style="font-family: monospace;">Harbour <span style="color: #000000;">3.2</span>.0dev <span style="color: #000000;">(</span>r2004201301<span style="color: #000000;">)</span><br />Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1999</span><span style="color: #000000;">-2020</span>, https:<span style="color: #B900B9;">//harbour.github.io/</span><br />Compiling <span style="color: #ff0000;">'c:<span style="color: #000000;">\p</span>ro<span style="color: #000000;">\r</span>aig32<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\S</span>isven.prg'</span> and generating preprocessed output <span style="color: #0000ff;">to</span> <span style="color: #ff0000;">'c:<span style="color: #000000;">\p</span>ro<span style="color: #000000;">\r</span>aig32<span style="color: #000000;">\p</span>rg<span style="color: #000000;">\S</span>isven.ppo'</span>...<br />Embarcadero C++ <span style="color: #000000;">7.00</span> <span style="color: #00C800;">for</span> Win32 Copyright <span style="color: #000000;">(</span>c<span style="color: #000000;">)</span> <span style="color: #000000;">1993</span><span style="color: #000000;">-2015</span> Embarcadero Technologies, Inc.<br />C:\Pro\Raig32\Obj\Sisven.c:<br /><span style="color: #000000;">Error</span> E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">163</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'ModuleFakeDyn'</span><br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">163</span>: <span style="color: #000000;">Declaration</span> syntax error<br />Error E2190 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">163</span>: <span style="color: #000000;">Unexpected</span> <span style="color: #000000;">}</span><br />Error E2040 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">163</span>: <span style="color: #000000;">Declaration</span> terminated incorrectly<br />Error E2190 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">349</span>: <span style="color: #000000;">Unexpected</span> <span style="color: #000000;">}</span><br />Error E2109 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">349</span>: <span style="color: #000000;">Not</span> an allowed type in <span style="color: #00C800;">function</span> hb_vm_SymbolInit_SISVEN<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">360</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MAIN<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">419</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MAIN<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">420</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MAIN<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">424</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MAIN_INICIAR<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">794</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MAIN_INICIAR<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">795</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MAIN_INICIAR<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">799</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SISVEN<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">1755</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SISVEN<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">1756</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SISVEN<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">1760</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_EXIT<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2013</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_EXIT<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2014</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_EXIT<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2018</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_ABREMENU<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2171</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_ABREMENU<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2172</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_ABREMENU<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2176</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKDELETE<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2245</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKDELETE<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2246</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKDELETE<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2250</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKADD<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2404</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKADD<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2405</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MENUQUICKADD<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2409</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_CABOUT<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2580</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_CABOUT<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2581</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_CABOUT<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2585</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION1<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2653</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION1<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2654</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION1<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2658</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION2<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2726</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION2<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2727</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SETOPTION2<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">2731</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_IDENTIFICA<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3379</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_IDENTIFICA<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3380</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_IDENTIFICA<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3384</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SELECT_EMP<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3466</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SELECT_EMP<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3467</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SELECT_EMP<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3471</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_GET_EMP<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3518</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_GET_EMP<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3519</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_GET_EMP<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3523</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SEEK_USU<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3581</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SEEK_USU<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3582</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SEEK_USU<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3586</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_SEEK_PASS<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3672</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_SEEK_PASS<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3673</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_SEEK_PASS<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3677</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_VIEWUSU<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3687</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_VIEWUSU<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3688</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_VIEWUSU<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3692</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_IDPANEL<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3705</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_IDPANEL<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3706</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_IDPANEL<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3710</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MYAPP<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3832</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MYAPP<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3833</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MYAPP<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3837</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_ADDPANEL<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3857</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_ADDPANEL<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3858</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_ADDPANEL<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3862</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_DELPANEL<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3914</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_DELPANEL<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3915</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_DELPANEL<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3919</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_GETPANEL<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3986</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_GETPANEL<br />Warning W8004 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3987</span>: <span style="color: #ff0000;">'BYTE'</span> is assigned a value that is never used in <span style="color: #00C800;">function</span> HB_FUN_MYAPP_GETPANEL<br />Error E2141 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">3991</span>: <span style="color: #000000;">Declaration</span> syntax error in <span style="color: #00C800;">function</span> HB_FUN_CAMBIO_EMPRESA<br />Error E2451 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">4418</span>: <span style="color: #000000;">Undefined</span> symbol <span style="color: #ff0000;">'pcode'</span> in <span style="color: #00C800;">function</span> HB_FUN_CAMBIO_EMPRESA<br />Error E2228 C:\Pro\Raig32\Obj\Sisven.c <span style="color: #000000;">4418</span>: <span style="color: #000000;">Too</span> many error or warning messages in <span style="color: #00C800;">function</span> HB_FUN_CAMBIO_EMPRESA<br />*** <span style="color: #000000;">51</span> errors in Compile ***<br />c:\pro\raig32\prg\Sisven.prg<span style="color: #000000;">(</span><span style="color: #000000;">4</span><span style="color: #000000;">)</span> Error F0029 Can<span style="color: #ff0000;">'t open #include file '</span>ads.ch<span style="color: #ff0000;">'</span></div>[/code:1by4ddk7]
No he podido configurar nuevamente mi FivEdit.
Agradecería alguna ayuda u orientación
|
AYUDA en reconfigurar FivEdit - Cristobal Navarro
|
Hola , no soy Cristóbal [emoji2], pero si me dices tus rutas de Harbour. Fwh y del compilador de Borland te mando los archivos fivedit.ini y borland7.fiv configurados.
Si me mandas el fichero de proyecto .prj te lo adapto también.
Saludos
Jose.
Enviado desde mi Lenovo TB-J606F mediante Tapatalk
|
AYUDA en reconfigurar FivEdit - Cristobal Navarro
|
Gracias Jose Vicente, contactó conmigo por otros medios y ya lo solucionó
De nuevo gracias por tu predisposición siempre a ayudar
|
AYUDA en reconfigurar FivEdit - Cristobal Navarro
|
Nada Cristóbal, las gracias siempre a ti por lo que aportas a la comunidad.
Saludos
Jose
Enviado desde mi POCOPHONE F1 mediante Tapatalk
|
AYUDA para Descargar Pagina WEB
|
HOla AMigos, Necesito descargar una Imagen de la Pagina WEB, pero en este caso necesito usar el URLMON o internet.explorer como procesos
En realidad he visto tambien WGET, pero no hace lo que deseo exactamente, por eso deseo usar esos procedimientos que mencione.
He usado este proceso que encontre en en foro, pero me vota un ERROR, al compilar y ejecutar
[color=#BF0000:35qmy03q]Syntax error: "syntax error at 'FUCTION'[/color:35qmy03q]
***********
cHttp:='http://www.sunat.gob.pe/cl-ti-itmrconsruc/captcha?accion=image'
if !URLDownLoad(cHttp, 'c:\SunatX.jpg')
mensaje('Error : '+cHttp)
else
? memoread('c:\SunatX.jpg')
endif
*----------------------------*
function URLDownLoad(cUrl, cSaveAs)
//hLib = LOADLIBRARY( "urlmon.dll")
if !URLDownloadToFile( 0, cUrl, cSaveAs, 0, 0 ) == 0
retu.f.
endif
//FREELIBRARY( hLib )
retu.t.
DLL32 FUNCTION URLDownloadToFile(pCaller AS LONG,szURL AS STRING, szFileName AS STRING, dwReserved AS LONG, lpfnCB AS LONG);
AS LONG PASCAL;
FROM "URLDownloadToFileA";
LIB "urlmon.dll"
//hlib
************
Si alguno tiene alguno modo de resolverlo o algo similar, estare muy agradecido.
|
AYUDA para Descargar Pagina WEB
|
Saludos
Harbour tiene una funcion para lectura de paginas Web. Estoy buscando en mis aplicaciones su nombre, lo he utilizado desde hace 10 años.
|
AYUDA para Descargar Pagina WEB
|
Yo uso este código:
[code=fw:112inpum]<div class="fw" id="{CB}" style="font-family: monospace;">cUrl:=<span style="color: #ff0000;">"http://www.fivetechsoft.com"</span><br />oHttp:=CreateObject<span style="color: #000000;">(</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">)</span><br />oHttp:<span style="color: #000000;">SetTimeouts</span><span style="color: #000000;">(</span><span style="color: #000000;">30000</span>,<span style="color: #000000;">30000</span>,<span style="color: #000000;">30000</span>,<span style="color: #000000;">30000</span><span style="color: #000000;">)</span><br />oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span><span style="color: #ff0000;">"GET"</span>,cUrl,.F.<span style="color: #000000;">)</span> <span style="color: #B900B9;">// también se puede usar esto oHttp:Open("PUT",cUrl,.F.)</span><br />oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />cTextoHTML:=oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:112inpum]
En la variable [b:112inpum]cTextoHTML[/b:112inpum] tienes la página web recibida.
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
Hola me salio un error <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> que no comprendo <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> me pueden orientar
Gracias. <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
ya lo repare solo quite el cFile := LFN2SFN( cFile ) y dejo de salir el error <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
el error sale cuando se ejecutan estas mini funciones
[code=fw:1qdhll7k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">FUNCTION</span> playfile<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> cFile := LFN2SFN<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> File<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> audiop<span style="color: #000000;">(</span> <span style="color: #000000;">(</span><span style="color: #ff0000;">"Play "</span> + cFile<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> stopfile<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> cFile := LFN2SFN<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">IF</span> File<span style="color: #000000;">(</span> cFile <span style="color: #000000;">)</span><br /> audiop<span style="color: #000000;">(</span> <span style="color: #000000;">(</span><span style="color: #ff0000;">"Stop "</span> + cFile<span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">ENDIF</span><br /><br /> <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> <span style="color: #B900B9;">//--------------------------------------------------------------------------//</span></div>[/code:1qdhll7k]
Stack Calls
===========
Called from: => ABS( 0 )
Called from: .\source\function\LONGNAM2.PRG => GETSHORTPATHNAME( 0 )
Called from: .\source\function\LONGNAM2.PRG => LFN2SFN( 70 )
Called from: model.prg => STOPFILE( 14753 )
Called from: model.prg => (b)COMO( 14388 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:CLICK( 792 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 1083 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1847 )
Called from: .\source\classes\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 2135 )
Called from: .\source\classes\WINDOW.PRG => _FWH( 3689 )
Called from: => DIALOGBOX( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 307 )
Called from: model.prg => COMO( 14398 )
Called from: model.prg => (b)REGISTRAME( 14314 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:ACTIVATE( 1100 )
Called from: model.prg => REGISTRAME( 14314 )
Called from: model.prg => MAIN( 731
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
C:\FWH..\sample\testlfn2.prg
Regards, saludos.
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
[url:27ms8tjx]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=40794&p=244029&hilit=GETSHORTPATHNAME&sid=2494a9d09ab06a25b9e653ea38429059&sid=5e7961801490c878a0a8e38a5440366c#p244029[/url:27ms8tjx]
Regards, saludos.
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
[url:30ga9gy4]http://www.pctoledo.com.br/forum/viewtopic.php?f=4&t=25021[/url:30ga9gy4]
Regards, saludos.
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
GRACIAS! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[quote="karinha":2bxcq2uc]C:\FWH..\sample\testlfn2.prg
Regards, saludos.[/quote:2bxcq2uc]
|
AYUDA! Error BASE/1089 Error de argumento: ABS
|
Querida Aida,
Si usas xHarbour, entonces ese error se debe a que se enlazan las funciones LoadLibrary() y FreeLibrary() de xHarbour en vez de las de FWH.
Observa que en DLL.CH se llama a Abs() y si se le pasa un valor tipo "P" (que es lo que devuelve LoadLibrary() de xHarbour) se genera un error en Abs()
Necesitas usar este DLL.CH actualizado ó usar la versión más reciente (ojo que hemos publicados varios builds de FWH 22.10) de FWH <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[code=fw:1n2i67gd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Copyright FiveTech 1993-2011</span><br /><br />#ifndef _DLL_CH<br /><span style="color: #00D7D7;">#define</span> _DLL_CH<br /><br />#ifndef _C_TYPES<br /> <span style="color: #00D7D7;">#define</span> _C_TYPES<br /> <span style="color: #00D7D7;">#define</span> VOID <span style="color: #000000;">0</span><br /> <span style="color: #00D7D7;">#define</span> BYTE <span style="color: #000000;">1</span><br /> <span style="color: #00D7D7;">#define</span> CHAR <span style="color: #000000;">2</span><br /> <span style="color: #00D7D7;">#define</span> WORD <span style="color: #000000;">3</span><br /><br />#ifdef __CLIPPER__<br /> <span style="color: #00D7D7;">#define</span> _INT <span style="color: #000000;">4</span> <span style="color: #B900B9;">// conflicts with Clipper Int()</span><br />#else<br /> <span style="color: #00D7D7;">#define</span> _INT <span style="color: #000000;">7</span><br />#endif<br /><br /> <span style="color: #00D7D7;">#define</span> BOOL <span style="color: #000000;">5</span><br /> <span style="color: #00D7D7;">#define</span> HDC <span style="color: #000000;">6</span><br /> <span style="color: #00D7D7;">#define</span> LONG <span style="color: #000000;">7</span><br /> <span style="color: #00D7D7;">#define</span> STRING <span style="color: #000000;">8</span><br /> <span style="color: #00D7D7;">#define</span> LPSTR <span style="color: #000000;">9</span><br /> <span style="color: #00D7D7;">#define</span> PTR <span style="color: #000000;">10</span><br /> <span style="color: #00D7D7;">#define</span> _DOUBLE <span style="color: #000000;">11</span> <span style="color: #B900B9;">// conflicts with BORDER DOUBLE</span><br /> <span style="color: #00D7D7;">#define</span> DWORD <span style="color: #000000;">12</span><br /> <br /> <span style="color: #00D7D7;">#define</span> LONGLONG <span style="color: #000000;">13</span><br />#endif<br /><br />#translate NOREF<span style="color: #000000;">(</span><span style="color: #000000;">[</span>@<span style="color: #000000;">]</span><x><span style="color: #000000;">)</span> => <x><br /><br />#ifndef __HARBOUR__<br /> #ifndef __XPP__<br /> #ifndef __CLIPPER__<br /> #ifndef __C3__<br /> <span style="color: #00D7D7;">#define</span> __CLIPPER__<br /> #endif<br /> #endif<br /> #endif<br />#endif<br /><br />#ifndef __CLIPPER__<br /> #translate DLL32 => DLL<br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#xcommand DLL <span style="color: #000000;">[</span><static:<span style="color: #000000;">STATIC</span>><span style="color: #000000;">]</span> <span style="color: #00C800;">FUNCTION</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <uParam1> AS <type1> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span>, <uParamN> AS <typeN> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;<br /> AS <return> <span style="color: #000000;">[</span><pascal:<span style="color: #000000;">PASCAL</span>><span style="color: #000000;">]</span> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FROM</span> <SymName> <span style="color: #000000;">]</span> LIB <*DllName*> ;<br /> => ;<br /> <span style="color: #000000;">[</span><static><span style="color: #000000;">]</span> <span style="color: #00C800;">function</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span>NOREF<span style="color: #000000;">(</span><uParam1><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,NOREF<span style="color: #000000;">(</span><uParamN><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> _hDLL := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>, <DllName>, LoadLibrary<span style="color: #000000;">(</span> <<span style="color: #000000;">(</span>DllName<span style="color: #000000;">)</span>> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> uResult ;;<br /> <span style="color: #00C800;">local</span> cFarProc ;;<br /> <span style="color: #00C800;">local</span> _pOld ;;<br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"P"</span> ;;<br /> _pOld = _hDLL ;; <br /> _hDLL = PtrToNum<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> > <span style="color: #000000;">32</span> ;;<br /> cFarProc = GetProcAdd<span style="color: #000000;">(</span> _hDLL,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> Empty<span style="color: #000000;">(</span> <SymName> <span style="color: #000000;">)</span> == <span style="color: #000000;">]</span> .t., <<span style="color: #000000;">(</span><span style="color: #0000ff;">FuncName</span><span style="color: #000000;">)</span>>, <SymName> <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">[</span><.pascal.><span style="color: #000000;">]</span>, <return> <span style="color: #000000;">[</span>,<type1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<typeN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> uResult = FWCallDLL<span style="color: #000000;">(</span> cFarProc <span style="color: #000000;">[</span>,<uParam1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<uParamN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">(</span> _pOld <span style="color: #000000;">)</span> ;;<br /> _hDLL = _pOld ;;<br /> end ;; <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>,, FreeLibrary<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">else</span> ;;<br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Error code: "</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" loading "</span> + ;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"C"</span>, <DllName>, Str<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">return</span> uResult<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br />#xcommand DLL32 <span style="color: #000000;">[</span><static:<span style="color: #000000;">STATIC</span>><span style="color: #000000;">]</span> <span style="color: #00C800;">FUNCTION</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> <uParam1> AS <type1> <span style="color: #000000;">]</span> ;<br /> <span style="color: #000000;">[</span>, <uParamN> AS <typeN> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;<br /> AS <return> <span style="color: #000000;">[</span><pascal:<span style="color: #000000;">PASCAL</span>><span style="color: #000000;">]</span> <span style="color: #000000;">[</span> <span style="color: #0000ff;">FROM</span> <SymName> <span style="color: #000000;">]</span> LIB <*DllName*> ;<br /> => ;<br /> <span style="color: #000000;">[</span><static><span style="color: #000000;">]</span> <span style="color: #00C800;">function</span> <FuncName><span style="color: #000000;">(</span> <span style="color: #000000;">[</span>NOREF<span style="color: #000000;">(</span><uParam1><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,NOREF<span style="color: #000000;">(</span><uParamN><span style="color: #000000;">)</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> _hDLL := <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>, <DllName>, LoadLib32<span style="color: #000000;">(</span> <<span style="color: #000000;">(</span>DllName<span style="color: #000000;">)</span>> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">local</span> uResult ;;<br /> <span style="color: #00C800;">local</span> cFarProc ;;<br /> <span style="color: #00C800;">if</span> <span style="color: #0000ff;">Abs</span><span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <= <span style="color: #000000;">32</span> ;;<br /> MsgAlert<span style="color: #000000;">(</span> <span style="color: #ff0000;">"Error code: "</span> + LTrim<span style="color: #000000;">(</span> Str<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> + <span style="color: #ff0000;">" loading "</span> + <DllName> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">else</span> ;;<br /> cFarProc = GetProc32<span style="color: #000000;">(</span> _hDLL,;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> <span style="color: #000000;">[</span> Empty<span style="color: #000000;">(</span> <SymName> <span style="color: #000000;">)</span> == <span style="color: #000000;">]</span> .t., <<span style="color: #000000;">(</span><span style="color: #0000ff;">FuncName</span><span style="color: #000000;">)</span>>, <SymName> <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">[</span><.pascal.><span style="color: #000000;">]</span>, <return> <span style="color: #000000;">[</span>,<type1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<typeN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> uResult = FWCallDLL32<span style="color: #000000;">(</span> cFarProc <span style="color: #000000;">[</span>,<uParam1><span style="color: #000000;">]</span> <span style="color: #000000;">[</span>,<uParamN><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> ;;<br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ValType<span style="color: #000000;">(</span> <DllName> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span>,, FreeLib32<span style="color: #000000;">(</span> _hDLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> ;;<br /> end ;;<br /> <span style="color: #00C800;">return</span> uResult<br /><br />#endif<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span></div>[/code:1n2i67gd]
|
AYUDA.....
|
Hola amigos,,,
Un inmobiliaria, me ha pedido un software que controle la compras y ventas de terrenos, tomando en cuenta que se compra un terreno y este se subdivide en parcelas menores para su venta, o para urbanizar un terreno grande, la idea es tener un kardex de compras y ventas...... alguna sugerencia??
Salu2
Willi
|
AYUDA.....
|
No veo gran diferencia respecto a un típico proceso de producción, salvo que a la inversa (por ejemplo una chatarreria de coches)
A partir de un producto inicial, se realiza un "escandallo" en partes, en este caso considero que ha de hacerse porcentualmente, generando tantos códigos en el fichero de "articulos (terrenos)" como fincas generes (ese sería el movimiento inicial de cada uno). En ese momento, si el porcentaje final es del 100%, se da de baja el terreno inicial (sería el cierre de los movimientos de ese articulo) y no permitiría más escandallos. Solo tener en cuenta que no solo has de tener en este caso un producto y dividirlo en elementos individuales, sino que ha de existir un nivel intermedio, ya que cualquier finca en una división inicial es suceptible de poderse dividir de nuevo (productos, subproductos y articulos).
Esto supone que en el campo stock, al dar de alta un terreno siempre ha de aparecer 100 (inicialmente), que se irá disminuyendo a partir de la division generada.
(Estoy haciendo una similitud con un programa de gestion habitual)
En mi aplicación de gestion, genero un histórico de almacén con una "foto" del estado de cada artículo en ese momento, por lo que obtener un resumen de movimientos de cada uno es sencillo (podría generarlo a partir de pedidos y albaranes de compra y venta, pero hay datos que perdería).
Es una pequeña reflexión en base a mi desarrollo en temas de producción.
Ojalá te sirva de algo.
|
AYUDA.....
|
willi perdi los contactos mandame un whats app. gracias.
|
AYUUUDAAAAAAAAAAAAAAAAAAAAAA
|
Estoy super perdido;; a ver si una alma generosa me ayuda..
debo hacer esto:
en un menu principal,, debo definir un FONT q sirva para la salida de impresora,, esto lo hago con TWindow():Setfol() funciona bien
pero nose como incorporarlo a la impresion..
primero defino un oFont Publico, lo paso como parametro a la rutina de impresion pero no se incorporan los font seleccionados
GRACIAS::
|
AYUUUDAAAAAAAAAAAAAAAAAAAAAA
|
Proba con:
oPrn:SetFont( oFont )
Salu2
|
Abandonar la aplicacion y correr otra
|
Hola amigos,
Intento que de manera automatica se sustituya el EXE que estoy corriendo por uno mas reciente asi que el proceso debe hacer lo siguiente:
Abandonar la presente aplicacion y encadenarse a otra que descomprime un ZIP y que copia el EXE para que sustituya al que originalmente estaba corriendo.
Al momento, en la aplicacion original (Origen.EXE por ejemplo) pongo las siguientes instrucciones:
WINEXEC("Copiar.EXE")
QUIT
M->oWndPrin:End()
donde "Copiar.EXE" se encarga de descomprimir el zip, copiar la nueva version de "Origen.EXE" para que sustituya el "Origen.EXE" viejo y despues abandone "Copiar.EXE" y corra el nuevo "Origen.EXE".
El problema con esas instrucciones es que en efecto se encadena a "Copiar.EXE" pero no siempre abandona "Origen.EXE" y al estar activo no permite sustituirlo por el nuevo.
Alguna idea?
'chas gracias de antemano
|
Abandonar la aplicacion y correr otra
|
Rodolfo,
Lo más sencillo es usar un fichero BAT que es el que llama a los ejecutables.
|
Abandonar la aplicacion y correr otra
|
USE UN ARCHIVO.BAT TIPO:
STATIC lDesligaProg := .F.
LOCAL NOME_ARQ, NREGISTRO
IF lDesligaProg //-> SE .T.
MsgStop( OemToAnsi( "Prezado Usuário: " ) + CRLF + ;
OemToAnsi( "Devido ao Enorme CONSUMO DE RECURSOS do " ) + CRLF + ;
OemToAnsi( "WINDOWS, Necessito Reiniciar o Programa," ) + CRLF + ;
OemToAnsi( "Para Liberação de Memória e Recursos. " ) + CRLF + ;
OemToAnsi( "Desculpe Pelo Transtorno! É Rápido." ) + CRLF + ;
OemToAnsi( "<Click> no Botão <OK> Por Favor... " ), ;
OemToAnsi( "Aviso de Perda de Recursos do Windows. " ) )
oDbfPedf:Close()
// Cria o Arquivo de Lote Balcao.Bat no Diretório, Com as Diretrizes.
IF !FILE( "BALCAO.BAT" )
NOME_ARQ := FCREATE("BALCAO.BAT")
NREGISTRO := "@ECHO OFF" ;
+ CRLF + ;
"CLS" + ;
+ CRLF + CRLF + ;
"BALCAOW.EXE" + ;
+ CRLF + CRLF + ;
"CLS" + ;
+ CRLF + ;
"EXIT"
FWRITE( NOME_ARQ, NREGISTRO )
FCLOSE( NOME_ARQ )
ENDIF
oFont1:End()
lDesligaProg := .F.
EndDialog()
Release All
WinExec( "BALCAO.BAT", 0 )
__QUIT()
ELSE
oDbfPedf:Close()
oFont1:End()
lDesligaProg := .F.
Release All
ENDIF
|
Abandonar la aplicacion y correr otra
|
Jovenes,
No puedo usar un archivo de lotes que llame primero al "Origen.EXE" y despues al "Copia.EXE" porque el proceso es muy eventual, no se hace cada vez que se corre "Origen.EXE".
El ejemplo de Joao para crear y correr un archivo BAT no me funciono.
Si no hay alguna instruccion para cerrar "Origen.EXE" y correr "Copia.EXE" existira alguna manera que desde "Copia.EXE" cierre "Origen.EXE"?
'chas gracias por su paciencia
|
Abandonar la aplicacion y correr otra
|
[quote="RodolfoRBG":66538wgs]Jovenes,
No puedo usar un archivo de lotes que llame primero al "Origen.EXE" y despues al "Copia.EXE" porque el proceso es muy eventual, no se hace cada vez que se corre "Origen.EXE".
El ejemplo de Joao para crear y correr un archivo BAT no me funciono.
Si no hay alguna instruccion para cerrar "Origen.EXE" y correr "Copia.EXE" existira alguna manera que desde "Copia.EXE" cierre "Origen.EXE"?
'chas gracias por su paciencia[/quote:66538wgs]
Podrias probar
SHELLEXECUTE()
oWnd:END()
por ahi va la idea
|
Abandonar la aplicacion y correr otra
|
Pienso que tu problema se solucionaria, con un programa intermedio que es llamado desde EXIT PROCEDURE....., sobre la aplicacion que vas a reemplazar, yo hago lo mismo y lo solucione de esta manera.
|
Abandonar la aplicacion y correr otra
|
Infosys,
De hecho el programa "Copia.EXE" es un programa intermedio que se corre desde "Origen.EXE", pero este ultimo como que no se termina de cerrar al llamar al primero.
Podrias enviarme o darme un ejemplo de como le hiciste tu?
'chas gracias.
|
Abandonar la aplicacion y correr otra
|
Rodolfo:
Origen.EXE hace un WinExec("copia.exe") hasta aqui vamos bien. Luego el ORIGEN.EXE tiene que "suicidarse", eso lo haces con un PostQuitMessage(0) y un Quit, quedaria algo asi:
WinExec("copia.exe")
PostQuitMessage(0)
__Quit()
y luego en tu programa COPIA.EXE haces lo que tienes que hacer, y vuelves a lanzar a ORIGEN.EXE
WinExec("origen.exe")
|
Abandonar la aplicacion y correr otra
|
Rodolfo:
Esta rutina me ha funciona perfectamente
funciona de la siguiente manera:
1.- Cuando instalo una actualización guardo en la carpeta update\ dos archivo, uno el ejecutable.exe y otro la update.ini, que es el siguiente
[code:bbiansrx]
_____________________________________________________________ Sistema Administrativo Version 1.0.0
(c) copyright: Patricio Avalos Aguirre, 2005
patricio_avalos_aguirre@hotmail.com
_____________________________________________________________
[Version]
numero=1.0.19
[Revision]
;08 Julio del 2006, versión 1.0.19
;bla bla bla..
;y mas blabla
[/code:bbiansrx]
[code:bbiansrx]
#Define DRIVELOCAL DiskName() + ":\"+Curdir()
Static oApp
procedure Main()
//mi programa bla bla bla...
return
//-----------------------------------------------------------------------
Init Procedure Inicio()
oApp := MyApp():Load()
aEval( DIRECTORY( oApp:cPathTmp + "\*.*" ), { |aFichero| fErase( oApp:cPathTmp + "\"+aFichero[1] ) } )
if VerUpdate()
PostQuitMessage( 0 )
QUIT
endif
return
//-----------------------------------------------------------------------
CREATE CLASS MyApp
VAR Usuario AS CHARACTER INIT ""
VAR Nombre AS CHARACTER INIT ""
VAR Grupo AS CHARACTER INIT ""
VAR Depto AS CHARACTER INIT ""
VAR Clave AS CHARACTER INIT ""
VAR cPathTmp AS CHARACTER INIT DRIVELOCAL + "\TEMPORAL"
VAR cPathDbf AS CHARACTER INIT DRIVELOCAL + "\DATOS"
VAR cPathUpd AS CHARACTER INIT DRIVELOCAL + "\UPDATE"
VAR cPathLocal AS CHARACTER INIT DRIVELOCAL
//impresion
VAR Factura AS CHARACTER INIT "LPT1"
VAR Boleta AS CHARACTER INIT "LPT1"
VAR GDespacho AS CHARACTER INIT "LPT1"
VAR ordenCompra AS CHARACTER INIT "LPT1"
VAR Cotizacion AS CHARACTER INIT "LPT1"
VAR GRecepcion AS CHARACTER INIT "LPT1"
VAR SaliBode AS CHARACTER INIT "LPT1"
VAR ordentrabajo AS CHARACTER INIT "LPT1"
VAR Cajadiaria AS CHARACTER INIT "LPT1"
VAR nCredito AS CHARACTER INIT "LPT1"
VAR Arriendo AS CHARACTER INIT "LPT1"
VAR Finiquito AS CHARACTER INIT "LPT1"
VAR AdsServer AS NUMERIC INIT ""
VAR AdsConnect AS NUMERIC INIT ADS_LOCAL_SERVER
VAR cVersion AS CHARACTER INIT "1.0.0"
METHOD Load()
METHOD Save()
METHOD End() INLINE ::Save()
ENDCLASS
//------------------------------------------------------------------------------------------------
METHOD Load( oDbf ) CLASS MyApp
local oIni
INI oIni FILE (::cPathLocal + "\wInvent.ini")
GET ::cPathDbf SECTION "Servidor" ENTRY "Name" OF oIni DEFAULT ""
GET ::cPathUpd SECTION "Servidor" ENTRY "Update" OF oIni DEFAULT ""
GET ::Factura SECTION "Puertos" ENTRY "Factura" OF oIni DEFAULT "LPT1"
GET ::Boleta SECTION "Puertos" ENTRY "Boleta" OF oIni DEFAULT "LPT1"
GET ::GDespacho SECTION "Puertos" ENTRY "GDespacho" OF oIni DEFAULT "LPT1"
GET ::OrdenCompra SECTION "Puertos" ENTRY "ordencompra" OF oIni DEFAULT "LPT1"
GET ::Cotizacion SECTION "Puertos" ENTRY "Cotizacion" OF oIni DEFAULT "LPT1"
GET ::GRecepcion SECTION "Puertos" ENTRY "GRecepcion" OF oIni DEFAULT "LPT1"
GET ::SaliBode SECTION "Puertos" ENTRY "SaliBode" OF oIni DEFAULT "LPT1"
GET ::ordentrabajo SECTION "Puertos" ENTRY "ordentrabajo" OF oIni DEFAULT "LPT1"
GET ::Cajadiaria SECTION "Puertos" ENTRY "CajaDiaria" OF oIni DEFAULT "LPT1"
GET ::cVersion SECTION "Version" ENTRY "Version" OF oIni DEFAULT "1.0.0"
GET ::Usuario SECTION "Usuario" ENTRY "Usuario" OF oIni DEFAULT ""
GET ::Nombre SECTION "Usuario" ENTRY "Nombre" OF oIni DEFAULT ""
GET ::AdsServer SECTION "ServerAds" ENTRY "Servidor" OF oIni DEFAULT ""
GET ::AdsConnect SECTION "ServerAds" ENTRY "TypeConnect" OF oIni DEFAULT ADS_LOCAL_SERVER
::Factura := Alltrim( ::Factura )
::Boleta := Alltrim( ::Boleta )
::GDespacho := Alltrim( ::GDespacho )
::OrdenCompra := Alltrim( ::OrdenCompra)
::Cotizacion := Alltrim( ::Cotizacion )
::GRecepcion := Alltrim( ::GRecepcion )
::SaliBode := Alltrim( ::SaliBode )
::CajaDiaria := Alltrim( ::CajaDiaria )
ENDINI
return( Self )
// --------------------------------------------------------------------------------------------
METHOD Save( oDbf ) CLASS MyApp
local oIni
if !empty( ::Usuario )
INI oIni FILE (::cPathLocal + "\wInvent.ini")
oIni:Set( "Usuario", "Usuario", ::Usuario )
oIni:Set( "Usuario", "Nombre", ::Nombre )
oIni := NIL
endif
return( NIL )
// --------------------------------------------------------------------------------------------
Function ViewUsu()
Return( oApp )
// --------------------------------------------------------------------------------------------
static function VerUpdate()
local oIniUpdate, oIniLocal, cVersion, cVersion2, lReturn := .f.
if !file( ViewUsu():cPathUpd + "\Update.exe" ) .or. !file( ViewUsu():cPathUpd + "\Wcta.exe" )
return( lReturn )
endif
INI oIniUpdate FILE ( ViewUsu():cPathUpd + "\update.ini" )
GET cVersion SECTION "Version" ENTRY "numero" OF oIniUpdate DEFAULT "1.0.0"
INI oIniLocal FILE (ViewUsu():cPathLocal + "\wInvent.ini")
GET cVersion2 SECTION "Version" ENTRY "Version" OF oIniLocal DEFAULT "1.0.0"
if PadR( cVersion2,6 ) <> PadR( cVersion,6 )
if Parame->( NetRLock() )
Parame->Version := cVersion
WinExec( ViewUsu():cPathUpd+"\Update.exe "+cVersion )
lReturn := .t.
endif
endif
USE
return( lReturn )
//------------------------------------------------------------------------------------------------
[/code:bbiansrx]
[code:bbiansrx]//programa update.exe
//este debe compilarse solo...
#include "ini.ch"
#include "FiveWin.ch"
#Define DRIVELOCAL DiskName() + ":\"+Curdir()
//----------------------------------------------------------------------------
function Update( cValor )
local PATHSERVER, PATHDATOS, lExe, oIni, Usuario
if empty( cValor )
return( .f. )
endif
INI oIni FILE (DRIVELOCAL + "\wInvent.ini")
GET Usuario SECTION "Usuario" ENTRY "Usuario" OF oIni DEFAULT ""
GET PATHSERVER SECTION "Servidor" ENTRY "Update" OF oIni DEFAULT ""
GET PATHDATOS SECTION "Servidor" ENTRY "Name" OF oIni DEFAULT ""
ENDINI
if !file( PATHSERVER + "\wcta.exe" )
MsgInfo( "Falta un archivo imposible actualizar" +CRLF+;
PATHSERVER + "\wcta.exe", "Usuario" )
return( .f. )
endif
if file( DRIVELOCAL + "\wcta.ex_" )
if fErase( DRIVELOCAL + "\wcta.ex_" ) = -1
MsgInfo( "Favor borrar archivo de respaldo "+DRIVELOCAL + "\wcta.ex_", "Usuario" )
return( .f. )
endif
endif
MsgInfo( "Actualización Sistema Win-Facturación" + CRLF + "Versión "+cValor )
if fRename( DRIVELOCAL + "\wcta.exe", DRIVELOCAL + "\wcta.ex_" ) = -1
Msginfo( "Error al actualizar"+CRLF+"Cierre todos las ventanas del sistema"+CRLF+CRLF+ "si persiste este error reinicie la maquina", "usuario" )
return( .f. )
endif
Usuario := Alltrim( Usuario )
lExe := .f.
MsgRun( "Actualizando aplicación..", "Espere..", ;
{ || lExe := CopyFile( PATHSERVER + "\wcta.exe",;
DRIVELOCAL + "\wcta.exe", .f. ) } )
if lExe //sa ha copiado correctamente
oIni := TIni():New( DRIVELOCAL + "\wInvent.Ini" )
oIni:Set( "Version", "Version", cValor )
oIni:Set( "Creado", "Programador", "Patricio Avalos Aguirre" )
oIni:Set( "Creado", "Email", "patricio_avalos_aguirre@hotmail.com" )
oIni:Set( "Creado", "Copyright(c)", "2005" )
MsgInfo( "Actualización se ha realizado con éxito" + CRLF + CRLF +;
"Vuelva a ejecutar el sistema", "Agrotec Ltda." )
fErase( DRIVELOCAL + "\wcta.ex_" )
else
if file( DRIVELOCAL + "\wcta.exe" )
fErase( DRIVELOCAL + "\wcta.exe" )
endif
fRename( DRIVELOCAL + "\wcta.ex_", DRIVELOCAL + "\wcta.exe" ) //volvemos el resplado a su origen
MsgInfo( "Error Al actualizar!!"+ CRLF + CRLF + "EXE Error" + CRLF + CRLF + ;
"Comuniquese con Patricio Avalos Aguirre"+CRLF+"Email:patricio_avalos_aguirre@hotmail.com", "Actualización" )
endif
Return( .t. )
//-----------------------------------------------------------------------------------------------------
//no recuerdo el autor de esta funcion, pero no es mía
static function CopyFile( cORIGEN, cDestino, lBorrar )
local cBuffer, fIfile, fOfile, nNumRead
DEFAULT lBorrar := .F.
#DEFINE BUF_SIZE 1024
cBuffer := SPACE(BUF_SIZE)
fIfile := FOPEN(cORIGEN)
IF FERROR() != 0
MsgStop("Error no se ha podido abrir el fichero "+ CRLF+ CRLF + cORIGEN )
return( .f. )
ENDIF
fOFile := LCreat( cDestino,0 )
IF FERROR() != 0
MsgStop("Error no se ha podido crear el fichero "+CRLF+cDESTINO)
FCLOSE(fIFile)
return( .f. )
ENDIF
nNumRead := FREAD(fIfile,@cBuffer,BUF_SIZE)
DO WHILE nNumRead == BUF_SIZE
FWRITE(fOfile, cBuffer, BUF_SIZE)
nNumRead := FREAD(fIFile,@cBuffer,BUF_SIZE)
ENDDO
FWRITE(fOfile, cBuffer, nNumRead)
FCLOSE(fIFile)
FCLOSE(fOFile)
IF lBorrar
FERASE(cORIGEN)
ENDIF
return( .t. )
//------------------------------------------------------------------------------------------------
[/code:bbiansrx]
Espero que te sirva,
Saludos
Patricio
[u:bbiansrx]La Serena, Chile[/u:bbiansrx]
|
Abandonar la aplicacion y correr otra
|
Patricio: Gracias por tus atenciones, tu proceso es muy similar al que estaba desarrollando y me diste buenos tips.
Maestro Flores: El secreto fue la funcion: PostQuitMessage(0) era lo que realmente necesitaba, eres un genio, no se que haces en otros lados con tus experimentos, tu mision en la vida es quedarte con nosotros.
P.D.: Con todo los tips que me dieron esto ya funciono, pero les paso otro, para que funcione correctamente todo esto es necesario que al inicio del exe al que se llama, se coloque un MSGINFO() pues al parecer requiere hacer una pausa para que se termine de cerrar el EXE de donde fue llamado.
'chas gracias
|
Abandonar la aplicacion y correr otra
|
[quote="RodolfoRBG":2wq8hckb]Patricio: Gracias por tus atenciones, tu proceso es
(...) se coloque un MSGINFO() pues al parecer requiere hacer una pausa para que se termine de cerrar el EXE de donde fue llamado.
[/quote:2wq8hckb]
Rodolfo se no quieres nadie visual en inicio del EXE llamado cambia msginfo a SysWait( nSeconds ).
Saludos
Maurilio
|
Abas na Lateral da Dialog ????
|
Bom Dia,
Qual Classe eu uso para colocar Abas (Folder) na Lateral de uma Dialog, ou na parte inferior dela ?
@braços Ale
|
Abas na Lateral da Dialog ????
|
Olá!
Abas na lateral do folder eu nunca tentei, creio que com a classe TFolder modificada pelo Rossine é possível, mas não tenho certeza.
Com relação àqueles de rodapé, existe a classe TTabs, dê uma olhada em TestTabs.prg e TestTab2.prg na sua pasta Samples do FiveWin.
[ ]'s
Maurilio
|
Abas na Lateral da Dialog ????
|
Amigos
Sin autor:
[code:ufnd82az]
*****************************************************************************
********************** Funciones útiles en Harbour & FWH ********************
********************** 10ª parte ********************************************
#include "FiveWin.ch"
#define TFOLDANG_000 1
#define TFOLDANG_090 2
#define TFOLDANG_180 3
#define TFOLDANG_270 4
#define OPAQUE 0
#define TRANSPARENT 1
#define CLR_AZULADITO_008 RGB( 255-016-008, 255-016-008, 255-016 )
#define COLOR_WINDOW 5 // window background // ver "WColors.ch"
#define CS_DBLCLKS 8 // ver "Windows.prg"
static oWindow
FUNCTION uFoldAng_test()
local oFoldAng1, oFoldAng2, oFoldAng3, oFoldAng4
local b1Action, b2Action, b3Action, b4Action
local acItems1 := { "Gargantilla", "Pendiente", "Sortija", "Pulsera" }
local acItems2 := { "Solitario", "Sello", "Cruces", "Colgante", "Varios" }
local acItems3 := { "Primera", "Segunda", "3ª" }
local acItems4 := { "1ª", "Segunda", "3ª", "Última" }
local aLetras1 := { "G", "P", "S", "V" }
local aLetras2 := { "O", "E", "C", "L", "X" }
local anColors1, anColors2, anColors3, anColors4
local nPenPixels := 002
local n1Inclin := TFOLDANG_000
local n2Inclin := TFOLDANG_270
local n3Inclin := TFOLDANG_180
local n4Inclin := TFOLDANG_090
local n1ItemInic // predeterminadamente, vale 1
local n2ItemInic := 5
local n3ItemInic := 2
local n4ItemInic := 3
local nAltoFolde := 023
local nTop1 := 047
local nLeft1 := 100
local nBottom1 := nTop1 + nAltoFolde - 1
local nRight1 := nLeft1 + 404
local nTop2 := nTop1 + nAltoFolde
local nLeft2 := nRight1
local nBottom2 := 517
local nRight2 := nLeft2 + nAltoFolde - 1
local nTop3 := nBottom2
local nLeft3 := nLeft1
local nBottom3 := nBottom2 + nAltoFolde
local nRight3 := nRight1
local nTop4 := nTop1 + nAltoFolde
local nLeft4 := nLeft1 - nAltoFolde
local nBottom4 := nBottom2
local nRight4 := nLeft1
DEFINE WINDOW oWindow ;
TITLE "Almacén de Joyas"
oFoldAng1 := TFoldAng():New( nTop1, nLeft1, ;
nBottom1, nRight1, ;
n1ItemInic, n1Inclin, ;
acItems1, anColors1, ;
b1Action, oWindow )
oFoldAng1:nPenPix := nPenPixels
oFoldAng1:nClrLine := CLR_CYAN
oFoldAng1:bAction := {| Self | ::oWnd:cTitle := ;
cTitle12( oFoldang1, oFoldang2, aLetras1, acItems1, aLetras2, acItems2 ) ;
}
oFoldAng2 := TFoldAng():New( nTop2, nLeft2, ;
nBottom2, nRight2, ;
n2ItemInic, n2Inclin, ;
acItems2, anColors2, ;
b2Action, oWindow )
oFoldAng2:nPenPix := nPenPixels
oFoldAng2:bAction := {| Self | ::nClrLine := ::nRgbCicl(), ;
::oWnd:cTitle := ;
cTitle12( oFoldang1, oFoldang2, aLetras1, acItems1, aLetras2, acItems2 ) ;
}
oFoldAng3 := TFoldAng():New( nTop3, nLeft3, ;
nBottom3, nRight3, ;
n3ItemInic, n3Inclin, ;
acItems3, anColors3, ;
b3Action, oWindow )
oFoldAng3:bAction := {| Self | ::nClrLine := ::nRgbCicl() ;
}
oFoldAng4 := TFoldAng():New( nTop4, nLeft4, ;
nBottom4, nRight4, ;
n4ItemInic, n4Inclin, ;
acItems4, anColors4, ;
b4Action, oWindow )
oFoldAng4:bAction := {| Self | ::nClrLine := ::nRgbCicl() ;
}
ACTIVATE WINDOW oWindow ;
MAXIMIZED
RETURN NIL
//
static FUNCTION cTitle12( oFoldang1, oFoldang2, aLetras1, acItems1, ;
aLetras2, acItems2 )
local c := aLetras1[ oFoldang1:nOption ] + " : " + acItems1[ oFoldang1:nOption ]
c += " / "
c += aLetras2[ oFoldang2:nOption ] + " : " + acItems2[ oFoldang2:nOption ]
RETURN c
///////////////////////////////////////////////////////////////////////////
CLASS TFoldAng FROM TControl
CLASSDATA lRegistered AS LOGICAL
DATA bAction
DATA acItems, anWidthPix, anArcDegred, anColors
DATA nOption, nItem, ;
nClrSiSele, nClrBkSele, nClrNoSele, nClrLine, ;
nInclin, nDegreds, ;
nPenPix
METHOD New( nTop, nLeft, nBottom, nRight, ;
nOption, nInclin, ;
acItems, anColors, ;
bAction, oWnd ) CONSTRUCTOR
METHOD Register( nClsStyle )
METHOD nHeight() INLINE ::nBottom - ::nTop - 1
METHOD nWidth() INLINE ::nRight - ::nLeft - 1
METHOD LButtonDown( nRow, nCol, nKeyFlags )
METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaint(), 0
METHOD Paint()
METHOD PaintItem()
METHOD nTopTxt()
METHOD nLeftTxt()
METHOD nLeftItem()
METHOD nRightItem()
METHOD nRgbCicl()
METHOD GiraFont( nArcDegred )
METHOD Length()
ENDCLASS
METHOD New( nTop, nLeft, nBottom, nRight, ;
nOption, nInclin, ;
acItems, anColors, ;
bAction, oWnd ) CLASS TFoldAng
local n, nAncho
local cTitle, cMsg
DEFAULT nTop := 012, nLeft := 420, ;
nBottom := 400, nRight := 451
DEFAULT nOption := 1, ;
nInclin := TFOLDANG_270
If nInclin < TFOLDANG_000 .or. nInclin > TFOLDANG_270
cTitle := 'TFoldAng():New( nTop, nLeft, nBottom, nRight, ' + ;
'nOption, nInclin, acItems, anColors, bAction, oWnd )'
cMsg := 'Parámetro nInclin con valor incorrecto:' + Str( nInclin )
MsgStop( cMsg, cTitle )
QUIT ///
End
DEFAULT acItems := { "Uno", "Dos", "Tres" }, ; // no funcionan los "&"
anColors := {}
DEFAULT bAction := {| Self | Tone( 234, 1 ) }
DEFAULT oWnd := GetWndDefault()
::nPenPix := 1
::nInclin := nInclin
::nClrNoSele := CLR_HGRAY
::nClrSiSele := CLR_WHITE
::nClrBkSele := CLR_HGRAY
::nClrLine := CLR_CYAN
::nTop := nTop
::nLeft := nLeft
::nBottom := nBottom
::nRight := nRight
::nOption := nOption
::nItem := 1 // el ítem que se está pintando
::acItems := acItems
::anArcDegred := { 000, 090, 000, 270 }
::anColors := anColors
::anWidthPix := {}
::bAction := bAction
::oWnd := oWnd
::nStyle := nOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP )
::nDegreds := ::anArcDegred[ ::nInclin ]
::GiraFont( ::nDegreds )
If Empty( anColors )
aEval( acItems, {| cItem, nI | aAdd( ::anColors, ::nRgbCicl() ) } )
End
For n := 1 To Len( ::acItems )
nAncho := ::GetWidth( ::acItems[ n ], ::oFont ) + 060
aAdd( ::anWidthPix, nAncho )
Next
::Register()
If Empty( oWnd:hWnd )
oWnd:DefControl( Self )
Else
::Create()
oWnd:AddControl( Self )
End
RETURN Self
METHOD Register( nClsStyle ) CLASS TFoldAng
local oBrush
local hUser, nClrPane
DEFAULT ::lRegistered := .f.
If ::lRegistered
RETURN NIL ///
End
#ifdef __CLIPPER__
hUser := GetModuleHandle( "user.exe" )
#else
hUser := GetInstance()
#endif
DEFAULT nClsStyle := nOR( CS_VREDRAW, CS_HREDRAW ),;
nClrPane := GetSysColor( COLOR_WINDOW ), ;
oBrush := TBrush():New( , nClrPane )
nClsStyle := nOr( nClsStyle, CS_GLOBALCLASS, CS_DBLCLKS )
If GetClassInfo( hUser, ::ClassName()/*"TSAYTRANS"*/ ) == NIL
::lRegistered := RegisterClass( ;
::ClassName(), nClsStyle,,, hUser, 0, oBrush:hBrush )
Else
::lRegistered := .t.
End
oBrush:End()
RETURN NIL
METHOD Length() CLASS TFoldAng
local n, nLen := ::anWidthPix[ 1 ] // al menos hay un ítem, así que esto no produce un error
For n := 2 To Len( ::anWidthPix )
nLen += ::anWidthPix[ n ] - 020
Next
RETURN nLen
METHOD nLeftItem() CLASS TFoldAng
local n, nAux := 0
If ::nItem == 1
RETURN 0 ///
End
For n := 2 To ::nItem
nAux += ::anWidthPix[ n - 1 ] - 020
Next
RETURN nAux
METHOD nRightItem() CLASS TFoldAng
RETURN ( ::nLeftItem() + ::anWidthPix[ ::nItem ] )
METHOD nTopTxt() CLASS TFoldAng
local nPos
If ::nInclin = TFOLDANG_000
nPos := ( ::nHeight() - ::nGetChrHeight() ) / 2
ElseIf ::nInclin = TFOLDANG_090
nPos := ::nRightItem() - 030
ElseIf ::nInclin = TFOLDANG_180
nPos := ( ::nHeight() - ::nGetChrHeight() ) / 2
ElseIf ::nInclin = TFOLDANG_270
nPos := ::nLeftItem() + 030
End
RETURN nPos
METHOD nLeftTxt() CLASS TFoldAng
local nPos
If ::nInclin = TFOLDANG_000
nPos := ::nLeftItem() + 030
ElseIf ::nInclin = TFOLDANG_090
nPos := ( ::nWidth() - ::nGetChrHeight() ) / 2 + 001
ElseIf ::nInclin = TFOLDANG_180
nPos := ::nLeftItem() + 030
ElseIf ::nInclin = TFOLDANG_270
nPos := ( ::nGetChrHeight() + ::nWidth() ) / 2 + 001
End
RETURN nPos
METHOD nRgbCicl() CLASS TFoldAng
static nColor := CLR_GRAY ///
If nColor == CLR_BLACK
nColor := CLR_GRAY
ElseIf nColor == CLR_GRAY
nColor := CLR_BLUE
ElseIf nColor == CLR_BLUE
nColor := CLR_CYAN
ElseIf nColor == CLR_CYAN
nColor := CLR_RED
ElseIf nColor == CLR_RED
nColor := CLR_MAGENTA
ElseIf nColor == CLR_MAGENTA
nColor := CLR_GREEN
ElseIf nColor == CLR_GREEN
nColor := CLR_BROWN
ElseIf nColor == CLR_BROWN
nColor := CLR_BLACK ///
End
RETURN nColor
METHOD GiraFont( nArcDegred ) CLASS TFoldAng
local lReBuild := ( ValType( ::oFont ) = "O" )
If lReBuild
::oFont:End()
End
DEFINE FONT ::oFont ;
NAME "Arial" ;
SIZE 006, 013 ;
NESCAPEMENT nArcDegred * 10 // truco para que el texto salga tumbado (funciona sólo con fonts TrueType)
If lReBuild
::Refresh()
End
RETURN NIL
METHOD Paint() CLASS TFoldAng
local n, nLen := Len( ::acItems )
For n := 1 To nLen
::nItem := n
If n == ::nOption
if nLen == 1
Exit ///
end
Loop ///
End
::PaintItem()
Next
::nItem := ::nOption
::PaintItem()
RETURN NIL
METHOD PaintItem() CLASS TFoldAng // actúa en función de ::nItem ::nOption ::nInclin
local an2
local nColor := ::anColors[ ::nItem ]
local nWidth := ::nWidth()
local nHeight := ::nHeight()
local nTopTxt := ::nTopTxt()
local nLeftTxt := ::nLeftTxt()
local nLeftItem := ::nLeftItem()
local nRightItem := ::nRightItem()
local hDC := ::GetDC()
local hPen := CreatePen( PS_SOLID, ::nPenPix, nColor )
local hOldPen, nOldColor, hOldBrush, hOldFont, nOldMode, hBrush, hPenLine
local cPrompt := ::acItems[ ::nItem ]
If ::nItem = ::nOption
hBrush := CreateSolidBrush( ::nClrBkSele )
Else
hBrush := CreateSolidBrush( nColor )
End
If ::nInclin = TFOLDANG_000
an2 := { { nLeftItem , nHeight },;
{ nLeftItem + 4, nHeight - 2 },;
{ nLeftItem + 6, nHeight - 4 },;
{ nLeftItem + 7, nHeight - 7 },;
{ nLeftItem + 7, 7 },;
{ nLeftItem + 8, 4 },;
{ nLeftItem + 10, 2 },;
{ nLeftItem + 13, 0 },;
{ nRightItem - 13, 0 },;
{ nRightItem - 10, 2 },;
{ nRightItem - 8, 4 },;
{ nRightItem - 7, 7 },;
{ nRightItem - 7, nHeight - 7 },;
{ nRightItem - 6, nHeight - 4 },;
{ nRightItem - 4, nHeight - 2 },;
{ nRightItem , nHeight },;
{ nLeftItem , nHeight } ;
}
ElseIf ::nInclin = TFOLDANG_090
an2 := { { nWidth , nLeftItem },;
{ nWidth - 2, nLeftItem + 4 },;
{ nWidth - 4, nLeftItem + 6 },;
{ nWidth - 7, nLeftItem + 7 },;
{ 7, nLeftItem + 7 },;
{ 4, nLeftItem + 8 },;
{ 2, nLeftItem + 10 },;
{ 0, nLeftItem + 13 },;
{ 0, nRightItem - 13 },;
{ 2, nRightItem - 10 },;
{ 4, nRightItem - 8 },;
{ 7, nRightItem - 7 },;
{ nWidth - 7, nRightItem - 7 },;
{ nWidth - 4, nRightItem - 6 },;
{ nWidth - 2, nRightItem - 4 },;
{ nWidth , nRightItem },;
{ nWidth , nLeftItem } ;
}
ElseIf ::nInclin = TFOLDANG_180
an2 := { { nLeftItem , 0 },;
{ nLeftItem + 4, 2 },;
{ nLeftItem + 6, 4 },;
{ nLeftItem + 7, 7 },;
{ nLeftItem + 7, nHeight - 7 },;
{ nLeftItem + 8, nHeight - 4 },;
{ nLeftItem + 10, nHeight - 2 },;
{ nLeftItem + 13, nHeight },;
{ nRightItem - 13, nHeight },;
{ nRightItem - 10, nHeight - 2 },;
{ nRightItem - 8, nHeight - 4 },;
{ nRightItem - 7, nHeight - 7 },;
{ nRightItem - 7, 7 },;
{ nRightItem - 6, 4 },;
{ nRightItem - 4, 2 },;
{ nRightItem , 0 },;
{ nLeftItem , 0 } ;
}
ElseIf ::nInclin = TFOLDANG_270
an2 := { { 0, nLeftItem },;
{ 2, nLeftItem + 4 },;
{ 4, nLeftItem + 6 },;
{ 7, nLeftItem + 7 },;
{ nWidth - 7, nLeftItem + 7 },;
{ nWidth - 4, nLeftItem + 8 },;
{ nWidth - 2, nLeftItem + 10 },;
{ nWidth , nLeftItem + 13 },;
{ nWidth , nRightItem - 13 },;
{ nWidth - 2, nRightItem - 10 },;
{ nWidth - 4, nRightItem - 8 },;
{ nWidth - 7, nRightItem - 7 },;
{ 7, nRightItem - 7 },;
{ 4, nRightItem - 6 },;
{ 2, nRightItem - 4 },;
{ 0, nRightItem },;
{ 0, nLeftItem } ;
}
End
hOldBrush := SelectObject( hDC, hBrush )
hOldPen := SelectObject( hDC, hPen )
PolyPolygon( hDC, an2 ) ///
SelectObject( hDC, hOldPen )
DeleteObject( hPen )
SelectObject( hDC, hOldBrush )
DeleteObject( hBrush )
hPenLine := CreatePen( PS_SOLID, ::nPenPix, ::nClrLine )
hOldPen := SelectObject( hDC, hPenLine )
If ::nInclin = TFOLDANG_000
MoveTo( hDC, 000, nHeight )
LineTo( hDC, nWidth, nHeight )
ElseIf ::nInclin = TFOLDANG_090
MoveTo( hDC, nWidth, 000 )
LineTo( hDC, nWidth, nHeight )
ElseIf ::nInclin = TFOLDANG_180
MoveTo( hDC, 000, 000 )
LineTo( hDC, nWidth, 000 )
ElseIf ::nInclin = TFOLDANG_270
MoveTo( hDC, 000, 000 )
LineTo( hDC, 000, nHeight )
End
SelectObject( hDC, hOldPen )
DeleteObject( hPenLine )
nOldMode := SetBkMode( hDC, TRANSPARENT ) // TextOut() respetará el color de background
hOldFont := SelectObject( hDC, ::oFont:hFont )
If ::nItem = ::nOption
nOldColor := SetTextColor( hDC, ::nClrSiSele )
Else
nOldColor := SetTextColor( hDC, ::nClrNoSele )
End
TextOut( hDC, nTopTxt, nLeftTxt, cPrompt ) ///
SetTextColor( hDC, nOldColor )
SelectObject( hDC, hOldFont )
SetBkMode( hDC, nOldMode )
::ReleaseDC()
RETURN NIL
METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TFoldAng
local n, nLen := Len( ::acItems )
::SetFocus()
IF ::nInclin = TFOLDANG_000
For n := 1 To nLen
::nItem := n // para que ::nLeftItem() y ::nRightItem() devuelvan los valores correctos
If nCol > ::nLeftItem() .and. nCol < ::nRightItem() ///
::nOption := n
::Refresh()
if ::bAction != NIL
Eval( ::bAction, Self )
Exit ///
[/code:ufnd82az]
|
Abas na Lateral da Dialog ????
|
Rochinha,
o METHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TFoldAng
Nao esta faltando alguma coisa no final dele ?
Ou eh só fechar os If's ?
Maurilio;
obrigado pela dica.
@braços ale
|
Abas na Lateral da Dialog ????
|
Amiguinhos
Desculpe-me
Codigo completo em <!-- m --><a class="postlink" href="http://www.shoppmarketing.com/forum/fhfoldan.zip">http://www.shoppmarketing.com/forum/fhfoldan.zip</a><!-- m -->
|
Abas na Lateral da Dialog ????
|
Obrigado Rochinha,
Deu certo.
E tem como colocar uma TabControl, em um Browse, como a FSDI ?
@braços Ale
|
Ability to E-mail PDF from Printer Preview
|
Hello,
Is it possible to e-mail a PDF from the printer preview function? If so, is there an example available.
Thank you,
|
Ability to E-mail PDF from Printer Preview
|
Darrell,
With latest FWH preview, there are some buttons to export to PDF and also send the PDF via email.
|
Ability to E-mail PDF from Printer Preview
|
Thank you for your quick response! I will look in to it.
|
Abir web y cerrar web desde fivewin
|
Estimado Colegas
Alguien tiene algun ejemplo sencillo para abrir una pagina web
desde fivewin y luego cerrarla tambien desde fivewin
Gracias
Fabian
<!-- e --><a href="mailto:databaselab2002@yahoo.com.ar">databaselab2002@yahoo.com.ar</a><!-- e -->
|
Abir web y cerrar web desde fivewin
|
Fabian,
Si te refieres a mostrarla desde tu aplicación, entonces necesitas FWH 32 bits. Tienes un ejemplo en samples\WebExp.prg.
Si te refieres sólo a tomar sus datos, pero no a visualizarlos, revisa WebClien.prg.
|
Abm con TDataBase ( Resuelto )
|
Colegas,
Estoy trabajando con esta clase pero no me doy cuenta como agregar ( append ) o modificar un registro. Este código no hace nada
[code=fw:36ftbfdb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">Method</span> Guardar<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">Class</span> AbmComercio<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /> Memvar o<br /> <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lOnOff</span> <span style="color: #000000;">)</span><br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">Append</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> End <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">codigo</span> := ::<span style="color: #000000;">cCodigo</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">compartido</span> := ::<span style="color: #000000;">cCompartido</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">nombre</span> := ::<span style="color: #000000;">cNombre</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">r_social</span> := ::<span style="color: #000000;">cR_social</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">nrocuit</span> := ::<span style="color: #000000;">cNrocuit</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">respons</span> := ::<span style="color: #000000;">cRespons</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">domicilio</span> := ::<span style="color: #000000;">cDomicilio</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">puerta</span> := ::<span style="color: #000000;">cPuerta</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">manzana</span> := ::<span style="color: #000000;">cManzana</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">barrio</span> := ::<span style="color: #000000;">cBarrio</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">localidad</span> := ::<span style="color: #000000;">cLocalidad</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">c_p</span> := ::<span style="color: #000000;">cC_p</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">telefono</span> := ::<span style="color: #000000;">cTelefono</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">celular</span> := ::<span style="color: #000000;">cCelular</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">rendicion</span> := ::<span style="color: #000000;">cRendicion</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">supervisor</span> := ::<span style="color: #000000;">cSupervisor</span> <br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">observac</span> := ::<span style="color: #000000;">cObservac</span> <br /> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> ::<span style="color: #000000;">lOnOff</span> <span style="color: #000000;">)</span><br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">Else</span><br /> o : <span style="color: #000000;">oComercio</span> : <span style="color: #000000;">Updated</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> End<br /> <span style="color: #00C800;">Return</span> <span style="color: #000000;">0</span> <br /> </div>[/code:36ftbfdb]
La variable ::lOnOff me indica si es un alta o una modificación. Que estoy haciendo mal? Muchas gracias!
Saludos
|
Abm con TDataBase ( Resuelto )
|
+
|
Abm con TDataBase ( Resuelto )
|
El objeto TDataBase es oComercio, si ?
|
Abm con TDataBase ( Resuelto )
|
Gracias a ambos por contestar, efectivamente Antonio, ese es el objeto TDataBase. Use el método append() y funcionó. Los métodos Blank() y Append() son equivalentes? El método Updated() que función cumple? Gracias nuevamente
Saludos
|
Abm con TDataBase ( Resuelto )
|
Modify current record
[code=fw:23fugnps]<div class="fw" id="{CB}" style="font-family: monospace;">oDbf:<fieldname> := <newvalue><br />....<br />oDbf:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> </div>[/code:23fugnps]
Append new record
[code=fw:23fugnps]<div class="fw" id="{CB}" style="font-family: monospace;">oDbf:<span style="color: #000000;">Blank</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br />oDbf:<fieldname> := <newvalue><br />...<br />oDbf:<span style="color: #000000;">Save</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span></div>[/code:23fugnps]
|
Abm con TDataBase ( Resuelto )
|
Append añade, Blank "limpia" el registro (lo vacia), Updated() devuelve verdadero o falso, según si la DBF ha sido actualizada
|
Abm con TDataBase ( Resuelto )
|
Nuchas gracias Antonio por tu explicación.
Saludos
|
Abm con Twbrowse de Hernan
|
Buenas Tardes
Alguien tendra un ejemplo de un Abm con el twbrowse de hernan ?
Saludos y gracias
|
Abm con Twbrowse de Hernan
|
Wilson:
El wBrowse de Hernán no es mas que el wBrowse de FW, extendido (en mi opinión). Por lo que lo podés construir basado en tus ateriores ABM.
Un ejemplo sencillo sería
....
@0,0 LISTBOX ::oLst ;
FIELDS ... ;
HEADER ... ;
COLSIZES ...
::oLst:bKeyDown := {|nK| if( nK==VK_INSERT, ::ABMs( .T. ) // Agrega
if( nK==VK_RETURN, ::ABMs( .F. ) // Edita
if( nK==VK_DELETE, ::Borra( .T. ) } // Borra
....
METHOD ABMS( lNuevo ) CLASS ...
if lNuevo
// defino los campos a introducir
else
// edito los campos
end
DEFINE DIALOG oDlg ...
@... GET ... OF oDlg
...
@... DEFINE BUTTON PROMPT "Guardar" ACTION ...
@... DEFINE BUTTON PROMPT "Cancelar" ACTION oDlg:End()
ACTIVATE DIALOG oDlg
En el boton Guardar y, luego de los pasos de volcar a disco los datos, agrego ::oLst:Refresh de manera de visualizarlo en el Listbox (wBrowse)
espero te sirva
Saludos
|
Abnormal Program Termination
|
Un cordial saludo. No entiendo, porque razón me sale dicho mensaje al pulsar la tecla insert sobre un xbrowse. Sin embargo, en algunos momentos pasa y en otros no.
|
Abnormal Program Termination
|
Hola.
¿Qué mensaje te aparece? Imprime por favor la pantalla para verlo.
|
Abnormal Program Termination (->Antonio)
|
With new FWH- and Harbour version i becomes in some cases the message "Abnormal Program Termination" or the program hangs. But the same part of the program on next start is OK. I dont know, this behavior is from FWH or from Harbour.
|
Abnormal Program Termination (->Antonio)
|
Günther,
Could you build it using xHarbour so we may know if it is a compiler or a FWH issue ? thanks
|
Abnormal Program Termination (->Antonio)
|
I will test this. Is the make file and libs for xharbour the same as from harbour. (paths self-explanatory!)
|
Abnormal Program Termination (->Antonio)
|
Günther,
Please review FWH\samples\buildx.bat
|
Abnormal Program Termination (->Antonio)
|
Antonio, now in xharbour i see many errors "Call to function hb_xvmExitProc with no prototype in function ....".
Whats wrong in my make?
|
Abnormal Program Termination (->Antonio)
|
Günther,
What xHarbour version and build are you using ?
Where have you downloaded it from ?
|
Abnormal Program Termination (->Antonio)
|
Antonio, the xharbour-version you provided with 9.08!
(build 1.2.1 (Simplex) (Rev. 6406)
|
Abnormal Program Termination (->Antonio)
|
Günther,
Are you able to reproduce that error building a FWH\samples PRG using xharbour ? thanks
|
Abnormal Program Termination (->Antonio)
|
Antonio, I found the bad thing!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
In my program i compile and link extra the modified xbrowse.prg with the last changes. If I not linked xbrowse.prg all is ok!
And a other lib should linked in the program: codepage.lib. In your makefile this lib is not available!
|
Abnormal Program Termination (->Antonio)
|
Günther,
Is the problem already solved ?
|
Abnormal Program Termination (->Antonio)
|
Antonio, it seems that the problem with "abnormal...." is not present with Xharbour!
|
Abnormal Program Termination (->Antonio)
|
Antonio, the problem with the hb_xvmExitProc is ONLY, if the xharbour -gc3 command line option is activated and i compile also the xbrowse.prg to my app! In harbour is this option ok.
|
Abnormal Program Termination (->Antonio)
|
Günther,
Why do you think that report.ch causes the trouble and not the modified xbrowse.prg ?
|
Abnormal Program Termination (->Antonio)
|
Antonio, see: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16592&p=86118#p86118">viewtopic.php?f=3&t=16592&p=86118#p86118</a><!-- l -->
|
Abnormal program termination
|
Antonio?
The error is present only when using Msgrun(...) in the bAction from the timer!
This test can you show the problem! Please type in get any character and wait for reaction.
[b:3jsov51n]Antonio, in some rare cases the program terminates not but in the get suddenly comes chinese letters!
[/b:3jsov51n](Unicode?)[code=fw:3jsov51n]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> abnormal<span style="color: #000000;">(</span>oWnd<span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> oDlg, oTimer , oSay , cSay := <span style="color: #ff0000;">" "</span> , oGet , cGet := space<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span> , cBuffer<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">1000</span> <span style="color: #0000ff;">OF</span> oWnd<br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">FONT</span> oFont_normal<br /> @ <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> cGet<br /> oGet:<span style="color: #000000;">bPostKey</span> := <span style="color: #000000;">{</span>|x,buffer|if<span style="color: #000000;">(</span>empty<span style="color: #000000;">(</span>buffer<span style="color: #000000;">)</span>,<span style="color: #00C800;">NIL</span>,;<br /> <span style="color: #000000;">(</span>oTimer:<span style="color: #000000;">bAction</span>:=<span style="color: #000000;">{</span>||NIL<span style="color: #000000;">}</span>,;<br /> cBuffer := buffer,;<br /> oTimer:<span style="color: #000000;">bAction</span>:=<span style="color: #000000;">{</span>||msgrun<span style="color: #000000;">(</span><span style="color: #ff0000;">"Test"</span>,<span style="color: #ff0000;">"Test"</span>,<span style="color: #000000;">{</span>||<span style="color: #000000;">(</span>cSay := cBuffer, oSay:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,oTimer:<span style="color: #000000;">deactivate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span>,; <br /> oTimer:<span style="color: #0000ff;">activate</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span><span style="color: #000000;">}</span><br /> @ <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cSay <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">15</span><br /> @ <span style="color: #000000;">3</span>,<span style="color: #000000;">2</span> SBUTTON <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&End"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">15</span> <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3jsov51n]I have tested on WIN 10 and XP!
|
Abnormal program termination
|
Antonio, i found the following:
If at begin of the app FW_SetUnicode( .T. ), then the error goes away! In the source of msgrun() you are switch to FW_SetUnicode( .T. ) and return to the old status. This could be the reason!???
|
Abnormal program termination
|
Günther,
Yes, it could be related.
In FWH we have done a tremendous work to support unicode and non unicode at the same time. Tipically an app is unicode or it is not.
A FWH app can be unicode and non unicode at the same time, thats why I think it may be related.
|
Abnormal program termination
|
Antonio, for now i link a msgrun.prg in with commented calls to FW_setunicode().
|
Abnormal program termination
|
Thanks.
We commented out too from the next release.
Switching of Unicode setting during runtime is not yet supported though we originally wanted to.
|
Abnormal programa termination
|
Hola buenos dias grupo, como lo dice el asunto Abnormal programa termination
En una parte del programa y solo en una pc sale este error y no me da ningun .log no tengo data de nada.
Osea no se por donde buscar el origen de el por que se cierra la aplicacion dando este error.
Cualquier ayuda se los agradezco
Saludos
Marcelo
|
Abnormal programa termination
|
Holá, cual és la memória del computadora? Windows 10? Se si, minimo: 8 Gbs de memória ram. saludos.
Si usas la HBCOMM.LIB para lector de puerto serial, use el comando ISWORKING() para controlar el puerto.
|
Abnormal programa termination
|
Hola Win 10 4Gb tiene
Gracias
|
Abnormal programa termination
|
Hola buenas noches, aun sigo con este error raro para mi, porque no deja huellas, osea no deja archivo.log con lo cual no se en que linea se origina el error.
Lo probe en mi pc que tiene 16Gb de RAM y tambien me da error, no siempre.
Saludos
|
Abnormal programa termination
|
Debes proporcionar más información
Versiones de harbour/xharbour, borland,fwh
Para tener una visión más amplia
Enviado desde mi FIG-LX3 mediante Tapatalk
|
Abnormal programa termination
|
Hola José buen día, gracias por responder.
Aqui la info:
FWH April/May 2019
Harbour 3.2.0dev (r1801051438)
BCC7.0
Saludos
Marcelo
|
Abnormal programa termination
|
Muestra el que estás haciendo, y si tien un WHILE... ENDDO infinito, sin el SysRefresh()
|
Abnormal programa termination
|
Lo primero, intenta re-compilar todo
Lo segundo forzar el linkeado de tu aplicación usando bcc73, yo tenia algunos problemas parecidos y se solucionaron con lo anterior.
Nota: yo tengo una versión inferior a la tuya (Es de fines del 2018) y genero mis aplicaciones con bcc73 sin problemas.
Saludos
|
Abnormal programa termination
|
Gracias Jose por responderme, voy a hacer eso que tu me dices.
De donde descargo la version 7.3 de BCC?
Saludos
Marcelo
|
Abnormal programa termination
|
pasarme un correo para mandarte la liga
|
Abnormal programa termination
|
roggerimarcelo @ gmail.com
|
Abnormal programa termination
|
ya tienes el linc en tu correo
Saludos
|
Abnormal programa termination
|
Muchas gracias Jose
Saludos
Marcelo
|
Abnormal programa termination
|
Mira aqui:
[url:2tcbi9tj]http://forums.fivetechsupport.com/viewtopic.php?f=16&t=33542[/url:2tcbi9tj]
Saludos.
|
Abnormal programa termination
|
Ok muchas gracias
|
About ""&"" character in Resources Dialogs
|
The character "&" not shown properly in dialogs titles when use them from resources. Any ideas.
FWH Ver 2.6 September 2005
Thanks in advance
Dionisis
|
About ""&"" character in Resources Dialogs
|
Works fine for me:
[code:12m6yu1j]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg;
TITLE "This is a & test"
@ 1, 1 BUTTON "&Close" ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL[/code:12m6yu1j]
EMG
|
About ""&"" character in Resources Dialogs
|
Ops. This is from resources (works fine either):
[code:m5lgf9uv]#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oBut
DEFINE DIALOG oDlg;
RESOURCE "TEST"
REDEFINE BUTTON oBut PROMPT "&Close";
ID 201 OF oDlg;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL[/code:m5lgf9uv]
[code:m5lgf9uv]TEST DIALOG 40, 27, 194, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "This is a & test"
FONT 8, "MS Sans Serif"
{
DEFPUSHBUTTON "&Close", 201, 12, 96, 50, 14
}[/code:m5lgf9uv]
EMG
|
About ""&"" character in Resources Dialogs
|
GoodMorning Enrico
The dialogs is contained into a dll it dosen't works for me but i live
without it. I changed it to onother setence. Many thanks for your code and your valued help to all of us.
Greetings from Greece
Dionisis
|
About : tracing GDI resources
|
Hello,
I noticed during intensiv testing GDI resources,
the Brushes called with :
[color=#FF0000:yeirwxh8]oLbx:SetBackGround( oBrush )[/color:yeirwxh8]
and in Folders :
[color=#FF0000:yeirwxh8]oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) ) [/color:yeirwxh8]
are added again and again to the List, after closing and reopening the Dialog.
A Test with a closed Dialog, still shows the Brushes from Browsers and Tabs :
[img:yeirwxh8]http://www.pflegeplus.com/pictures/gdi5.jpg[/img:yeirwxh8]
The Browser-Brush is defined once on top of the Application, for all Browser-Backgrounds inside the Dialog. [color=#FF0000:yeirwxh8]27[/color:yeirwxh8] Browsers are opened in 8 Folder-Pages like :
...
...
oLbx1 := TXBrowse():New( oFld:aDialogs[1] )
...
oLbx:SetBackGround( oBrush )
...
oLbx:CreateFromResource( 110 )
The Dialog includes a Folder with 8 Pages used like :
...
...
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT SetImages(oDlg,oFld)
RETURN NIL
// --------------------------
function SetImages(oDlg, oFld)
local oImageList
DEFINE IMAGELIST oImageList SIZE 16, 16
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oImageList:AddMasked( TBitmap():Define( "show",, oDlg ), nRGB( 192, 192, 192 ) )
oFld:SetImageList( oImageList )
return nil
|
About : tracing GDI resources
|
It is a known issue. After a dialog is closed, the brush / font is not released.
Please see the discussion
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16110&hilit=RELEASE+BRUSH&start=0">viewtopic.php?f=3&t=16110&hilit=RELEASE+BRUSH&start=0</a><!-- l -->
The issue is yet to be resolved.
|
About : tracing GDI resources
|
Thank You very much for the Information.
I tested with oBrush:nCount and the Counter shows 0 after closing the Dialog.
It means, the Informations in Function [color=#FF0000:15ew5w2f]CheckRes()[/color:15ew5w2f] are misleading.
Maybe we can check the Brush-Counter, before adding a Brush-Info to the aResources-Array ???
IF TRIM(aResources[n][1]) = "BRUSH" [color=#FF0000:15ew5w2f].and. ????[/color:15ew5w2f]
[code=fw:15ew5w2f]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> CheckRes<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">LOCAL</span> oDlg70, hDC, oBrw1, oBMP70, oBtn70 <br /><span style="color: #00C800;">LOCAL</span> n, a := <span style="color: #000000;">0</span>, b := <span style="color: #000000;">0</span>, c := <span style="color: #000000;">0</span>, d := <span style="color: #000000;">0</span>, aResNew := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><span style="color: #00C800;">LOCAL</span> oSAY1, oSAY2, oSAY3, oSAY4, oSAY11, oSAY12, oSAY13, oSAY14<br /><span style="color: #00C800;">LOCAL</span> aGrad1 := <span style="color: #000000;">{</span> <span style="color: #000000;">{</span> W_MOVE, W_COLOR1, W_COLOR2 <span style="color: #000000;">}</span>, ;<br /> <span style="color: #000000;">{</span> W_MOVE, W_COLOR2, W_COLOR1 <span style="color: #000000;">}</span> <span style="color: #000000;">}</span> <br /><span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> Len<span style="color: #000000;">(</span> aResources <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">IF</span> aResources<span style="color: #000000;">[</span> n, <span style="color: #000000;">2</span> <span style="color: #000000;">]</span> != <span style="color: #000000;">0</span><br /> AAdd<span style="color: #000000;">(</span> aResNew, <span style="color: #000000;">{</span> n, aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span>, aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">2</span><span style="color: #000000;">]</span>, aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">3</span><span style="color: #000000;">]</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> <span style="color: #B900B9;">// The GDI-Counter </span><br /> <span style="color: #00C800;">IF</span> TRIM<span style="color: #000000;">(</span>aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"BRUSH"</span><br /> a++<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> TRIM<span style="color: #000000;">(</span>aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"BMP"</span><br /> b++<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> TRIM<span style="color: #000000;">(</span>aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"FONT"</span><br /> c++<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">IF</span> TRIM<span style="color: #000000;">(</span>aResources<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span><span style="color: #000000;">)</span> = <span style="color: #ff0000;">"PAL"</span><br /> d++<br /> <span style="color: #00C800;">ENDIF</span><br /> <span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">NEXT</span><br />...<br />...<br /> </div>[/code:15ew5w2f]
Best Regards
Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
|
About : tracing GDI resources
|
Please try this code
[code=fw:3ar87sg3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br />func main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oDlg, oBrush, aCount := <span style="color: #000000;">{</span><span style="color: #000000;">}</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">STYLE</span> <span style="color: #0000ff;">CROSS</span><br /> AAdd<span style="color: #000000;">(</span> aCount, <span style="color: #000000;">{</span> <span style="color: #ff0000;">'After Creation'</span>, oBrush:<span style="color: #000000;">nCount</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">BRUSH</span> oBrush<br /> AAdd<span style="color: #000000;">(</span> aCount, <span style="color: #000000;">{</span> <span style="color: #ff0000;">'After Define Dialog'</span>, oBrush:<span style="color: #000000;">nCount</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">RIGHT</span> <span style="color: #0000ff;">CLICK</span> ;<br /> AAdd<span style="color: #000000;">(</span> aCount, <span style="color: #000000;">{</span> <span style="color: #ff0000;">'Inside Dialog'</span>, oBrush:<span style="color: #000000;">nCount</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> AAdd<span style="color: #000000;">(</span> aCount, <span style="color: #000000;">{</span> <span style="color: #ff0000;">'After Dlg Exit'</span>, oBrush:<span style="color: #000000;">nCount</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> oBrush:<span style="color: #000000;">End</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> AAdd<span style="color: #000000;">(</span> aCount, <span style="color: #000000;">{</span> <span style="color: #ff0000;">'After oBrush:End()'</span>, oBrush:<span style="color: #000000;">nCount</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #0000ff;">xbrowse</span><span style="color: #000000;">(</span> aCount <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:3ar87sg3]
Here is the result
[url=http://img525.imageshack.us/my.php?image=brushes.jpg:3ar87sg3][img:3ar87sg3]http://img525.imageshack.us/img525/4880/brushes.jpg[/img:3ar87sg3][/url:3ar87sg3]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.