Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / July 2005



Tip: Looking for answers? Try searching our database.

Get References from com component?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Wendell Buckner - 18 Jul 2005 16:38 GMT
I'd like to know how to read the COM component references to an executable
so I can show them in a "Help About" dialogue... So I can show the com
components dependencies and there version numbers to the users.

Signature

Wendell Buckner/SQN Banking Systems

Wendell Buckner - 19 Jul 2005 17:31 GMT
anybody?

> I'd like to know how to read the COM component references to an executable
> so I can show them in a "Help About" dialogue... So I can show the com
> components dependencies and there version numbers to the users.
Ken Halter - 19 Jul 2005 18:06 GMT
> anybody?

fwiw, the only way I know of to get dependencies from a random com component
is to use the Depends utility or a Process Viewer.. this one's free and
it'll export a list to CSV. You have to start the app and run the viewer.
Select the app in the viewers windows, right click and select the Modules
submenu. There, it lists everything that the app's using.

Process Viewer  for Windows
http://www.xmlsp.com/pview/prcview.htm

If you're looking for a way to get dependencies for your app and/or it's
components, and not just random com components, I've written an add-in that
does this. It generates a class module that contains code to validate
everything listed in your components/references dialogs. Once generated, to
verify that everything's installed correctly, create an instance of the
class and call its VerifyInstallation method. It will go through the list
and fire an event before and after verifying each component, passing the
results down to you and allowing you to cancel at any time.

The list that ComGuard generates could easily be shown in an about box
(sounds like I need to add a new method specifically for that purpose)

Other than ComGuard, Depends and the process viewer, you can, in theory,
open a component (any PE file) as a file (binary of course) and parse its
"Import Table" structure. I've been looking into that as well. Not much info
available for VB. There's a few quickies on PlanetSourceCode.com but I've
seen nothing that would show a list, or anything that resembles a list of
dependencies.

Signature

Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..

Wendell Buckner - 22 Jul 2005 17:07 GMT
Thanks for your response! I would have thought this would be something
pretty common for people to do but I guess not... I'll look into comguard or
some other solution as I don't think I'll be parsing the import table in the
com dll...

> > anybody?
>
[quoted text clipped - 25 lines]
> seen nothing that would show a list, or anything that resembles a list of
> dependencies.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.