I have YmCrypt.ocx... On VB6 ...when I import the file, so it will make an object,, So I can paste on the form, and I can use it...But On Delphi6, why Can I not do like as on vb6? It can create an unit, but it dont make an object. So My question is...
- Can I use YmCrypt.ocx on Delphi6?
- If can, please explain to me. I'm very happy, if there is a code that can load the ocx at run time.
LIBID_YMCrypt_bl0sh: TGUID = '{1382B389-9A89-48C1-B056-7BECA8BD9FA2}';
IID__YMC: TGUID = '{D2E65791-DA25-44E4-B9CB-27DE41BC4E1B}';
DIID___YMC: TGUID = '{D39DF4F9-E0F3-417C-9700-6E78FD2AD041}';
CLASS_YMC: TGUID = '{B2AFE6EC-D3A6-4445-B515-532C9E020380}';
I had tried to call it , like this :
VAR
ObjTokenYM: YMC;
begin
ObjTokenYM:=CreateComObject(CLASS_YMC) as YMC;
when I run the code, There is no error... But I'm not sure if this can be used or not ? Because when i try to call a method of the class, like this:
VAR
ObjTokenYM: YMC;
begin
ObjTokenYM:=CreateComObject(CLASS_YMC) as YMC;
ObjTokenYM.About;
So...I get an error message..."Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property page ..."