-5

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.

silvercover
  • 161
  • 1
  • 3
  • 11
  • 1
    update the code to the question! what you don't understand? be more specific. – RBA Feb 02 '11 at 14:29
  • 10
    No sense in trying to explain that code if you don't even know where to put code. I suggest you get a book covering the basics of Delphi and start out with a few simple applications. Then you can try to understand the code in question. If you have **specific** questions, you can ask on SO. – jpfollenius Feb 02 '11 at 14:31
  • 2
    The problem is that you don't know Delphi and are trying to do some pretty advanced stuff with it. You should be writing Hello world programs, since it appears you don't know what a Unit is. Also, an image doesn't qualify as "code"! – Leonardo Herrera Feb 02 '11 at 14:57
  • 2
    You need to add the code to the question. – Nick Hodges Feb 02 '11 at 16:33
  • @Nick Hodges here is the link:http://i51.tinypic.com/20sx8vm.png or http://www.programmersheaven.com/mb/delphikylix/421265/421265/ishellexecutehookexecute/ – silvercover Feb 02 '11 at 16:54

2 Answers2

5

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.

Community
  • 1
  • 1
David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • 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 02 '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 02 '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 02 '11 at 14:47
  • @silvercover No I can't. How could I do that? I've absolutely no idea what you want. I don't mean to be harsh, I'm just speaking the truth. Did you follow the link in my answer yet? – David Heffernan Feb 02 '11 at 14:48
  • Well I know some basics about IShellExecuteHook.Execute but I have hard time using available tips and techniques in Delphi. because that's not simple 1 unit coding which I've learned from starter books. and about the second link, that's my own topic in programmersheaven and my problem still resists. – silvercover Feb 02 '11 at 14:56
  • @silvercover I mean the other link in the second paragraph. – David Heffernan Feb 02 '11 at 15:03
  • 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 02 '11 at 15:17
  • I am busy with this problem for almost about two weeks and you can not judge me that I'm lazy or rude! just do some search and find my topics in many forums. I've also tried to read some book, but I still have problem. and for that step-by-step request you should notice that I just need the way not code! – silvercover Feb 02 '11 at 15:23
  • @silvercode You didn't attempt to read the link I sent you and instead asked me to spend my valuable time. That's rude. I wish you good luck with your continued efforts in implementing this. – David Heffernan Feb 02 '11 at 15:30
  • 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 02 '11 at 15:49
  • for those you though I'm lazy or something, please look at this honest and helpful explanation I've got here: [Yahoo Answers](http://answers.yahoo.com/question/?qid=20110202063620AAP6ts7). In the future please do not try to judge someone based on what it looks like and not the truth. – silvercover Feb 08 '11 at 16:40
  • @silvercover That's very nice, but it's just a shame that the answer you got there is inaccurate. The answer you got there is the same erroneous one that Yuriy Vikulov gave you here. And you may have noticed the up-votes next to my latest comment indicating that I was far from alone in my opinion. – David Heffernan Feb 08 '11 at 16:50
  • But you know the point is to explain and not blame. no matter the hole answer is wrong or partially right. – silvercover Feb 08 '11 at 22:04
  • @Solvercover I was frustrated because I have told you the answer twice now but you won't listen and you keep asking the same question. That EDN download gives you a complete implementation of IShellExecuteHook. Why won't you listen? – David Heffernan Feb 08 '11 at 22:06
2

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.

Yuriy Vikulov
  • 2,469
  • 5
  • 25
  • 32