Power Builder - declarar funcion externa

 
Vista:

declarar funcion externa

Publicado por Maritza (14 intervenciones) el 12/07/2002 00:33:10
Hola a todos, tengo una pregunta que por favor quisiera que me ayuden a responderla.
Como puedo declarar una función externa, es decir, que es lo que tengo que hacer exactamente….
He leído el help del power en “declaring external functions” , pero no me dice como realmente debo hacerlo , no se si crear una función de usuario y luego poner la sintaxis de la declaración de la función externa…o crear un user object....

gracias por la ayuda

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:declarar funcion externa

Publicado por ciceron (2 intervenciones) el 12/07/2002 09:13:25
Buenos días, en qué versión de Power estás trabajando?
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

RE:declarar funcion externa

Publicado por marcelo (78 intervenciones) el 16/07/2002 04:50:03
Te mando algunos ejemplos
a) En la aplicacion en declare global external functions pone el codigo...

//playsound
Function boolean sndPlaySoundA (string SoundName, uint Flags) Library \"WINMM.DLL\"
Function uint waveOutGetNumDevs () Library \"WINMM.DLL\"

//getsyscolor
Function ulong GetSysColor (int index) Library \"USER32.DLL\"

//getsystemmetrics
Function int GetSystemMetrics (int index) Library \"USER32.DLL\"

//getfreememory
//Subroutine GlobalMemoryStatus (ref str_memorystatus memorystatus ) Library \"KERNEL32.DLL\"

//set and kill timer
Function Boolean KillTimer (long handle, uint id ) library \"USER32.DLL\"
Function uint SetTimer (long handle, uint id, uint time, long addr ) library \"USER32.DLL\"

//GetModuleHandle
Function long GetModuleHandleA(string modname) Library \"KERNEL32.DLL\"
Function ulong FindWindowA (ulong classname, string windowname) Library \"USER32.DLL\"

Function boolean FlashWindow (long handle, boolean flash) Library \"USER32.DLL\"
Function uint GetWindow (long handle,uint relationship) Library \"USER32.DLL\"
Function int GetWindowTextA(long handle, ref string wintext, int length) Library \"USER32.DLL\"
Function boolean IsWindowVisible (long handle) Library \"USER32.DLL\"
Function uint GetWindowsDirectoryA (ref string dirtext, uint textlen) library \"KERNEL32.DLL\"
Function uint GetSystemDirectoryA (ref string dirtext, uint textlen) library \"KERNEL32.DLL\"
Function uint GetDriveTypeA (s
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

RE:declarar funcion externa

Publicado por Stefanny (1 intervención) el 07/03/2014 14:37:09
Hola, quisiera saber como invocarlas.
Gracias.
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