FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error running FiveImg sample application.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Error running FiveImg sample application.
Posted: Sat Nov 15, 2008 10:29 PM
Compiling and running the FiveImg.prg (found in FWH\samples\graphics\formats) with xHarbour September 2008, the program crashes with the following error: Error BASE/1004 Class: 'NIL' has no exported method: NEW

Program extract:

static oWnd, oImage, oImageSm

//----------------------------------------------------------------------------//

function Main()

DEFINE WINDOW oWnd ;
MENU BuildMenu() ;
TITLE "Graphics formats support for FiveWin" ;
COLOR CLR_BLUE, RGB( 0, 128, 128 ) ;

@ 20, 12 VBX oImageSm ;
FILENAME "VDVBX.dll" OF oWnd SIZE 100, 100 PIXEL


@ 20, 130 VBX oImage ;
FILENAME "VDVBX.dll" OF oWnd SIZE 500, 380 PIXEL

ACTIVATE WINDOW oWnd MAXIMIZED

return nil




I'm missing something or what's wrong with the sample app ?
Thank you.
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Error running FiveImg sample application.
Posted: Sat Nov 15, 2008 11:21 PM

VBX is for 16 bit Clipper/Fivewin only.

Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Error running FiveImg sample application.
Posted: Sun Nov 16, 2008 06:34 AM

Enrico:

Thank you for your help. How can I link it for 32 bits ?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Error running FiveImg sample application.
Posted: Sun Nov 16, 2008 02:15 PM

You can't. You have to use TImage control.

EMG

Continue the discussion