Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to determint whether two DCOM files (DLL files) are the same or not?

Posted on 2009-03-31
2
Medium Priority
?
546 Views
Last Modified: 2013-11-25
Hi Experts:

    I have a VB6 project producing a DLL file. I did the following experiment:
1. I open the VB6 project and compile it, then rename the resulted DLL file to Lib.DLL_1
2. compile again and rename the resulted DLL file to Lib.DLL_2
3. compare the files Lib.DLL_1 and Lib.DLL_2 with HEXCMP software(from http://www.grigsoft.com/hexcmp.htm)
4. I tried to compare these two files with MD5.exe, and the MD5 codes are different.

    Then the software show me that these two DLL files are different, while I expect them to be the same. Please help me at the following concerns:
1. Why would I get this result? Is it because of the time stamp of the files? or something else?
2. Can you suggest me a good way to compare the DCOM files?

More related information that I have: I have two files A and B with different names, and shown identical by HEXCMP and MD5.exe, so the file name should not matter. File B is obtained by moving A to a Visual Source Safe repository, and then retrive a copy from the repository. Then A and B are both renamed.

Thank you!
0
Comment
Question by:huangs3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 22

Accepted Solution

by:
cj_1969 earned 2000 total points
ID: 24039953
I'm no expert but reading this might help explain it ... http://en.wikipedia.org/wiki/MD5

Given that the hash is comprised of padded code, based on 128 bit segments then any optimization within the compile process that might change the order that the code is created and written out in not aonly CAN but WILL affect the hash code that is generated by the resultant file.

That said ... I don't know what is actually going on when you compile your code so this is purely hypothetical and just one idea/reason it would be producing different values.
0
 

Author Closing Comment

by:huangs3
ID: 31565146
You point out a part that nobody except Microsoft programmer may know, and we cannot not tell anything without that
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Invest in your employees with these five simple steps to improve employee engagement and retention.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question