Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Doubts about DLLs and Custom Classes
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Doubts about DLLs and Custom Classes
Divers
Thread ID:
00522543
Message ID:
00522543
Vues:
49
Hi everybody.
I have some doubts:

I'm working with CryptPak package (I guess it is known) that provides strong encryption functions. It provides 4 files that you need to add to your project, or as in my case, you need to copy them to the application directory (I call the functions from other application). These files are CryptPak.vcx, CryptPak.vct, CryptPak.dll, Blowfish.ucx.
To use them, I just call a .prg like this:

PRIVATE oCryptPak
SET CLASSLIB TO CryptPak.vcx
oCryptPak = CREATEOBJECT("CryptPak")
smd5 = oCryptPak.MD5("hello")

This is the environment I'm working on. Now, these are my doubts:

1) Why I don´t need to registrer the CryptPak.dll ?? when I make a .dll by my own I need to carry MyDll.dll and MyDll.tlb to the app machine and do a Regsvr32 Path/MyDll.dll.... and sometimes it doesn´t even work.... or have version problems beetween VFP5 and VFP6 .... where is CryptPak.tlb ????

2) Why if I open CrpytPak.vcx and .vct in VFP I see the Md5 method declared but I don´t see the function code ? where is it defined or how ?

3) I made a project just to try and included CrpytPak.vcx on it.
I made another class MyClass into MyClasses.vcx and add methods to call the functions... (same code as above) ... and then compiled it as a Multiple COM
MyDll.dll ... well... I have to register the dll to work!!.. and if I look the MyClasses.vct with notepad I see the entire code of the method (and I don´t want that)....

4) I call MY functions like this:

obj = createobject("MyClass.Function")

if I take .vcx and .vct ... do I need to register the .dll too ??
or the "set classlib to" command does it by itself??



As you all see I'm very lost with all these things ... can anyone help ???

thanks
fabian
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform