FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Getting errors with FWH 2.7 July Build
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Getting errors with FWH 2.7 July Build
Posted: Sat Jul 22, 2006 04:03 PM
Hi Mr.Antonio

The following code was working upto FWH 2.7 June 2006 Build. When I updated my FWH 2.7 June build with FWH 2.7 July build, I started getting
errors as under. I am using the latest xHarbour supplied with FWH 2.7 July 2006.

- Ramesh Babu P





#include "fivewin.ch"

FUNCTION taskbar_on(ison, lFree)

LOCAL hwnd := FindWndByClass("Shell_TrayWnd", "")

IF ison
ShowWindow(hwnd,5)
ELSE
ShowWindow(hwnd,0)
ENDIF

IF lFree
FreeLib32("user32.dll")
ENDIF

RETURN Nil

**********

DLL32 Function ShowWindow(hwnd as LONG, nCmdShow as LONG) AS LONG ;
PASCAL FROM "ShowWindow" Lib "user32.dll"

DLL32 Function FindWndByClass(wndClass AS LPSTR,WndName as LPSTR) AS LONG ;
PASCAL FROM "FindWindowA" LIB "user32.dll"

**********
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Getting errors with FWH 2.7 July Build
Posted: Sat Jul 22, 2006 04:24 PM

Ramesh,

Your posted code works fine. It may be something related with the MDI you are using. Please post a self contained and reduced sample to reproduce the error, Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion