Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

If you embeded from code this means that the exectuable would have to recompile itself to include the resources :)

I dont think that is possible.

Posted

I knew it was not possible after the exe was made but. . .

 

I was just thinking that there was something I could put in one of my classes telling the compler to put certain resources into the exe when it compiles.

C#
Posted
You can write a program that makes other exes as it runs using the compiler services but I don't think you can alter the already compiled. If you want to include files in the exe at design time just right click the project and choose Add Existing and once the item appears in the list select it and set its compile method to Embedded Resource or Content then you can use it using the Resource Reader
.Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
Posted
Yes, I knew that. I am just looking for a shortcut. If I could tell the compiler in my code to include certain files as embedded resources when it compiles a certain class that would just make things a little less troublesome.
C#
Posted

Well, for each class that I would make that would use a class that requireres certain embedded resouces, if they were already in code for the compiler I would not have to worry about making those few clicks.

 

But since I can't do it, I'll just have to make those few clicks each time.

Ohhhh well.

C#

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