Error running FiveImg sample application.

Error running FiveImg sample application.

Postby HunterEC » 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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Error running FiveImg sample application.

Postby Enrico Maria Giordano » Sat Nov 15, 2008 11:21 pm

VBX is for 16 bit Clipper/Fivewin only.
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby HunterEC » Sun Nov 16, 2008 6:34 am

Enrico:

Thank you for your help. How can I link it for 32 bits ?
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Postby Enrico Maria Giordano » Sun Nov 16, 2008 2:15 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests