Hello,
When running a batch- or script-file, you will see a DOS-window on screen.
Is it possible to hide this ?
Regards
Uwe
#include "Fivewin.ch"
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
FUNCTION MAIN()
SHELLEXECUTE( 0, "open", "http://www.mysite.com", 0, 0, SW_NORMAL )
RETURN NIL
newFORMAT := c_Path +"\image\" + cIMAGE
cCONVERT := "NCONVERT -quiet -out " + ALLTRIM( (2)->EXTENSION) + " -resize " + ;
ALLTRIM(str(nWidth)) + " " + ALLTRIM(str(nHeight)) + " &newFORMAT "
WINEXEC ( "&cCONVERT", 0 )
/*
*
* TOLEAuto and Activex
* Jose Carlos da Rocha
*
*/
#include "FiveWin.ch"
function Main()
local fn := Array(5)
oCopyImage := TOleAuto():New( "CopyImage.CopyImage.1" )
ep := cFilePath( GetModuleFileName( GetInstance() ) )
fn[1] = "wmf"
fn[2] = "bmp"
fn[3] = "png"
fn[4] = "jpeg"
fn[5] = "wbmp"
For i = 1 To 5
oCopyImage:Type := i
oCopyImage:CopyFile(ep + "coins.gif" , ep + "coins75." + fn[i], 50, 50)
oCopyImage:CopyFile(ep + "eckler.bmp", ep + "eckler120." + fn[i], 120, 120)
Next
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 105 guests