Need some explanations on this Delphi code [closed]?

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.

The truth is that I'm not Delphi programmer and had some experience with it making some simple windows Apps before. So after some time I am in the need to make some app for monitoring executable files and do some logs. – silvercover Feb 2 '11 at 14:45 @silvercover ShellExecute is but one way for executables to start.

They get started up in many other ways too. Can't you use a 3rd party tool for this? – David Heffernan Feb 2 '11 at 14:46 I've found this code and honestly don't know how to deal with COM and Unit manipulations and just need its output.

Can you tell me the step-by-step way with mentioned code to make my final exe in Delphi? – silvercover Feb 2 '11 at 14:47 2 @silvercover It will come back to life in due course. The Code Central server appears to be down.

What is most irritating is that you asked "can you tell me the step-by-step way with mentioned code to make my final exe in Delphi" before even attempting to read the links I served up for you. That is quite simply rude. At least make the effort to understand it yourself first before you ask somebody else to do your work for you!

– David Heffernan Feb 2 '11 at 15:17 7 @silvercode And now I see that the SO question I referred you was one asked by yourself, to which you make no reference. Please stop wasting our time and treat people with more respect. – David Heffernan Feb 2 '11 at 15:49.

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.

I think it's the other way round here. This is an interface that you implements rather than one that Windows implements. – David Heffernan Feb 2 '11 at 14:37 but this interface uses imported type library, imho – Yuriy Vikulov Feb 2 '11 at 14:39 @Yuriy Not as I understand it.

This interface is not implemented by Windows. Instead you implement it and register it with Windows. Windows then creates and calls your COM object when ShellExecute happens.

– David Heffernan Feb 2 '11 at 14:41 @David may be myenglish is not good. I do not dispute with you. I agree with you about this interface (in the shown code).

I mean that ShellExecHookXample_tlb was likely generated from com (activex) object with an internal delphi tool – Yuriy Vikulov Feb 2 '11 at 14:46 1 You are right, it could be. There is a little information to be sure for 100% – Yuriy Vikulov Feb 2 '11 at 14:50.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions