Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DLL no VFP6
Message
De
24/06/2002 16:02:18
 
 
À
24/06/2002 10:45:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00671635
Message ID:
00671815
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform