Search found 18 matches: capp

Return to advanced search

Re: Have you seen this behavior ?

Instead of using CreateObject(...), can you please try using FWGetOleObject( cApp ) // available in FWH olefuncs.prg or TOleAuto():New( cApp ) This is the code of FWGetOleObject( cApp ) //----------------------------------------------------------------------------//function ...
by nageswaragunupudi
Sat Oct 12, 2013 1:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Have you seen this behavior ?
Replies: 4
Views: 1082

Re: Checking if Outlook is running

Good.
So I advise you to use FWGetOleObject( cApp ) instead of TOleAuto():New(...).

This function checks if the application is already active and if active uses the active object.
If not active opens the application.
by nageswaragunupudi
Thu Sep 19, 2013 11:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Checking if Outlook is running
Replies: 11
Views: 2582

Re: Checking if Outlook is running

... cName ) succeeds without error, it means the app is already running. So the logic should be TRY    oObj := GetActiveObject( cApp )    ? 'already running'CATCH    TRY       oObj := CreateObject( cApp )      ...
by nageswaragunupudi
Thu Sep 19, 2013 12:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Checking if Outlook is running
Replies: 11
Views: 2582

webservice desde FWH

... METHOD End() CLASS TdWebService FreeLib32(xDll) return nil ***************************** DLL32 FUNCTION InternetOpen( cApp as LPSTR, n1 AS DWORD, n2 AS LPSTR, n3 AS LPSTR,; n4 AS DWORD ) AS LONG PASCAL ; FROM "InternetOpenA" LIB xdll DLL32 Function InternetReadFile(hFile ...
by rterraz
Sat May 12, 2012 4:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: webservice desde FWH
Replies: 0
Views: 807

Re: xBrowse:ToExcel() crash in Win7 x86

I modified this: no action nor error alert. Code: function FWGetOleObject( cApp ) local oObj TRY oObj :=WIN_OleAuto():New( cApp ) //from GetActiveObject( cApp ) , call harbour win_oleauto class (hbwin.lib) CATCH TRY oObj := WIN_OleAuto():New( cApp ) CATCH END ...
by ShumingWang
Wed Sep 07, 2011 3:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse:ToExcel() crash in Win7 x86
Replies: 14
Views: 3994

Re: XBROWSE WITH KEY PRESSED CONTROL+C - BUG

... The code to load Excel or other office applciation in olefuncs.prg is this:   TRY      oObj  := GetActiveObject( cApp )   CATCH      TRY         oObj  := CreateObject( cApp )      ...
by nageswaragunupudi
Fri Jun 10, 2011 4:32 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE WITH KEY PRESSED CONTROL+C - BUG
Replies: 2
Views: 576

Re: xbrowse to excel office 2010

... not for you. The problem is not because of the version of Office. Please open \fwh\source\function\olefuncs.prg. First function is GetOleObject( cApp ) function GetOleObject( cApp )   local oObj   TRY      oObj  := GetActiveObject( cApp )  ...
by nageswaragunupudi
Wed Jun 01, 2011 3:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse to excel office 2010
Replies: 9
Views: 2051

Re: To Antonio : Preview in FWH 10.12

... now I am able to compile and link. Where do we get this xhb.obj and what is it? Coming to our issue: Please see the code of function GetOleObject( cApp ) in the OLEFUNCS.PRG. static function GetOleObject( cApp )   local oObj   TRY      oObj  := GetActiveObject( ...
by nageswaragunupudi
Thu Jan 27, 2011 11:51 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Antonio : Preview in FWH 10.12
Replies: 40
Views: 7655

... lpszHeaders As 8, dwHeadersLength As 7, dwFlags As 7, dwContext As 7) As 7 FROM "InternetOpenUrlA" PASCAL Lib xdllnet DLL32 FUNCTION InternetOpen( cApp as LPSTR, n1 AS DWORD, n2 AS LPSTR, n3 AS LPSTR,n4 AS DWORD ) AS LONG PASCAL FROM "InternetOpenA" LIB xDllNet DLL32 FUNCTION HttpSendRequest(hRequest ...
by clemerson
Wed Apr 05, 2006 6:22 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: SOAP message
Replies: 3
Views: 2091

I tried using Alltrim instead of PADR on the mRepComm := ("["+PADR(cApp,len(REPDETS->REP_NAME))+".rpt]") line, which seemed to fix a few of the records. although some still had a large gasp before the .rpt extension, with some records not even showing ...
by deanomeano
Fri Feb 10, 2006 11:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PADR and LEN
Replies: 2
Views: 886

PADR and LEN

... ; [Monthly Account Invoice Proof .rpt] The above should be displayed as [Monthly Account Invoice Proof.rpt] Here is the code used; IF !Empty(cApp) IF mFile == 1 mReportID := Alltrim(cApp)+".rpt" mReportName := PADR(cApp,LEN(REPDETS->REP_NAME)) mRepComm := ("["+PADR(cApp,len(REPDETS->REP_NAME))+".rpt]") ...
by deanomeano
Fri Feb 10, 2006 9:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: PADR and LEN
Replies: 2
Views: 886

... del "Sistema". El valor devuelto será IDNO si se cancela la operación. Parámetro: hWnd. Manejador del diálogo o de la ventana. SHAbout( hWnd, cApp, cText, hIcon ) Es el diálogo estandard "About". Parámetros: hWnd. Manejador del diálogo o de la ventana. cApp. Es el texto que la función mostrará ...
by Antonio Linares
Wed Feb 08, 2006 11:26 pm
 
Forum: WhatsNew / Novedades
Topic: FTDN new February 2006 build / nuevo build de Febrero 2006
Replies: 5
Views: 5698

FTDN new February 2006 build / nuevo build de Febrero 2006

... if the user choose to perform the shutdown. It is IDNO if the operation was canceled. Parameter: hWnd. Dialog or window handle. SHAbout( hWnd, cApp, cText, hIcon ) It is the standard dialog "About". Parameters: hWnd. Dialog or window handle. cApp. Text that the function displays in the title ...
by Antonio Linares
Wed Feb 08, 2006 9:08 pm
 
Forum: WhatsNew / Novedades
Topic: FTDN new February 2006 build / nuevo build de Febrero 2006
Replies: 5
Views: 5698

I think you should rewrite your function such a way that it returns not NIL but cApp. In your main code you will have the following LOCAL cApp ..... IF ( !EMPTY( cApp := FileName() ) ) mReportID := Alltrim(cApp)+".rpt" oReportID:Refresh() ENDIF ..... Or you can ...
by Vladimir Grigoriev
Tue Jan 10, 2006 11:49 am
 
Forum: FiveWin for CA-Clipper
Topic: passing a function several times?
Replies: 7
Views: 2352

So, should I have a different LOCAL cApp for each refresh?
by deanomeano
Tue Jan 10, 2006 10:56 am
 
Forum: FiveWin for CA-Clipper
Topic: passing a function several times?
Replies: 7
Views: 2352
Next

Return to advanced search