Need some explanations on this Delphi code

331 views Asked by At

I have this code and need some explanation on these questions:

  • What is that trailing "_TLB" after "ShellExecHookXample" in first uses section?

  • How should I use this code in Delphi 7 and make stand-alone exe file? (I don't know what's the proper place to put codes and call its method. Since it seems to be a unit or what?)

  • if possible please describe the code for me.

Thanks in Advance.

2

There are 2 answers

14
David Heffernan On

The _TLB is stands for type library. It looks like you are trying to implement IShellExecuteHook.Execute and have so far found some code here. However, I'm guessing because you didn't tell us. You are likely to get better answers if you are able to to spend more effort describing what it is you are trying to achieve.

If my guess is correct you should take a look at this question: IShellExecuteHook.Execute which I believe will explain how to solve your actual problem.

7
Yuriy Vikulov On

ShellExecHookXample_tlb means that this unit was imported from com (activex) object with an internal delphi tool (Project->Import type library...) it reads public methods,events, properties of com (activex) object and generates pas unit with appropriate classes/interfaces. Usually you can find it in delphi folders.