Power Builder - error migracion de power 8 a 9

 
Vista:

error migracion de power 8 a 9

Publicado por joel (1 intervención) el 07/08/2009 17:11:22
Buen dia, tengo una aplicacion desarrollada en power builder 8.0, pero necesito trasladarla a power builder 9.0
me sale dos errores:

pfc_main.pbl(pfc_n_trp).2:Error C0001:ilegal data type:transport
pfe_main.pbl(pfc_n_trp).2:Error C0001:ilegal data type:pfc_n_trp
aqui es el codigo:

/********************************
/********************************
pfc_main.pbl(pfc_n_trp) :
/********************************
/********************************

forward
global type pfc_n_trp from transport
end type
end forward

global type pfc_n_trp from transport
end type

global pfc_n_trp pfc_n_trp

forward prototypes
protected function integer of_messagebox (string as_id, string as_title, string as_text, icon ae_icon, button ae_button, integer ai_default)
end prototypes

protected function integer of_messagebox (string as_id, string as_title, string as_text, icon ae_icon, button ae_button, integer ai_default);

Return MessageBox(as_title, as_text, ae_icon, ae_button, ai_default)
end function
on pfc_n_trp.create
call transport::create
TriggerEvent( this, "constructor" )
end on
on pfc_n_trp.destroy
call transport::destroy
TriggerEvent( this, "destructor" )
end on

//**********************************
//**********************************
pfe_main.pbl(pfc_n_trp):
//**********************************
//**********************************

forward
global type n_trp from pfc_n_trp
end type
end forward
global type n_trp from pfc_n_trp
end type
global n_trp n_trp
on n_trp.create
call transport::create
TriggerEvent( this, "constructor" )
end on
on n_trp.destroy
call transport::destroy
TriggerEvent( this, "destructor" )
end on
Gracis por tu gentileza al responder
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:error migracion de power 8 a 9

Publicado por miguel (153 intervenciones) el 14/08/2009 08:40:42
El error es causado porque en la versión 8 de powerbuilder decidieron de ya no usar los objetos tipo transport (y otras funciones y eventos relacionados con ello) y por lo tanto los pfc's te estan fallando.
Tendrás que adaptar tus pfc's.

http://www.sybase.com/detail?id=1032777 te cito el trocito interesante:
--------------------------------------------------------------
6.2 Distributed PowerBuilder is not supported

PowerBuilder 7 was the last version of PowerBuilder that incorporated distributed PowerBuilder functionality. Sybase recommended the use of EAServer in place of distributed PowerBuilder for distributed and Web applications in PowerBuilder 7 and later.

The Transport object and its associated properties and methods are obsolete in PowerBuilder 8 and later and were removed from PowerBuilder 9. Additional properties and methods that were used for distributed PowerBuilder and are therefore obsolete include:

* ConnectionBegin and ConnectionEnd events on the Application object
* GetServerInfo, RemoteStopConnection, and RemoteStopListening functions on the Connection object
* SetConnect function for proxy objects
* ConnectString and Trace properties on the Connection object
* ConnectionInfo structure

The JavaBeans Proxy and Web.PB generators were also used with distributed PowerBuilder applications and were removed from the New dialog box.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar