Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 9th, 2006, 4:35 AM   #1
zl0h
Newbie
 
Join Date: Nov 2006
Posts: 4
Rep Power: 0 zl0h is on a distinguished road
Embedding a DLL

Hi,

I'm wondering about how to embed a DLL into a C application.


At the moment the program loads the DLL which is in the same directory like this:

HINSTANCE   hLib;
(...)
hLib = LoadLibrary("FILE.DLL");

But I'd like to embed the DLL into the C application from the first place so I either extract and load it later OR even load it from inside of the application itself.



Hopefully anyone will be able to help me out.

Thank you
zl0h
zl0h is offline   Reply With Quote
Old Nov 9th, 2006, 6:16 AM   #2
Iftikhar
Programmer
 
Iftikhar's Avatar
 
Join Date: Oct 2006
Location: London
Posts: 40
Rep Power: 0 Iftikhar is on a distinguished road
Send a message via MSN to Iftikhar
please have a look on the following URL, might be it is useful for you http://blogs.msdn.com/oldnewthing/ar...21/673830.aspx
__________________
Iftikhar Ahmed Khan
For doing an experiment on programmer's mood please visit http://uxisfyp1.brunel.ac.uk/cspgiak
Iftikhar is offline   Reply With Quote
Old Nov 9th, 2006, 9:34 AM   #3
zl0h
Newbie
 
Join Date: Nov 2006
Posts: 4
Rep Power: 0 zl0h is on a distinguished road
I embed the DLL via Byte Array Header now. Just got some trouble loading it from memory at the moment.
zl0h is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Errrrrm. Embedding sound files? Sane HTML / XHTML / CSS 23 Jan 28th, 2006 11:43 PM
Embedding a batch file into a C++ app vynkz C++ 22 May 18th, 2005 9:59 PM
Win32 Api help, embedding something? brokenhope C++ 0 May 13th, 2005 10:58 PM
Embedding Files magic_e Visual Basic 3 Jan 21st, 2005 12:32 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC