General information
Category:
Object Oriented Programming
>Olá pessoal !
>
>Gostaria de saber se eu posso colocar em uma DLL desenvolvida em VFP funções alem de classes definidas (DEFINE CLASS) e fazer chamadas a estas funções da mesma forma que chamo uma função declarada em um arquivo PRG (SET PROCEDURE TO).
Roberto, para você criar um DLL no VFP vc deve ter os DEFINE CLASS como OLEPUBLIC.
Para chamar as funções vc deve se certificar que a DLL está registrada no registro do windows (regsvr32.exe) e chamar da seguinte forma:
a = NomeDaDLL.NomeDaFuncao(parametros)
Se a DLL estiver em outra máquina use:
a = NomeDaMaquina.NomeDaDLL.NomeDafuncao(parametros)
Evite utilizar funções que tenham interface com o usuario, pois se a DLL ficar em outra maquina a interface será exibida naquela máquina, se a máquina não tiver monitor (servidor dedicado) vc já viu né ....
Atenciosamente
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only