Jump to content

Find whether a dll or exe is COM based

- - - - -

  • Please log in to reply
3 replies to this topic

#1
empireofempires

empireofempires

    Newbie

  • Members
  • Pip
  • 4 posts
Hi Friends,

I am a newbie in COM based programming. Due to the urgency and after lotz of googling i havenot found any answer so i am posting my doubt in this forum.

1. I want to find out functions in a third - party dll file along which no documentation was provided. I tried out using dependency walker but unable to find out the exact function and parameters resides in that dll. How my requirement can be solved?

2. Is there any software to check whether an exe or dll is COM compatible.

Thanks in Advance. If any forum etiquette is violated guide me.

#2
kresh7

kresh7

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 661 posts
Okay i just wrote a lot and now it's all lost so i will write in a thew lines my help to you.

Read about the EAT - Export Address Table (Table which contains all Functions exported by an DLL or EXE File) for the use of third party app's
A good tool to find this kind information is PEiD gives you even more information about an PE File.
To the params of an function that is exported you need to learn how to debug code.
and for last i wish you good luck and sorry for my bad english
Posted Image

#3
empireofempires

empireofempires

    Newbie

  • Members
  • Pip
  • 4 posts
Thank you kresh.

I am trying out the ideas given by you. Your english is good, no one says it as bad.

Update you after trying out the solutions.

Anyway my actual requirement is, prepaq a compression tool has the dll called packjpg.dll. This packjpg.dll encodes functions that compress JPEG files to a lossless compressed file. I am trying to use it to my testing program that can use the packjpg functions( An excellant encoding algorithm ). When used dependancy walker the name of the function with some extra chars got fetched. I will try out the solution provided by Kresh dude and update this thread.

-----
Everything is possible

#4
Ancient Dragon

Ancient Dragon

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 400 posts
>>When used dependancy walker the name of the function with some extra chars got fetched.

That may or may not have a thing to do with COM. c++ mangles names so that overloaded functions will have unique function names when the linker does its thing with them. This wiki linkexplains it in more detail.
Visit Grandpa's Forums, a social networking forum, with family-oriented arcade games, blogs, discussion forums, and photo albums.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users