Click to See Complete Forum and Search --> : Dll question
Ha555
October 9th, 2009, 05:25 AM
I would not like to distribute my dll as a separate file in the release of the tool I made
but my application needs it to run properly although it is sure to not be there as a necessity
So I wonder how I can merge the dll into my exe so it will be out as a complete whole single entity
Thanks a lot for any replies
boudino
October 9th, 2009, 05:38 AM
What is the technology? It is .NET or C++ or something else? Generally speaking, your could link the library statically, or embed it to .exe as a resource.
Ha555
October 9th, 2009, 06:10 AM
But how ? I have only the dll
Star Beaver
October 11th, 2009, 04:43 AM
Hello, Ha555
I have a similar problem in this link http://www.codeguru.com/forum/showthread.php?goto=newpost&t=486140
Did you have a solution already ? Please help me
Thank you very much
Ha555
October 11th, 2009, 04:59 AM
Hello, Ha555
I have a similar problem in this link http://www.codeguru.com/forum/showthread.php?goto=newpost&t=486140
Did you have a solution already ? Please help me
Thank you very much
You see it or not!
boudino's INTENTION was to keep me online at that time so that I would be charged higher! (I was using his internet service!). Ripper!
It's his greed: he has a store of T shirts, coffee, he has multiple ways to publish his views, his books he wrote....That greedy!
Ha555
October 11th, 2009, 05:14 AM
Oh well,
I have not resolved my own problem and as I can see in Find All Your Posts \
I am surprised as you too do something the same.
Let's close our eyes and make a wish that someone will help us out.
Someone please throw in one post to help 2 persons at the same time ?
Somebody please ?
MrViggy
October 12th, 2009, 04:35 PM
Actually, boudino gave you two solutions to your problem:
1) If you have the source code, compile the DLL into a static library instead. Link your EXE with the static library.
2) If you do not have the source code, embed your DLL into your EXE as a resource. Then, before you start anything in your EXE, you write the DLL resource to disk, and load it from there.
Viggy
Ha555
October 13th, 2009, 05:30 AM
thank you ******** me
1> I stated in n my OP that I loaded it inmy memory already. Why did he repeat it ? lenghthening the period ?
2> Ok I loaded it into memory
HINSTANCE hlib=::afxloadlib("hello.dll");
if(null=hlib){}
why is hlib always null ?
<* is c;clarify, a way of deceving people online once filtering that word to remind everyone within the family keep on cheating people more and more. should be a method of an old woman online but very agreessive>
MrViggy
October 13th, 2009, 11:09 AM
Assuming you mean AfxLoadLibrary (http://msdn.microsoft.com/en-us/library/d5fzd0ek.aspx). NULL means there was an error loading the library.
Viggy
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.