borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Can\'t explain why! Please Help!ActiveX Component Can\'t Create object)Next Topic (Error registering craxdrt.dll,craxddrt.dll) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : How Can I Extract DLL Functions, Subs, Etc.?
Poster Message
Afshin_Zavar
Level: Professor


Registered: 17-07-2003
Posts: 74

icon How Can I Extract DLL Functions, Subs, Etc.?

Suppose,
you have a DLL file ,that you don't have any information about it. now how can you extract all functions,subs and procedures of that DLL file?

      

[Edited by vbgen on 30-07-2003 at 01:16 AM GMT]

____________________________
Persia

17-07-2003 at 02:05 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
viklele
Level: Big Cheese

Registered: 16-10-2002
Posts: 22
icon Re: Help me please

Using "depends" utility that ships with Visual studio, you will be able to get the names of the functions, subs etc, but this will not get you any info regarding parameters.

If the DLL is an activeX DLL, you will be able to get a lot more info using VB's object browser.

BTW, what is this DLL that you want to "discover" ? I hope you have acertained that you are legally allowed to use it ? If yes, then the originator of DLL should be able to provide you the documentation.

- Vikram

____________________________
------------------------------------------
Components For Your Software Solutions
http://www.viklele.com

19-07-2003 at 08:14 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
gulen
Level: Guest

icon Re: How Can I Extract DLL Functions, Subs, Etc.?

I have the same problem. I could not understand how I can extract the dll functions using visual studio.I would be pleased if you could help..

thanks in advance

gulen

07-05-2004 at 11:36 AM
| Quote Reply
saladirs
Level: Guest

icon Re: How Can I Extract DLL Functions, Subs, Etc.?


You can use Functions and Subs of particular DLL file provided by VB or User, But you can't extract and you can't see the code.

Why you want to extract the dll.

You can create your own dll file that option given by VB.

Ravi Sankar

07-05-2004 at 02:01 PM
| Quote Reply
gulen
Level: Guest

icon Re: How Can I Extract DLL Functions, Subs, Etc.?

It is not necessary to extract the dll file. Instead, as you said, I can use Functions and Subs of particular DLL file.. How can I view the functions and subs?

07-05-2004 at 02:20 PM
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1652
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

You can get the list of functions and subs in dll with dependancy walker, program that is shipped with VB (usually you can find shortcut to it in Start - Programs - Microsoft Visual Studio 6.0 - Microsoft Visual Studio 6.0 Tools - Depends).

But, it will list only the names, not the parameters.

____________________________
If you find the answer helpful, please mark this topic as solved.

07-05-2004 at 04:21 PM
View Profile Send Email to User Show All Posts | Quote Reply
gulen
Level: Guest

icon Re: How Can I Extract DLL Functions, Subs, Etc.?

thanks

Gulen

12-05-2004 at 06:54 AM
| Quote Reply
enivra
Level: Guest

icon Re: How Can I Extract DLL Functions, Subs, Etc.?

i think my question is related to this however.

my program requires msvb60.dll (if i remember file name exactly). This is a BIG file, i need to distribute this prog, i see not every computer has this. So, can i alter BIG file to have codings needed for my app only?

10-11-2004 at 06:14 AM
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1652
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

Nope, you cant. This file is part of visual basic run-time files, and essential for every vb application to work. And also, if it would be possible, it is not legal to take a part of some code that is protected and use it in your own dll.

____________________________
If you find the answer helpful, please mark this topic as solved.

10-11-2004 at 10:28 AM
View Profile Send Email to User Show All Posts | Quote Reply
sivadhas
Level: Trainee

Registered: 28-05-2005
Posts: 3
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

The easy way to extract the activex dll is using Visual Basic Object Browser.

Is it useful to anybody!!!

Regards

M.Sivadhas




[Edited by sivadhas on 28-05-2005 at 05:16 PM GMT]

28-05-2005 at 12:11 PM
View Profile Send Email to User Show All Posts | Quote Reply
Dil
Level: Trainee

Registered: 09-01-2006
Posts: 1
icon About .dll

Hai
As u said Iam able to open dll file  using depends and view the dll functions but iam unable to see the syntax(prototype of the functions) .Can u tell me how to view the syntax of the functions/tell me how to use the unknown dll file for VB prog.
I will be happy with ur reply.

Thanking u
   M.Dileep

09-01-2006 at 02:22 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1652
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

You can't. It will tell you what the name is... but that itself can be useless unless you happen to know what the procedure does to begin with. You can assume what the routine does... but the variable types that are passed to it are different based on what the programming language is that was used to write the dll.

If you received the DLL and have permissions to use the dll (and to redistribute it, since without that, the program isn't of use to anyone other than yourself), you can receive all the information on it's use from where it came. If the "unknown dll" is just some dll you found on the computer, unless it's an OS dll (user32.dll, kernel, etc) chances are you can't use it legally, or if you can use it, you can't redistribute it.


However... if you're still referring to the msvb60.dll file... Open VB... open a form... put on a control... double-click it... and congratulations, you're using the dll (basically). You can't strip out things, you don't make a reference to the file, you can't remove a reference from the file. It's always there. Which means that if you type something that's a function name in it (or the other runtime files), you'll automatically be prompted with what it takes as a parameter.


____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

09-01-2006 at 08:07 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
dandv
Level: Trainee

Registered: 12-01-2006
Posts: 1
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

Use http://www.heaventools.com/PE_Explorer_Exports_Viewer.htm

____________________________
http://dandv.blogspot.com

12-01-2006 at 09:23 AM
View Profile Send Email to User Show All Posts | Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 1036
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

Hi,
A quick goole came up with this: Google search for using API in VB which seemes quite useful.. there used to be a full bunch of website for how to declare APIs in vb.
Have you also tried the API viewer add=in?
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

13-01-2006 at 12:50 AM
View Profile Send Email to User Show All Posts | Quote Reply
Alijsh
Level: Trainee

Registered: 09-08-2007
Posts: 1
icon Re: How Can I Extract DLL Functions, Subs, Etc.?

@Afshin_Zavar

Apart from object browser, I know this free application of Steve McMahon: ActiveX Documenter.


[Edited by Alijsh on 09-08-2007 at 04:54 AM GMT]

[Edited by Alijsh on 09-08-2007 at 04:56 AM GMT]

09-08-2007 at 04:53 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : How Can I Extract DLL Functions, Subs, Etc.?
Previous Topic (Can\'t explain why! Please Help!ActiveX Component Can\'t Create object)Next Topic (Error registering craxdrt.dll,craxddrt.dll) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2011 Andrea Tincaniborder