I have a set of dlls which my client is using on his application. Now as the company has stopped giving support for this package. i have to manage the application on my own. But thwe problem is that all the cfunctions etc are in dlls.

The Dlls have been written in VB.

Any guess on how i can do that..

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Apparantly No its not possible at the most you will get all the classes, their public methods and properties. getting the logic is not possible.
to get the classes, methods and properties create a blank vb project add the reference of the dll and press F2 this will open the object browser select your dll from the dropdown and u can see the classes, methods and properties

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
You can add a reference to the dll. But then you need to know what is the method, event in it
Dim objCOMDLL as Object
Set objCOMDLL = CreateObject("myDll.myDllClass")

~ fantasy ~
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

fantasy1001: "But then you need to know what is the method, event in it" this can be got using the object browser. what u cant get is the logic in the method
pg_india_job,  The only program I know of that can "spy" on a VB programmed application is made by Numega Software ( and is called Smart Check.  Assuming these dll's are not that complex it is probably best to either have them reprogrammed in house or purchase an alternative from a company who does support their product.

H ave you contacted the company to see if they will provide the source code?


I don't want to give you false expectations, but some times
VB programs are compiled in P-Code. If this is the case,
then you have a reasonable chance to get it reversed.

Anyway, it's very rare nowadays to see VB programs
deployed in the P-Code form.


To do it legally, you cannot go poking around inside the dlls (decompile etc).

What you need to do is develop test stubs which will exercise each function all with all possible parameters (or a reasonable subset).  From the you write a specification.  You then have someone (the proverbial "virgin") write code to meet that spec.

For example, suppose one of the exposed functions was (sorry it's gonna be pseudo-C)

int Max(int a, int b);

You would write a little program that would apply a whole bunch of a's and b's:
for (a=0 to 100)
   for (b=0 to 100)

and you get output
0  0  0
0  1  1
50  48  50
100 100 100

At this point it is very apparent that Max(a,b) simply returns the greater of a and b so you write a requirement to that effect.

Database managers and stuff will be much more difficult of course but you have a number of things working in your favour:
- The function name will usually be indicative
- You've got the calling code so you know how it is used.
- You are the only client so, if it is not perfect you can easily fix it, either in your own code or in the (new) library.

Also if the library serves a common function (like an ISAM), see if you cannot find a product that is close enough and just wrap it to fit.

Note that, most of the time VB programs use C libraries to do things which cannot be written in VB!

pg_india: some feedback please
pg_india_jobAuthor Commented:
really sorry i was out..

i tried the object browser method..its better to know sumthg abt dll(ya it gave functions/classes)

Does dlls have a can i know which is the first class/function being called..

The way my client is calling is just createobject("classname.object") after that nothing..everythg is happening in to do that which is the first function/class that is getting initalized...... which software is that..i checke dthis site but couldn't find a one...tell me which product is that...

Sir Andrew suppose its in p-code what can be done on that...any idea on how can it be decompiled...
for the dlls written  in vb you can have an event for the class's initialising ie something like the constructor. from the constructor some methods may be called directly from the constructor. so unless you have the code it wont be possible to identify which function is being called.
1. decompiling is against the rules of EE as the same is not Open source.
2. no decompiler is 100% successful for VB dlls.

Well if the DLL was compiled in P-Code there exist some decompilers...
But, again, it's very rare to see P-Code binaries deployed commercially today.


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.