CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Dec 2006
    Posts
    86

    Arrow Shell Interfaces (Like IProgressDialog); TlbImp?

    Please Help!!
    I tried tlbimp.exe for shell32.dll, but barely any interfaces were imported. What am I doing wrong?

    Thank you!!

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    *Most* things from shell32 are available (at least with the latest version) from within .Net. What specific functionallity are you trying to reach? there may be another approach.....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Dec 2006
    Posts
    86

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    IProgressDialog... it was in this thread's title.

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    IProcessDialog is typically used during deleting, uploading, copying, moving, or downloading files. And as far as I know .NET 2.0 provides the overloads for methods for Copying, Deleting or Moving files which allow you to show the UI to the users with the progress indicator. Take a look at the methods in My.Computer.FileSystem object.

    Now the million dollar question would be, what exactly do you want to do with the IProcessDialog? (That is what is being asked in Post #2 also).

    Edit--
    And here some more food for thought.
    http://www.codeproject.com/csharp/ip...sdialognet.asp
    Last edited by Shuja Ali; March 21st, 2007 at 09:55 PM.

  5. #5
    Join Date
    Dec 2006
    Posts
    86

    Shell Interfaces (Like IProgressDialog); TlbImp?

    I already know that most of the stuff are in the .NET Framework (the new My namespace and the file operation functions), but I am assuming I am using it for some other, non-typical, purpose, since I may want, for example, for the progress bar to represent some other operation.
    Although many functionalities are provided, if one isn't, how do I import all the interfaces? I am only using IProgressDialog as an example.

    Thanks!

    P.S.: I'm not a typical person!!
    Last edited by wfunction; March 21st, 2007 at 10:31 PM.

  6. #6
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    The link provided in post #4 shows how to build a wrapper around the IProcessDialog interface and use it in your application. In most of the cases if there is functionality that you want to use and if that functionality is not provided in the language, you will use the underlying Operating API's to achieve what you intend to do.

    A best way is to build a wrapper on top of the APIs/Interfaces that are exposed by the operating system.

  7. #7
    Join Date
    Dec 2006
    Posts
    86

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    Thanks a lot for the link, although I had already seen it before (but how would you know?).
    The problem is, I am using IProgressDialog as an example. If I want to import all the interfaces, does that mean that I have to write a wrapper for all of them? That's scary! Also, this needs no APIs, just the COM interfaces.

    Thanks!

  8. #8
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    I understand what you are saying. I wrote API just for reference. Not all COM Interfaces need a wrapper but some of them definitely do.

  9. #9
    Join Date
    Dec 2006
    Posts
    86

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    Quote Originally Posted by Shuja Ali
    I understand what you are saying. I wrote API just for reference. Not all COM Interfaces need a wrapper but some of them definitely do.
    Well, thanks a lot for understanding the question.
    So what's the answer?! How do I import all the APIs without writing 100 wrappers?
    Thanks.

  10. #10
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    To answer your question, most of them are already available with .NET 2.0 so you don't need to create a wrapper for it. And for the ones which are not added (which are very few) you will have to use the API reference and then build a wrapper on top of it. Take a look at the Code that is provided and you should be able to understand how it is done.

  11. #11
    Join Date
    Dec 2006
    Posts
    86

    Re: Shell Interfaces (Like IProgressDialog); TlbImp?

    Thanks..
    So I guess I'll have to write a wrapper for all of them.

    But my first question is still there: why does TlbImp.exe not import the interfaces (like IProgressBar) from Shell32.dll?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured