Search found 87 matches: argv

Return to advanced search

Re: Mostrar / ocultar boton

Gustavo,

un control de un diálogo no tiene un handle válido de Windows hasta que no se activa el diálogo, por eso no te funciona

Puedes hacerlo asi:

REDEFINE BUTTON ::oBtns[ 2 ] ID 410 OF ::oDlg WHEN ! HB_ArgV( 1 ) == "desarrollo"
by Antonio Linares
Thu Jan 18, 2024 6:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mostrar / ocultar boton
Replies: 12
Views: 587

Mostrar / ocultar boton

Hola. Estoy intentando hacer esto:  IF ( HB_ArgV( 1 ) == "desarrollo" )      ::oBtns[2]:show()      ::oBtns[2]:baction := { || ::reset() }   ELSE      ::oBtns[2]:hi...
by goosfancito
Tue Jan 16, 2024 6:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Mostrar / ocultar boton
Replies: 12
Views: 587

Re: how to get "Name" of App ?

Yes, https://vivaclipper.wordpress.com/2014/02/26/hb_argv/ Example:      // If command line is :  C:\temp>test.exe p1 p2        ? HB_ArgV()     // C:\temp\test.exe        ? HB_ArgV( 0)   // C:\t...
by karinha
Sun Apr 16, 2023 12:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: how to get "Name" of App ?
Replies: 9
Views: 432

Error compiling libs

Hello , I've downloaded from GitHub mod_harbour ( with all sources ) and compiled it ( lib and module ) under Linux ( Ubuntu 20.04 ) . It seems not working correctly when running a simple prg because apache.prg probably has an error in this code: if Empty( GetEnv( "GATEWAY_INTERFACE" ) ) Q...
by giuliano
Tue Oct 18, 2022 3:14 pm
 
Forum: mod_harbour
Topic: Error compiling libs
Replies: 2
Views: 386

Re: many bug about local file/directory when name is utf8

GetModuleFileName() is not Unicode compatible. Please do not use it. Instead, use ExeName() or HB_ARGV(0).
by nageswaragunupudi
Thu May 27, 2021 4:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: many bug about local file/directory when name is utf8
Replies: 19
Views: 1401

Re: many bug about local file/directory when name is utf8

I will test point by point and answer one by one. b. GetModulefileName/cFilePath.... ExeName: #include "fivewin.ch"REQUEST HB_CODEPAGE_UTF8function Main()   HB_CDPSELECT( "UTF8" )   FW_SetUnicode( .t. )? "ExeName()", ExeName(), "HB_A...
by nageswaragunupudi
Thu May 27, 2021 3:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: many bug about local file/directory when name is utf8
Replies: 19
Views: 1401

Re: FWH 18.08: Enhancements to strings.prg

test.prg #include "fivewin.ch"procedure main() MsgInfo( i18n("Hello Word") )return  for generate the hil file d:\xharbour\bin\harbour test.prg -n -j.\i18n\en_US.hil for traslate hil file d:\xharbour\bin\hbdict .\i18n\en_US.hil es_NI.hil for edit ...
by carlos vargas
Tue Nov 13, 2018 7:54 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH 18.10: Enhancements to strings.prg
Replies: 19
Views: 5425

Re: Catching HB_CompileFromBuf() errors

... HB_CompileFromBuf() is declared in c:\harbour\src\compiler\hbcmplib.c and it makes this call: hb_compGenArgList( 2, hb_pcount(), &argc, &argv, &pIncItem, &pOpenFunc, &pMsgFunc ); Notice the 2. In hb_compGenArgList() we find this code:   if( pMsgFunc )   {      ...
by Antonio Linares
Mon Apr 02, 2018 3:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Catching HB_CompileFromBuf() errors
Replies: 1
Views: 871

Re: funciones de FWH y Harbour en un archivo .txt

__clsVerify(<nClassH>)-><acBrokenMessages>|Nil __objAddData(<oObject>,<cDataName>)->oObject __objAddInline(<oObject>,<cInlineName>,<bInline>)->oObject __objAddMethod(<oObject>,<cMethodName>,<nFuncPtr>)->oObject __objDelInline(&l...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5710

Re: funciones de FWH y Harbour en un archivo .txt

__clsVerify __objAddData __objAddInline __objAddMethod __objDelInline __objDelMethod __objDelMethod __objDerivedFrom __objGetMethodList __objGetValueList __objModInline __objModMethod __objSetValueList __Pack __Run __Zap AAdd Abs AChoice AClone ACopy ACos AddASCII AddMonth ADel ADir ADSBlob2File ADS...
by carlos vargas
Sat Oct 21, 2017 8:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5710

lectura de un DLL -

... en est ar :roll: ea. Calling CT-API Functions Esta es funcion en C #include <stdio.h> #include <ct_api.h> int main(int argc, char *argv[]) { char ret; unsigned short ctn; unsigned short pn; unsigned char sad; unsigned char dad; // REQUEST ICC unsigned char command[] = { 0x20, 0x12, ...
by Busmatic_wpb
Thu Aug 03, 2017 1:27 am
 
Forum: FiveWin para CA-Clipper
Topic: lectura de un DLL -
Replies: 5
Views: 2604

Re: Pasar parametro a INIT PROCEDURE

Inside the INIT procedure, please use HB_ArgV( 1 ), HB_ArgV( 2 ), etc to get the command line parameters. HB_ArgC() gives number of parameters.
by nageswaragunupudi
Mon Mar 06, 2017 12:59 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pasar parametro a INIT PROCEDURE
Replies: 2
Views: 386

Re: Lista Processi/Programmi in esecuzione

io ho un altro problema : #define NOME_PROGRAMMA_TITLE "STUDIO" IF ISEXERUNNING( CFILENAME( HB_ARGV( 0 ) ) ) MsgWait(NOME_PROGRAMMA_TITLE+" è già in esecuzione !","Attenzione") SHOWWINDOW( FINDWINDOW( 0, NOME_PROGRAMMA_TITLE ), 9 ) SETFOREGROUNDWINDOW( FINDWINDOW( 0, NO...
by Silvio.Falconi
Fri Feb 17, 2017 12:42 pm
 
Forum: All products support
Topic: Lista Processi/Programmi in esecuzione
Replies: 10
Views: 3387

Re: Lista Processi/Programmi in esecuzione

Ops !! Ho dovuto immediatamente togliere questo controllo ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) ) ...... poichè più di un cliente mi ha riferito che non riusciva a a lanciare in programma, in quanto tale funzione risultava già in esecuzione !! Eppure io ho fatto dei test su Windows XP, Windows 7 ...
by Romeo
Wed Feb 15, 2017 4:25 pm
 
Forum: All products support
Topic: Lista Processi/Programmi in esecuzione
Replies: 10
Views: 3387
Next

Return to advanced search