Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 149,547 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,562 people online right now. Registration is fast and FREE... Join Now!




Import DLL Without File Creation!

 
Reply to this topicStart new topic

Import DLL Without File Creation!

Ropy
7 Nov, 2007 - 10:19 PM
Post #1

New D.I.C Head
*

Joined: 28 Sep, 2007
Posts: 12


My Contributions
Hi All,
Everyone knows that when we import a dll file into a vb.net project, that dll file will be placed into the project output. I want to import a dll as class! I mean "importing a dll without file creation" or "importing a dll file into the project" such as a zip file!
User is offlineProfile CardPM
+Quote Post

aceofspades686
RE: Import DLL Without File Creation!
8 Nov, 2007 - 12:44 AM
Post #2

D.I.C Regular
Group Icon

Joined: 8 Oct, 2007
Posts: 261


Dream Kudos: 100
My Contributions
You mean, to take a .dll and instead of having it as a separate file, encapsulate it inside of your own application? I'm not certain but I don't see this as being possible since dll files are pre-compiled (I believe, someone correct me if I'm wrong).

Also, out of curiousity, why is it that you're wanting to do this?
User is offlineProfile CardPM
+Quote Post

Ropy
RE: Import DLL Without File Creation!
8 Nov, 2007 - 01:37 AM
Post #3

New D.I.C Head
*

Joined: 28 Sep, 2007
Posts: 12


My Contributions
QUOTE(aceofspades686 @ 8 Nov, 2007 - 01:44 AM) *

You mean, to take a .dll and instead of having it as a separate file, encapsulate it inside of your own application?


Absolutely!!! I want to build a zip self-extractor and want to put .dll zip class into my application to make it single file! Just Like A ZIP File!

User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Import DLL Without File Creation!
8 Nov, 2007 - 04:29 AM
Post #4

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 9,482



Thanked: 161 times
Dream Kudos: 9050
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
When you import a DLL you have no choice but to do it the way it is, you cannot change that. And since, as aceofspades686 pointed out, a DLL is compiled, you cant just encapsulate its functionality like that.
User is online!Profile CardPM
+Quote Post

born2c0de
RE: Import DLL Without File Creation!
10 Nov, 2007 - 11:35 PM
Post #5

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,026



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
You could save the entire .dll file dump as a Binary Resource in your EXE file.
When you execute the program, save the resource into a .dll file and call the function.

That way you'll still have a single file (the DLL file is embedded in the EXE File).
User is offlineProfile CardPM
+Quote Post

dawmail333
RE: Import DLL Without File Creation!
28 Jan, 2008 - 03:15 AM
Post #6

D.I.C Head
Group Icon

Joined: 2 Jul, 2007
Posts: 52


Dream Kudos: 100
My Contributions
I think you might be looking for ILMerge. Look it up on Google.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 09:35PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month