topic
stringlengths
1
63
text
stringlengths
1
577k
cliente remoto de ADS
saludos alguien tiene el axcw32.dll, se me daño y no lo puedo conseguir. saludos y gracias.. arnulfo.
cliente remoto de ADS
Si tienes instalado el ARC (advantage data archietch) en la carpeta donde lo instalaste viene. Si no lo tienes, instalalo. recuerda que tienes que tener el DLL para la version de Advantage que estes utilizando, por lo que no cualquier AXWCS32.DLL te funciona.
clip's
Llevo algunos años con FW. Siempre creo mis Dialogos con resources Workshop de Borlan y áhi dos estilos de dialog que nunca he tulizado porque no se para que sirven CLIP CHILDREN y CLIP SIBILINGS ¿Cuándo se utilizan? Si alguien se molesta en aclarme esos conceptos, gracias de antemano.
clip's
Así que busque por Internet. Y según parece. Clip Siblings: Solamente se usa para Ventanas Hijas. Clip Children: Se usa para Ventanas Madre o Principal. Saludos
clip's
Eso está muy bien, pero que efecto teinen sobre los dialogos. Gracias
clip's
Manu, WS_CLIPCHILDREN excluye el área ocupada por controles hijos al pintarse. WS_CLIPSIBLINGS es igual pero respecto a ventanas hijas, no a controles.
clip's
OK. AL FIN ME HE ENTERADO MUCHISIMAS GRACIAS
clipboard
Holas, viendo la clase TexcelScript de Viktor esta definida una variable quie instancia un objeto de la clase tClipBoard, pero dicha clase no esta. En referencia a ello, alguien tiene esa clase? por otra parte hay la posibilidad de guardar el clipboard en un archivo y luego recuperarlo nuevamente, el problema es que ti por ejemplo con la clase TExcel... copio una pagina grande, luego de cerrar el Excel sale un mensaje molestoso si se desea o no conservar la informacion en el clipboard, quiero ver la posibilidad de que ese mensaje no salga, si tienen alguna solucion? la podrian compartir. saludos Marcelo
clipboard
La clase TClipBoard() viene incluida en FW y para eliminar el mensajito usa lo siguiente ::oExcel:Set("DisplayAlerts", .F. ) [quote="Marcelo Via Giglio":1wsro5j6]Holas, viendo la clase TexcelScript de Viktor esta definida una variable quie instancia un objeto de la clase tClipBoard, pero dicha clase no esta. En referencia a ello, alguien tiene esa clase? por otra parte hay la posibilidad de guardar el clipboard en un archivo y luego recuperarlo nuevamente, el problema es que ti por ejemplo con la clase TExcel... copio una pagina grande, luego de cerrar el Excel sale un mensaje molestoso si se desea o no conservar la informacion en el clipboard, quiero ver la posibilidad de que ese mensaje no salga, si tienen alguna solucion? la podrian compartir. saludos Marcelo[/quote:1wsro5j6]
clipboard
Vikthor, tienes razon de la clase es de FW, y si con ::oExcel:Set("DisplayAlerts", .F. ) deja de molestarme el mensaje, pero al copiar la hoja no pasa los atributos de la misma, compia solo el texto, sin tipos, sin colores ni marcos ni nada, habra otra forma? Gracias Marcelo P.D. te busque en el msn
clipboard
tuobjeto: oSheet: PasteEspecial( xlPasteFormats ) [quote="Marcelo Via Giglio":1mrphq33]Vikthor, tienes razon de la clase es de FW, y si con ::oExcel:Set("DisplayAlerts", .F. ) deja de molestarme el mensaje, pero al copiar la hoja no pasa los atributos de la misma, compia solo el texto, sin tipos, sin colores ni marcos ni nada, habra otra forma? Gracias Marcelo P.D. te busque en el msn[/quote:1mrphq33]
clipboard
How copy a field of a record on clipboard and show which string I have on clipboard ?
clipboard
See samples\testclip.prg
clipboard
THANKS
clipboard
How do you get a ctrl c and ctrl v copy?
clipboard
>How do you get a ctrl c and ctrl v copy? They work for me. Can you provide an small sample showing the problem? James
clipboard
mine drops the right number. 123456 pastes as 12345.
clipboard
if you are using resources , add this to your resource ES_AUTOHSCROLL Hth Richard
clipboard
Thanks I'll give it a try.
clipboard
it is simply DEFINE CLIPBOARD oClp OF oApp():oDlg MENU oMenu POPUP 2007 .... MENUITEM "Copia il codice utente in memoria"; RESOURCE "SM_CLIP1"; ACTION oClp:SetText( (cDBF)->CLUSUARIO ) MENUITEM "Copia la password in memoria" ; RESOURCE "SM_CLIP2"; ACTION oClp:SetText( (cDBF)->CLCLAVE ) MENUITEM "Vedere la stringa in memoria" ; RESOURCE "SM_CLIP3"; ACTION GetSomeText(oClp) SEPARATOR ENDMENU ACTIVATE POPUP oMenu
clipboard
Harvey, >mine drops the right number. 123456 pastes as 12345. If your field length is 6 (for the above example) the problem may be an artifact caused by the way Clipper handles the cursor (which was carried over to (x)Harbour). The cursor will be after the 5 when the entire field is full, rather than after the 6 as one might expect. Richard's suggestion may solve it. James
clipdefs.h 80: Multiple declaration for 'WORD'
Que ficheros de cabecera usa Connection.c ? Puedes copiar Connection.c aqui ?
clipdefs.h 80: Multiple declaration for 'WORD'
Saludos, Estoy compilando BCC7 y Harbour 3.2 y se me presenta esto. Alguien sabe como solventar este error ? [b:2s56wwza]MAKE Version 5.41 Copyright (c) 1987, 2014 Embarcadero Technologies, Inc. c:\bcc7\BIN\bcc32 -X -w -g50 -j1 -tWM -d -a8 -OS -O2 -5 -c -DHB_OS_WIN_32_USED -DHB_GUI -DHB_API_MACROS -DHB_STACK_MACROS -DHB_FM_STATISTICS_OFF -Iinclude;c:\Harbour\include /nobj source\Connection.c Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. source\Connection.c: Error E2238 c:\Harbour\include\clipdefs.h 80: Multiple declaration for 'WORD' Error E2228 c:\Harbour\include\clipdefs.h 80: Too many error or warning messages *** 2 errors in Compile *** ** error 2 ** deleting obj\Connection.obj[/b:2s56wwza]
clipdefs.h 80: Multiple declaration for 'WORD'
include "extend.h" #include "Item.api" #if !defined( __HARBOUR__ ) #include <stdio.h> typedef void * ERRORP; #endif #include "FileSys.api" #if defined( __HARBOUR__ ) #include "HbUnDoc.api" #if !defined( __XHARBOUR__ ) #define HB_VM_STACK hb_stack #endif #define _eval ( &HB_VM_STACK.Return ) #else #include "C3UnDoc.api" #endif void DimeC( char * ); void DimeN( long ); char * _MyClType( int ); unsigned long MyFileLength( FHANDLE ); void _MyCToCl( char *, unsigned long ); void _MyDToCl( char * );
clipdefs.h 80: Multiple declaration for 'WORD'
Prueba a cambiar estas dos líneas: #include "extend.h" #include "Item.api" por: #include <hbapi.h>
clipdefs.h 80: Multiple declaration for 'WORD'
Corrijo [b:6ro2tfp4]Aun sigue aparecieron el error de WORD[/b:6ro2tfp4] Estoy migrando de xHarbour a Harbour 3.2
clipdefs.h 80: Multiple declaration for 'WORD'
copia aqui el contenido de "HbUnDoc.api"
clipdefs.h 80: Multiple declaration for 'WORD'
/* * $Id: hbundoc.api 14673 2010-06-03 14:48:23Z vszakats $ */ /* * Harbour Project source code: * Compatibility header file for undocumented C API functions * * Copyright 1999-2001 Viktor Szakats (harbour.01 syenar.hu) * www - <!-- m --><a class="postlink" href="http://harbour-project.org">http://harbour-project.org</a><!-- m --> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class="postlink" href="http://www.gnu.org/">http://www.gnu.org/</a><!-- m -->). * * As a special exception, the Harbour Project gives permission for * additional uses of the text contained in its release of Harbour. * * The exception is that, if you link the Harbour libraries with other * files to produce an executable, this does not by itself cause the * resulting executable to be covered by the GNU General Public License. * Your use of that executable is in no way restricted on account of * linking the Harbour library code into it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the GNU General Public License. * * This exception applies only to the code released by the Harbour * Project under the name Harbour. If you copy code from other * Harbour Project or Free Software Foundation releases into a copy of * Harbour, as the General Public License permits, the exception does * not apply to the code that you add in this way. To avoid misleading * anyone as to the status of such modified files, you must delete * this exception notice from them. * * If you write modifications of your own for Harbour, it is your choice * whether to permit this exception to apply to your modifications. * If you do not wish that, delete this exception notice. * */ /* DON'T USE THIS FILE FOR NEW HARBOUR C CODE */ #ifndef HB_UNDOC_API_ #define HB_UNDOC_API_ #include "clipdefs.h" #include "hbapifs.h" /* Undocumented CA-Cl*pper Extend API */ #define _reta hb_reta #define _pcount hb_pcount /* Undocumented CA-Cl*pper _cEval...() functions */ #define _cEval0 hb_evalBlock0 #define _cEval1 hb_evalBlock1 /* Undocumented CA-Cl*pper misc functions */ #define _getGrip hb_gcGripGet #define _getDrop hb_gcGripDrop /* Undocumented CA-Cl*pper TSupport API */ #define _tchdir hb_fsChDir #define _tchdrv hb_fsChDrv #define _tclose hb_fsClose #define _tcommit hb_fsCommit #define _tcreat hb_fsCreate #define _tctemp(p,a,b) hb_fsCreateTemp( p, ( BYTE * ) "", a, b ) #define _tcurdir hb_fsCurDir #define _tcurdrv hb_fsCurDrv #define _tdevraw hb_fsSetDevMode #define _terror hb_fsError #define _tisdevice hb_fsIsDevice #define _tisdrv hb_fsIsDrv #define _tlock hb_fsLock #define _tlseek hb_fsSeek #define _tmkdir hb_fsMkDir #define _topen hb_fsOpen #define _tread hb_fsRead #define _trename hb_fsRename #define _trmdir hb_fsRmDir #define _tunlink hb_fsDelete #define _twrite hb_fsWrite #define _txopen hb_fsExtOpen /* Undocumented CA-Cl*pper support functions */ #define _bset memset #define _bmove memmove #define _bcopy memcpy #define _lcopy memcpy #define _ncopyuc hb_strncpyUpper #define _ncopylc hb_strncpyLower #define _bcmp memcmp #define _bscan(p,cnt,c) memchr( p, c, cnt ) #endif /* HB_UNDOC_API_ */
clipdefs.h 80: Multiple declaration for 'WORD'
Alguna pista?
clipdefs.h 80: Multiple declaration for 'WORD'
Pon esto antes de cualquier include: [code=fw:w3tr8fk6]<div class="fw" id="{CB}" style="font-family: monospace;">    <span style="color: #00D7D7;">#define</span> _CLIPDEFS_H         <br /> </div>[/code:w3tr8fk6]
clipdefs.h 80: Multiple declaration for 'WORD'
xmanuel, Solventado. Muchas gracias
clipper 5.2
Hola,tengo un programa en clipper 5.2 de hace años. que necesito modificarno se si alguien en sus archivos historicos, puede tener la libreria ct.lib y me la puede pasarmuchas gracias de antemano
clipper 5.2
João,No se puede proporcionar enlaces a software comercial, gracias
clipper 5.2
[quote="Antonio Linares":3ikrduhy]João, No se puede proporcionar enlaces a software comercial, gracias[/quote:3ikrduhy]DESCULPE, MAESTRO.
clipper exe and time cpu
Hi, In my old clipper application on XP when running an exe program i see the pc works very slow in special when run a second application. Is there some prg/obj to use to minimize the running of the exe clipper application while it is in backgrownd (with no focus) ? Tks P/Z
clipper exe and time cpu
- recompile it with Harbour/xHarbour - set the exe desktop icon properties to 'minimize' - if u call it from Fivewin => winexec('clip.exe', 6)
clipper exe and time cpu
Piscicelli, Please review this: <!-- m --><a class="postlink" href="http://www.ghservices.com/gregh/clipper/trix0014.htm">http://www.ghservices.com/gregh/clipper/trix0014.htm</a><!-- m -->
clipper exe and time cpu
Thanks to all
clipper exe and time cpu
[quote="Antonio Linares":yjc0jpit]Piscicelli, Please review this: <!-- m --><a class="postlink" href="http://www.ghservices.com/gregh/clipper/trix0014.htm">http://www.ghservices.com/gregh/clipper/trix0014.htm</a><!-- m -->[/quote:yjc0jpit] Antonio, I have today 3 actives versions of my softs : 1 : Compiled with Clipper 5.3b, Linked with Blinker 7.0 2 : Compiled with Clipper 5.3b with Fern Graphic Library instead Light Lib, Linked with Blinker 7.0 3 : Compiled with Clipper 5.3b with Fivewin 2.5, Linked with Blinker 7.0 My tests demonstrate this : OL_YIELD() and OL_AUTOYIELD( .T. ) do absolutely nothing when i use the version 3. Under XP the CPU use is 100%. With Blinker 7, the new BLICPUREL() function can replace OL_YIELD() and OL_AUTOYIELD(), but don't work under Windows executables. With SysRefresh() and/or SysWait(), no changes : always 100% CPU use. Is there an other way to solves this ?
clipper exe and time cpu
[quote="Piscicelli Zingoni":6zpqqnzn]Hi, In my old clipper application on XP when running an exe program i see the pc works very slow in special when run a second application. Is there some prg/obj to use to minimize the running of the exe clipper application while it is in backgrownd (with no focus) ? Tks P/Z[/quote:6zpqqnzn] Now i have solved a similary problem using fivewin StopUntil() combined with class TTimer() and few others specifics to my proper use. StopUntil() is not documented in FW 2.5. CPU time was 100 % yesterday, 3 % now ! Regards,
clipper exe and time cpu
Could u plz post a sample prg of using stopuntil() ? I need it too.
clipper exe and time cpu
Here is the baby ************ * WINATTEN.PRG * Creation le 12/02/2006 * Derniere modification le 14/02/2006 à 22:01:58 * Auteur Badara THIAM #include "fivewin.ch" STATIC lExit := .F. STATIC AncFocus ****************** FUNCTION WINATTEND(nDelai, ETATPRECG, ETATPRECD) ****************** * Etat d'attente permettant de réduire le temps CPU sous Windows * nDelai doit être indiqué en millisecondes STATIC BCOND STATIC oTmr STATIC NOUVDELAI := 1 STATIC ANCMILLI lExit := .F. ancFocus := GetFocus() IF oTmr = NIL .OR. NOUVDELAI != MAX(nDelai, PUBVAR(155)) NOUVDELAI := MAX(nDelai, PUBVAR(155)) IF oTmr != NIL oTmr:End() ENDIF oTmr := TTIMER():New( MIN(10, NOUVDELAI), { || lExit := .T. }, WndMain() ) ENDIF BCOND := { || WINATTEND2(@ETATPRECG, @ETATPRECD) } IF !EVAL( BCOND ) oTmr:Activate() ANCMILLI := GetTickCount() DO WHILE .T. STOPUNTIL( BCOND ) IF !lExit .AND. EVAL( BCOND ) EXIT ELSE IF ( GetTickCount() - ANCMILLI ) >= NOUVDELAI EXIT ELSE lExit := .F. ENDIF ENDIF ENDDO oTmr:DeActivate() ENDIF RETURN NIL ******************* FUNCTION WINATTEND2(ETATPRECG, ETATPRECD) ******************* RETURN ( lExit ; .OR. GGMSTATE("LEFT") != ETATPRECG .OR. GGMSTATE("RIGHT") != ETATPRECD ; .OR. GetFocus() <> ancFocus .OR. keyNext() <> 0 ; .OR. PUBVAR(132) .OR. PUBVAR(139) ; .OR. GetAsyncKey( VK_MENU ) .OR. GetAsyncKey( VK_SHIFT ) .OR. GetAsyncKey( VK_CONTROL ) ; ) ************** Regards,
clipper exe and time cpu
What is the parameter values to send when calling Winattend() :- => nDelai, ETATPRECG, ETATPREC ??? Thanks.
clipper exe and time cpu
[quote="tnhoe":10lpeavg]What is the parameter values to send when calling Winattend() :- => nDelai, ETATPRECG, ETATPREC ??? Thanks.[/quote:10lpeavg] nDelai = the delay in millisecond required by your parent function. ETATPRECG = the previous state of the left button of the mouse. ETATPRECD = the previous state of the right button of the mouse. PUBVAR(155) is the maximal delay can be used (1 to 1000, 500 is good). This parameter can be changed by your user... PUBVAR(132) is .T. when the Windows receive the focus. PUBVAR(139) is .T. each time WndMain():bPainted is evaluated. Regards,
clipper exe and time cpu
I do this : : : ACTIVATE WINDOWS oWnd ON INIT (winattend(500,,),.F.) after link it and give following errors : UNRESOLVED EXTERNAL PUBVAR STOPUNTIL GGMSTATE KEYNEXT I use Clipper 5.2, Fivewin 1.95 only
clipper exe and time cpu
I have found a reference to StopUntil() in RPREVIEW.PRG Antonio can say you where this function is located. The rest is composed of functions made by me. You must create your own equivalent functions depend how you program. To help you, look at this : GGMSTATE("LEFT") return the current state of the left button of the mouse GGMSTATE("RIGHT") return the current state of the right button of the mouse PUBVAR() contain a static array where i put all my "public" variables (so it's not public). WINATTEND() must be used in your wait state procedure, not in the "ON INIT" of a Window. I you have a problem with CPU time, this is because your application start in the "ON INIT" of the main Window, no ? Your program never stop, always it do something, like waiting keybord and state of the mouse. With WinAttend(), you can stop where you want to reduce the activity of your program. Place it in all the wait states is the first step. If yours wait states was controled directly by a window, a dialog, a get, or i don't know what other, you have not this problem. But to do that, you must rewrite a very big part of your code. This is not my way today, i want keep the same code for my DOS exe and for my Windows exe. KeyNext() return the same values than Clipper DOS NextKey(). I have created this function because i never can use TGET class, an few years ago i have rewritted Clipper GET, TBROWSE, MEMOEDIT, LABELS and few others. I control all the wait states in Clipper, and now in Fivewin with just a call of WinAttend() in my unique wait state procedure. Regards,
clipwks xhb rc14
Who is using ClipWks , i can not build it anymore with xhb rc14 Frank Demont
clipwks xhb rc14
ClipWKS requieres some functions in C not longer supported by xHarbour. You'd better use FileXLS class works the same way and it's pure OOP code, pure (x)Harbour code.
clipwks xhb rc14
The advantage of Clipwks was the speed and the ability to create worksheet without the need for Excel. On a web application I am creating spreadsheet.xml files but saving them with an extension of xls. This works very fast and does not need Excel. Excel treats them just like normal spreadsheet files.
clipwks xhb rc14
I agree with Gale : it is extemely fast and no need to exel I could build it with xhb januari 2007 release , not anymore with rc14 Trying to compile with BCC55 gives a external : iLink32.Exe -ap -Tpe /IDebug /LD:\XHARBOUR\Lib @READWKS.bcl Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_hb_stack' referenced from C:\FWH\CHANGED\CLIPWKS\XHB\BCCLIPWKS.LIB|IEEREAL Frank Demont
clipwks xhb rc14
Frank, Try to add this code to your main PRG: [code:29r8rd2j] #pragma BEGINDUMP #include "hbstack&#46;h" void * hb_stack = &HB_VM_STACK; #pragma ENDDUMP [/code:29r8rd2j]
clipwks xhb rc14
Antonio, Been having the hb_stack problem also with the FWH we just upgraded/downloaded last week. Previously, we were using FWH 06/05 build and xHarbour (bcc) 10/05 build. After adding the code below, the application does build but when executed, an unrecoverable error (9000) popup dialog "ALERT.PRG was compiled by older version, PCODE is no longer supported, please recompile" and the application would terminate. FIVEHX and FIVEHC libs are being linked to our application. Am using FWH_0907, xHarbour 0.99.70, bcc55 and xMate as the project manager. Please let me know how to resolve this. Thanks in advance. Dionie [quote="Antonio Linares":g44w92d3][code:g44w92d3] #pragma BEGINDUMP #include "hbstack&#46;h" void * hb_stack = &HB_VM_STACK; #pragma ENDDUMP [/code:g44w92d3][/quote:g44w92d3]
clipwks xhb rc14
Dionie, > "ALERT.PRG was compiled by older version, PCODE is no longer supported, please recompile" You have to recompile ALL your PRGs and used libraries (except FWH ones) as the xHarbour pcode has changed
clipwks xhb rc14
But I don't have ALERT.PRG on any of my linked source files. However, I found it referenced in fiveh.lib, fivehm.lib, fivehmx.lib and fivehx.lib. Could these be what's causing this problem ? [quote="Antonio Linares":3jerkyze]Dionie, > "ALERT.PRG was compiled by older version, PCODE is no longer supported, please recompile" You have to recompile ALL your PRGs and used libraries (except FWH ones) as the xHarbour pcode has changed[/quote:3jerkyze]
clipwks xhb rc14
Dionie, Check that you are using the right libraries from FWH 7.09 and not some old ones
clipwks xhb rc14
I have been working more with .xml spreadsheet files lately. It is not as intuitive to design them but you can create them very fast and you do not need Excel. I am creating them on the fly inside my web xbscript application. I can email them or display them in web browser.
clipwks xhb rc14
Hi Gale, [quote="Gale FORd":2u2pmgu9]I have been working more with .xml spreadsheet files lately. It is not as intuitive to design them but you can create them very fast and you do not need Excel. [/quote:2u2pmgu9] Sorry for resurrecting an old thread but is there some snippet that you could share Gale? I've been hoping to be able to create xls without requiring Excel to be installed. TIA.
clipwks xhb rc14
Found a skeletal xml that can be used as a template [url=http&#58;//blogs&#46;msdn&#46;com/brian_jones/archive/2005/06/27/433152&#46;aspx:2hqshahj]here[/url:2hqshahj]
clock in a window
I try to found a digital clock to put on a window with STYLE nOr( WS_POPUP, WS_VISIBLE ) Someone can help me ? Regards
clock in a window
Silvio, You may use a timer. Please review samples>TestTime.prg
clock in a window
THANK ANTONIO
clock() Error
I am getting the following error when trying to load FWPPC application.not implemented yetclock()How do I resolve error?
clock() Error
Darrell,Please use a modified library that we are emailing you, thanks
clock() Error
Hi Antonio,Thank You, I willl re-compile with new library.
clock() Error
Darrell,Please also add this code to your main PRG:[code:24i4kjru] #pragma BEGINDUMP #include <windows&#46;h> BOOL GetProcessTimes&#40; HANDLE hProcess, LPFILETIME lpCreationTime, LPFILETIME lpExitTime, LPFILETIME lpKernelTime, LPFILETIME lpUserTime &#41; &#123; return FALSE; &#125; BOOL Beep&#40; DWORD dwFreq, DWORD dwDuration &#41; &#123; return FALSE; &#125; #pragma ENDDUMP [/code:24i4kjru]
close EXCEL.EXE
Hi Everybody, Is there a way from within FWH to close Ms-Excel (EXCEL.EXE) if it is running in the background? Thanks, Jeff
close EXCEL.EXE
This is a working sample: [code:2s78ojy8]#include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; IF CLOSEEXCEL&#40;&#41; ? "Excel closed" ENDIF RETURN NIL #define GW_HWNDNEXT 2 #define GW_CHILD 5 STATIC FUNCTION CLOSEEXCEL&#40;&#41; LOCAL hWnd &#58;= GETWINDOW&#40; GETDESKTOPWINDOW&#40;&#41;, GW_CHILD &#41; WHILE hWnd != 0 IF GETWINDOWTEXT&#40; hWnd &#41; = "Microsoft Excel" POSTMESSAGE&#40; hWnd, WM_CLOSE &#41; RETURN &#46;T&#46; ENDIF hWnd = GETWINDOW&#40; hWnd, GW_HWNDNEXT &#41; ENDDO RETURN &#46;F&#46;[/code:2s78ojy8] EMG
close EXCEL.EXE
Hi Enrico, Once again I thank you. It is people like you that make me glad I picked FWH as my programming language. Your knowledgeable and quick replies not only help solve our issues but also help expand our understanding of FWH. I wish we had 10 of you ... but the one we do have is pretty dam good. Thanks again for all you help. Jeff
close EXCEL.EXE
[quote="Jeff Barnes":2j2j44hf][...]FWH as my programming language.[/quote:2j2j44hf] FWH is not a programming language but "merely" a library. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> EMG
close EXCEL.EXE
[quote="EnricoMaria":337tz1tp][quote="Jeff Barnes":337tz1tp][...]FWH as my programming language.[/quote:337tz1tp] FWH is not a programming language but "merely" a library. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> EMG[/quote:337tz1tp] Enrico, what is correct. When I worked with Clipper I use to say I was a Clipper Programmer, and that Clipper was my "language". Now If somebody ask me which language I use ¿Which is the right answer? c++? [x]Harbour FWH or .......? Thanks for your help and support
close EXCEL.EXE
[quote="jose_murugosa":2w9jarpa]Enrico, what is correct. When I worked with Clipper I use to say I was a Clipper Programmer, and that Clipper was my "language". Now If somebody ask me which language I use ¿Which is the right answer? c++? [x]Harbour FWH or .......?[/quote:2w9jarpa] xHarbour is better than FWH but xHarbour is a compiler not a language. Clipper is also a compiler. dBase III is an interpreter. I don't know if our beloved programming language has really a name. What do you think about "xBase language"? EMG
close EXCEL.EXE
[quote="EnricoMaria":23qc0gpt][quote="jose_murugosa":23qc0gpt]Enrico, what is correct. When I worked with Clipper I use to say I was a Clipper Programmer, and that Clipper was my "language". Now If somebody ask me which language I use ¿Which is the right answer? c++? [x]Harbour FWH or .......?[/quote:23qc0gpt] xHarbour is better than FWH but xHarbour is a compiler not a language. Clipper is also a compiler. dBase III is an interpreter. I don't know if our beloved programming language has really a name. What do you think about "xBase language"? EMG[/quote:23qc0gpt] Ok, I like it, thanks, Have a nice weekend.
close EXCEL.EXE
Hi ! Enrico. Clipper is my language when I was Born Thank's Enrico for some help for me. You are the good guy in the world <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> How to focus my window application [code:16h0gf2g] IF GETWINDOWTEXT&#40; hWnd &#41; = "My Application" //POSTMESSAGE&#40; hWnd, WM_CLOSE &#41; POSTMESSAGE&#40;hWnd,????????&#41; <--- RETURN &#46;T&#46; ENDIF [/code:16h0gf2g] Best Regard Areang
close EXCEL.EXE
Me too. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> try this: [code] SetActiveWindow(hWnd) [code] [quote="areang":1va4bq2c]Hi ! Enrico. Clipper is my language when I was Born Thank's Enrico for some help for me. You are the good guy in the world <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> How to focus my window application &#91;code&#93; IF GETWINDOWTEXT( hWnd ) = "My Application" //POSTMESSAGE( hWnd, WM_CLOSE ) POSTMESSAGE(hWnd,????????) <--- RETURN .T. ENDIF &#91;/code&#93; Best Regard Areang[/quote:1va4bq2c]
close EXCEL.EXE
Or [code:9p8ip3i1]BringWindowToTop&#40; hWnd &#41;[/code:9p8ip3i1] EMG
close EXCEL.EXE
Hi All ! This is work sample : for setfocus and maximize windows to the top [code:2xrxep06] #include "Fivewin&#46;ch" #define SW_NORMAL 1 #define SW_MAXIMIZE 3 #define SW_MINIMIZE 6 #define SW_RESTORE 9 FUNCTION MAIN&#40;&#41; IF CLOSEEXCEL&#40;&#41; ? "My Application ready for you" ENDIF RETURN NIL #define GW_HWNDNEXT 2 #define GW_CHILD 5 STATIC FUNCTION CLOSEEXCEL&#40;&#41; LOCAL hWnd &#58;= GETWINDOW&#40; GETDESKTOPWINDOW&#40;&#41;, GW_CHILD &#41; WHILE hWnd != 0 IF GETWINDOWTEXT&#40; hWnd &#41; = "My Applicationl" // POSTMESSAGE&#40; hWnd, WM_CLOSE &#41; <-- work for close windows // BringWindowToTop&#40; hWnd &#41; <-- not work SetActiveWindow&#40; hWnd &#41; ShowWindow&#40; hWnd, SW_MAXIMIZE &#41; RETURN &#46;T&#46; ENDIF hWnd = GETWINDOW&#40; hWnd, GW_HWNDNEXT &#41; ENDDO RETURN &#46;F&#46; [/code:2xrxep06] Please reply ! regards areang
close and run the same appl
Hello Silvio, How to do it : 1. Create a small application : Restart.exe 2. Inside Your Application define a RESTART - Button What the RESTART-Button must do : Set a Var lRestart to .T. and close the application. After closing the Main-Window, the RESTART.exe will start. RESTART.exe after closing, will call Your application again ( Renamed or not Renamed ). Define a RESTART-Button inside Your Application [code=fw:1se58b6n]<div class="fw" id="{CB}" style="font-family: monospace;"><br />...<br /><span style="color: #00C800;">LOCAL</span> lRestart := .F. <span style="color: #B900B9;">// No restart after closing the application</span><br />....<br />....<br /><span style="color: #B900B9;">// Your Restart-Button somewhere ( activate Restart )</span><br /><span style="color: #B900B9;">// Action ( lRestart := .T., oWnd:End() )</span><br />....<br />....<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <br /><span style="color: #00C800;">IF</span> lRestart = .T. <span style="color: #B900B9;">// Restart is activated</span><br />    WINEXEC<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"RESTART.exe"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ---- THE RESTART - Application ---------------------</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span> <br /><span style="color: #00D7D7;">#define</span> WID  <span style="color: #000000;">350</span> <br /><span style="color: #00D7D7;">#define</span> HGT  <span style="color: #000000;">200</span> <br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">local</span> oDlg<br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">2</span>*WID,<span style="color: #000000;">2</span>*HGT <span style="color: #0000ff;">PIXEL</span>  <br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, RESTART<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />WINEXEC<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Myfile.exe"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br /><br /><span style="color: #B900B9;">// -------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> RESTART<span style="color: #000000;">&#40;</span>oDlg<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> MsgYesNo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Rename and Restart Application ?"</span>, <span style="color: #ff0000;">" Restart Application "</span> <span style="color: #000000;">&#41;</span><br />   DELETE FILE <span style="color: #ff0000;">"MyFile.exe"</span><br />   FRENAME<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"MyNewFile.exe"</span>,<span style="color: #ff0000;">"Myfile.exe"</span><span style="color: #000000;">&#41;</span>   <br /><span style="color: #00C800;">ENDIF</span><br />oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1se58b6n] Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
close and run the same appl
Now from an my application I can download a exe the exe is on a my website the exe is the same exe of application but with another name How I can make to close My application , renamed the exe downloaded and run this file ? thanks
close and run the same appl
danke !
close application
If I open an application extern LOCAL TS := GetEnv( "windir" ) + "\system32\osk.exe" sample :ShellExecute( 0, "open",TS, "", ".", .t. ) How I can close this application ?I try with hellExecute( 0, "close",TS, "", ".", .t. ) but it not run
close application
Hello Silvio,The FIVEWIN-sample :[code:1wkkk74k] function Main&#40;&#41; WinExec&#40; "Calc" &#41; // Let's execute the calculator MsgInfo&#40; "Now we will close the calculator" &#41; // Use "Calculator" &#40; or "calc" ? &#41; in USA for "Calculadora" SendMessage&#40; FindWindow&#40; 0, "Calculadora" &#41;, WM_CLOSE &#41; MsgInfo&#40; OemToAnsi&#40; "Voil " &#41; &#41; return nil [/code:1wkkk74k] Here is the original description from Microsoft for SHELLEXECUTE : I think, only OPEN is possible. [code:1wkkk74k] HINSTANCE ShellExecute&#40; HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirectory, INT nShowCmd &#41; [/code:1wkkk74k]Parametershwnd------A handle to the owner window used for displaying a user interface (UI) or error messages. This value can be NULL if the operation is not associated with a window.lpOperation--------------------------A pointer to a null-terminated string, referred to in this case as a verb, that specifies the action to be performed. The set of available verbs depends on the particular file or folder. Generally, the actions available from an object's shortcut menu are available verbs. The following verbs are commonly used:editLaunches an editor and opens the document for editing. If lpFile is not a document file, the function will fail.exploreExplores a folder specified by lpFile.findInitiates a search beginning in the directory specified by lpDirectory.openOpens the item specified by the lpFile parameter. The item can be a file or folder.printPrints the file specified by lpFile. If lpFile is not a document file, the function fails.NULLIn systems prior to Microsoft Windows 2000, the default verb is used if it is valid and available in the registry. If not, the "open" verb is used.In Windows 2000 and later, the default verb is used if available. If not, the "open" verb is used. If neither verb is available, the system uses the first verb listed in the registry.// -----------------------To close the window, a different set of APIs would do the jobAs a sample ( not Fivewin ) :Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _(ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function PostMessage Lib "user32" Alias "PostMessageA" _(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _ByVal lParam As Long) As LongPrivate Const WM_CLOSE = &H10Private Sub cmdCloseApp_Click()Dim lngCloseIt As LonglngCloseIt = FindWindow(vbNullString, "Caption Of Window To Be Closed")PostMessage lngCloseIt, WM_CLOSE, CLng(0), CLng(0)End SubRegardsuwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
close gprs connexion
Hello I can send data through gprs thank's to Pawel's code (works great) . I want to close automatically the gprs connexion after transmission . For this i use code below but the connexion is still up after execution of this code. I am using windows mobile 2003. Any help will be appreciated, Thanks Richard HB_FUNC (CLOSEGPRSCONNECTION) { HANDLE phWebConnection = NULL; DWORD pdwStatus = 0; DWORD hresult = 0; ConnMgrConnectionStatus (phWebConnection, &pdwStatus); if (pdwStatus == CONNMGR_STATUS_CONNECTED) { hresult == ConnMgrReleaseConnection(&phWebConnection,0); // 0 = disconnect immedialtely } }
close gprs connexion
How can I gprs for free on my airtel sim? For about last 3 months i was not being charged for using mobile office on my airtel sim(i dont know why). Recently i formatted my phone and now i am being charged for using gprs. Is there a way by which i can again make it free? _______________________________ [url=http&#58;//www&#46;keywordspy&#46;com/overview/domain&#46;aspx?q=marketsamurai&#46;com:3cierr0t]market samurai[/url:3cierr0t] ~ [url=http&#58;//www&#46;keywordspy&#46;com/overview/domain&#46;aspx?q=marketsamurai&#46;com:3cierr0t]marketsamurai[/url:3cierr0t] ~ [url=http&#58;//www&#46;keywordspy&#46;com/overview/domain&#46;aspx?q=marketsamurai&#46;com:3cierr0t]marketsamurai.com[/url:3cierr0t]
cláusula ACTION en GET de campo memo
Hola: Por favor, ¿lo podríais implementar? Muchas gracias.
cm convert to
to convert cm to pixel FOR printer I use Cm2pix func ok BUT How I can convert cm to coordinates of a DLg or a window ? thanks
cmd cambiar unidad y directorio
Actualmente tengo funcionando una aplicación en una red. La aplicación se encuentra en el cliente y todos leen del servidor. Necesitaria abrir una ventana D.O.S. y poder cambiar la unidad y el directorio donde se encuentran los datos. He probado WinExec y si abre una ventana dos pero no se donde indicarle que lo abra en una unidad y carpeta específica. Alguien Sabe ???. desde ya muchas gracias !!
cmd cambiar unidad y directorio
Talbéz: drive:=curdrive() directorio:=curdir() msginfo(drive+":\"+diretorio)
cmd cambiar unidad y directorio
Talbéz: LOCAL cKomanda := "" cKomanda := "command.com /c "+"NET USE "+sDisk+": "+"\\"+ALLTRIM(sPat)+"\"+ALLTRIM(sName)+" /yes" WinExec(cKomanda,0) // Your code here cKomanda := "command.com /c "+"NET USE "+sDisk+": "+"/DELETE /YES" WinExec(cKomanda,0) ó cPathdbf = "c:\wineqa32\datos\*.dbf " cPathRun = "c:\respaldo\sistema\viernes " cComando := "command.com /c c:\windows\system32\xcopy.exe " + cPathdbf + cPathRun + " / y >>Infor.log" WaitRun(cComando, 0)
cmd cambiar unidad y directorio
Gracias karinha por responder, probaré tus sugerencias. Saludos
cmd cambiar unidad y directorio
Puedes usar la funcion dirchange devuelve 0 si cambio el directorio. DirChange( cDirectorio ) Slds
cmd cambiar unidad y directorio
Olvide, Para cambiar la unidad actual usa la funcion diskchange DiskChange() Slds
cmd cambiar unidad y directorio
Para terminar este hilo les comento que use la funcion ShellExecute() ya que con ella puedo cambiar unidad y directorios. Gracias a todos los que me respondieron
cmsay
How I can print a text with clrtext,backcolor I can only use cmsay as oPrn:CmSay( nRow, 3.5, "FEST",oFn1,,CLR_RED) only color red How I can ake to print also the background color ?
cmsay
[url:mhpv5keg]http&#58;//www&#46;helpfacil&#46;com&#46;br/Download/arquivos/TPrinter&#46;doc[/url:mhpv5keg] [url:mhpv5keg]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_class_tprinter[/url:mhpv5keg] Regards,
cmsay
I Know that documents but I cannot print a text with background
cmsay
In printer.prg, maybe: [code=fw:5o8faeg5]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   SetbkMode<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDCOut</span>, nBkMode <span style="color: #000000;">&#41;</span>         <span style="color: #B900B9;">// 1,2 transparent or Opaque</span><br /> </div>[/code:5o8faeg5] [url:5o8faeg5]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=9003&p=42765&hilit=nbkmode#p42765[/url:5o8faeg5] Regards,
cmsay
utiliza un brush DEFINE BRUSH oBrush COLOR nRGB(215,215,215) aDesde:=oPrn:Cmtr2Pix( nRow, 0 ) aHasta:=oPrn:Cmtr2Pix( (nRow + 0.3), 27 ) oPrn:FillRect({aDesde[1],aDesde[2],aHasta[1],aHasta[2]},oBrush) oPrn:CmSay( nRow, 4.0, "Total del dia : " + des_fecha(dFechaCorte), oFont[5] ) saludos
cmsay
i WISH A COMMAND AS @ SAY .... COLOR CLR_RED, CLR_YELLOW
cmsay
Silvio, I suggest you to use EasyReport for printing. Regards, Otto
cmsay
Otto, I must create a document with hand - I have many and many options