Arch4ngel Posted August 17, 2004 Posted August 17, 2004 Well... I learn from PlausiblyDamp how to make embbeded ressources and I have now no more problem with files that are required and apart... they are now incorporated and can't be removed. But I was wondering... is it possible to include DLL in it ? I mean... DLL which are part of my "Reference" section. I have "VBIDE.dll" "Office.dll" and really wish that they could be inside my exe so I don't have to care if they are present. Can someone give me hint, help or anything ? (I don't accept chocolate cookies... :p) Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
neodammer Posted August 17, 2004 Posted August 17, 2004 If i understand the question clearly, you want to embed dll's into res files? I have done this before in vb 6.0 with small dll's . If possible in vb.net unless they changed it, I used to use byte arrays to extract the data and save it to a file on load. I had alot of trouble sometimes though because it seems I would get some error messages "missing dlls" before the file was extracted and saved. I suppose it depends on the dll. Quote Enzin Research and Development
Arch4ngel Posted August 17, 2004 Author Posted August 17, 2004 Well... what I want to have is only 1 exe. No Dll. Dll shall be incorporated in the EXE and make a dynamic access within the EXE to get the right reference. Somebody understand me ? Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Machaira Posted August 17, 2004 Posted August 17, 2004 System DLLs should not be packed into your executable. It destroys the whole reason for having DLLs, to allow multiple applications to use the same code. Quote Here's what I'm up to.
neodammer Posted August 17, 2004 Posted August 17, 2004 hmm I understand you now, but I never heard of code that can dymanicly access a DLL in the res file. I have heard about folks who extract dll's from res file on Load, but never manipulate them while they are still in the res file. Somehow I believe that its possible though. Quote Enzin Research and Development
Arch4ngel Posted August 17, 2004 Author Posted August 17, 2004 You are not understanding. My dll aren't mean to be usable by everyone. I don't want it to be used by everyone. I want it to be as compact as possible. I want 1 exe to move. 1 exe to install. only 1 file to play with. Anyway... If not... I'll make a deployment solution if it's not possible... but I'm sure it's possible... so... Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Administrators PlausiblyDamp Posted August 17, 2004 Administrators Posted August 17, 2004 If you embed the Dlls it will make the whole compile / debug cycle much harder, and also if you bug fix one dll you would have to redeploy the whole lot. Also are the 2 dlls in question ones you have written or 3rd party ones? If third party then you may not have permission to deploy them in this way - only asking because office.dll is the same name as a MS interop dll (and the vbide.dll name rings a bell as well). If you just put the 3 files in one folder then they just need to keep the folder contents together and things should be fine. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
mskeel Posted August 17, 2004 Posted August 17, 2004 I'm pretty sure it can be done Philisophically, Machaira is correct. Packing DLL's in with the exe does kidn of defeat the purpose. There are reasons why packing it all together may acceptable but you should make sure you are doing it for the right reasons. I'm fairly certian I've seen tools that will preform this service for you, but you'll have to pay for them. And I'm not really sure how they do it, wether it's dynamic or wether it unpacks and recompiles things. You might want to take a look at http://www.research.microsoft.com/~mbarnett/ilmerge.aspx for information on a tool called ILMerge. Quote
Arch4ngel Posted August 17, 2004 Author Posted August 17, 2004 Well... okay... you are probably right for that PD. I'll make a deploy and if they are not happy... well... they just have to find another man to do that :p hehe It's so good to be bad. Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
neodammer Posted August 17, 2004 Posted August 17, 2004 You can output the dll to file in a stealth type fashion. I remember running mp3's and avi's in this fashion and when i would tell it to output to file it would act like it was there..but even during the programs life..it never showed in any folder..i still to this day dont know why lol Quote Enzin Research and Development
*Experts* DiverDan Posted August 18, 2004 *Experts* Posted August 18, 2004 This might be a really dumb response, but, I don't know if this is possible with your dll, but if you made it yourself then just keep it in your project as a class. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Arch4ngel Posted August 18, 2004 Author Posted August 18, 2004 Well... this might have been a bright solution... but this is Excel and Office Interop DLL. So it might not "fit" lol anyway... we'll consider this thread closed unless you are able to do it. Thank you all. Been of a very great help Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.