-
Dec 14th, 2012, 02:50 PM
#1
Thread Starter
Member
[RESOLVED] DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
Hello guys!
I need some help in here, actually i need any help you could give me.
The thing is, I do know how to make an attached dll made in c++ startup, but in vb 6 I don't.
The only thing I know is that i need to create a file (that I DON'T EVEN KNOW HOW SHOULD BE NAMED) with the extension ".def".
It should hold some configurations about the linker and stuff...
One of that stuff is the "Exports" properties. There i should put the "DLLMain" function declared in my dll and then the magic will happen.
At list, thats what people say in some forums...
Basically i need to know how to create an injectable Dll, the porpouse is to run it in mine "Lost Source Code" .exe. I added a new window that do some cool stuff that i wanted to be shown there.
Any tip of the name? content? anithing?
And sorry for the POOR ENGLISH!
Thanks in advance.
Did you like?
Rate it!
by SHB
-
Dec 14th, 2012, 08:11 PM
#2
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
a .DEF file is simply a file you use for the compiler to export unmangled names. Without it functions are exported from C++ DLLs with their names mangled. I.e. It adds numbers and non-alphanumeric characters. You may name the .DEF file anything you want so long as it has an "EXPORTS" header and the .DEF extension.
-
Dec 16th, 2012, 08:21 AM
#3
Thread Starter
Member
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
THANKS MAN! Helped a lot!
I'll try it out.
Did you like?
Rate it!
by SHB
-
Dec 18th, 2012, 02:04 PM
#4
Thread Starter
Member
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
I am tring the following
"C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" /make "C:\Users\myuser\Desktop\manager\Project1.vbp" /D DEF="C:\Users\myuser\Desktop\manager\Config.DEF"
But still does not work.
What am I doing wrong?
Any help would be GREATE!
Did you like?
Rate it!
by SHB
-
Dec 18th, 2012, 05:05 PM
#5
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
A DEF file is used by the VS C++ compiler not the VB6 compiler.
-
Dec 20th, 2012, 11:41 AM
#6
Thread Starter
Member
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
Originally Posted by Niya
A DEF file is used by the VS C++ compiler not the VB6 compiler.
Oh!
Question Answerd!
Thanks at all.
Did you like?
Rate it!
by SHB
-
Feb 26th, 2013, 02:47 PM
#7
New Member
Re: DLL Injection [DLLMain in VB6] Help with .DEF File [HELP!]
Originally Posted by henriqueshb
Oh!
Question Answerd!
Thanks at all.
I just ran across this VERY excellent code that WILL allow you to create a STANDARD .DLL using VB6!
http://planet-source-code.com/vb/scr...54190&lngWId=1
I followed the step-by-step instructions (created VB6 Add-In), and copied files to make a "Standard DLL" project template.
Works perfectly (and it's FREE)!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|