Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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)

"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

Posted
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.
Posted

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 ?

"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

Posted

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...

"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
Posted

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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

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.

Posted

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.

"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

  • *Experts*
Posted
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.

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted

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

"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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...