Hola Xavi,
José,
Should not it shows 'Hello' instead of 'Bye'??
No consigo reproducir el problema: con tres PRGs me presenta 'Hello'.
Por cierto, XEdit 2 (abril 2008) tiene problemas para gestionar el "Módulo
principal" si no lo has creado el primero. :)
Un saludo
Xavi
Gracias por resp
José,
Should not it shows 'Hello' instead of 'Bye'??
No consigo reproducir el problema: con tres PRGs me presenta 'Hello'.
Por cierto, XEdit 2 (abril 2008) tiene problemas para gestionar el
"Módulo principal" si no lo has creado el primero. :)
Un saludo
Xavi
José Luis Capel - escribió:
Hi a
t; <[EMAIL PROTECTED]>
To: "Harbour Project Main Developer List."
Sent: Tuesday, August 19, 2008 11:48 PM
Subject: Re: [Harbour] HB_FUN_STATIC
Jose Luis he probado el código en un mismo PRG. Poniendo la funcion main
al principio y va perfectamente :-)
De hecho yo lo uso e
Jose Luis he probado el código en un mismo PRG. Poniendo la funcion main
al principio y va perfectamente :-)
De hecho yo lo uso en mis clases y no me falla
#include "hbclass.ch"
FUNCTION MAIN()
LOCAL o
o := MyOtherClass():New()
? o:MyMethod() // --> 'Bye'
RETURN NIL
CLASS MyClass
Hi all,
This piece of code (three separate prg's):
// one.prg
CLASS MyClass
METHOD MyMethod() INLINE 'Bye'
METHOD New() INLINE Self
ENDCLASS
// Two.Prg
CLASS MyOtherClass FROM MyClass
METHOD MyMethod()
ENDCLASS
#pragma BEGINDUMP
#include "hbapi.h"
HB_FUNC_STATIC( MYOTHERCLASS_MYMET