in QB4.5 you have a facility to show the contents of a QLB.
Is there perhaps a way to see what routines are in a Windows DLL ?
What is in a DLL
-
- Posts: 248
- Joined: Jul 01, 2010 9:35
Re: What is in a DLL
You can get a list of the DLL “exports”, which generally means the callable procedures that it contains, in the form of a module definition file, with the pexports or gendef utilities.
-
- Posts: 248
- Joined: Jul 01, 2010 9:35
Re: What is in a DLL
@MichaelW
Hi, thanks and woosh what you said is to high so I can't come by. I am an old QB4.5 man (yes literally old) and not so hot with the inner workings of Windows.
Is there perhaps a specific file or program that I can use to get the info.
Hi, thanks and woosh what you said is to high so I can't come by. I am an old QB4.5 man (yes literally old) and not so hot with the inner workings of Windows.
Is there perhaps a specific file or program that I can use to get the info.
Re: What is in a DLL
I can’t find any good place to get pexports or gendef ATM; perhaps someone else can provide a link. Because I have a MinGW installation on my system, I can easily get pexports or gendef using mingw-get.exe and these command lines:
mingw-get install pexports
mingw-get install gendef
mingw-get install pexports
mingw-get install gendef
Re: What is in a DLL
If you download Tcc (Tiny C), get the win .zip file.
http://download.savannah.gnu.org/releases/tinycc/
Just extract it into some empty folder.
It's completely unobstrusive to windows, no installer or anything, just the compiler .exe's.
In there you'll find tiny_impdef.exe.
The command is tiny_impdef somefile.dll where somefile.dll you will have copied into the folder.
I suggest you stick FreeBasic's start_shell into the folder and start from there.
You will get somefile.def produced.
You will see the functions of the dll.
If you don't have start_shell from fb then compile this, It'll do:
http://download.savannah.gnu.org/releases/tinycc/
Just extract it into some empty folder.
It's completely unobstrusive to windows, no installer or anything, just the compiler .exe's.
In there you'll find tiny_impdef.exe.
The command is tiny_impdef somefile.dll where somefile.dll you will have copied into the folder.
I suggest you stick FreeBasic's start_shell into the folder and start from there.
You will get somefile.def produced.
You will see the functions of the dll.
If you don't have start_shell from fb then compile this, It'll do:
Code: Select all
'STARTShell
shell "cmd"
sleep
Re: What is in a DLL
pexports: https://sourceforge.net/projects/mingw/ ... /pexports/
gendef: https://sourceforge.net/projects/mingw/ ... on/gendef/
If you want to see technical details, code/data sections, disassemblies, etc. I'd use the objdump program from binutils for that.
binutils: https://sourceforge.net/projects/mingw/ ... /binutils/
gendef: https://sourceforge.net/projects/mingw/ ... on/gendef/
If you want to see technical details, code/data sections, disassemblies, etc. I'd use the objdump program from binutils for that.
binutils: https://sourceforge.net/projects/mingw/ ... /binutils/
-
- Posts: 248
- Joined: Jul 01, 2010 9:35
Re: What is in a DLL
Thank you for the replies.
I will give them all a try.
I will give them all a try.
Re: What is in a DLL
hello Theunis Jansen
you can also get "Dependency Walker" it's a free program that will show the dependencies of a program or dll, in the case of a dll
it will also show all the exported functions and more, you can download it from http://www.dependencywalker.com/
you can also get "Dependency Walker" it's a free program that will show the dependencies of a program or dll, in the case of a dll
it will also show all the exported functions and more, you can download it from http://www.dependencywalker.com/
Re: What is in a DLL
Or if you have a Microsoft PSDK installed, there should be a dependency walker (depends.exe) in the bin directory.