Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2005, 05:53 AM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JamJunky
Default READING EXE PROBLEMS!

I'm currently looking for a way to open any named exe file and read it to determine the version of a named activeX dll that it needs. Basically we have over 200 programs in our system but some versions of the programs are using a different versions of our main dll. It'd be handy if I could write a program that knew which dll an exe needed. Part of the problem seems to be that the only named dll compiled into our exes is the msvbvm60.dll (vb run-time dll) which the program needs to run. Any other dlls references aren't listed as straight text within the exe which is why I can't find them. Any ideas on how to look for it? I can determine the version of the dll by reading it alright (I'm not looking for the version number as this is unreliable but a particular piece of code that is used by the later version of the dll). Like, if the program crashes when we have the wrong dll, it should be possible to perform the check without running the exe.

I've already checked the MSDN (it's always a pain finding stuff in there) but exe format is not Microsoft's. Exes are formatted in a type called Portable Executable (PE) format and are used by Os2, Unix, Linux, Macintosh, Windows and several other OS's. Believe it or not, the layout of all these exe files are the same.

I've tried opening the exe in notepad, hex editors and I've also used the Depends.exe utility by microsoft - they all only see the msvbvm60.dll. I know the info is in there but I can't figure out where. It might have something to do with howreferences to COM objects are stored within the exe but I'm not sure.

Does anyone have any ideas? Please Help :(. Thanks


Jam Junky





Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership: aspnet_sql.exe -> aspnet_regsql.exe ricpue BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 9th, 2006 11:40 PM
problem creating .exe from MFC AppWizard(exe) c++ method Visual C++ 0 July 7th, 2006 03:28 AM
Exe file problems tinoco Beginning VB 6 4 February 9th, 2006 03:46 AM
problems installing telephone.exe (ch. 6) orangeale BOOK: Beginning ASP 3.0 1 March 29th, 2005 12:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.