Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 21:18
arnold_w2-May-20 21:18 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 21:27
professionalEddy Vluggen2-May-20 21:27 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 21:41
arnold_w2-May-20 21:41 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen2-May-20 21:45
professionalEddy Vluggen2-May-20 21:45 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Dave Kreskowiak3-May-20 4:27
mveDave Kreskowiak3-May-20 4:27 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen3-May-20 10:00
professionalEddy Vluggen3-May-20 10:00 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Dave Kreskowiak3-May-20 15:01
mveDave Kreskowiak3-May-20 15:01 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w3-May-20 22:23
arnold_w3-May-20 22:23 
If you read above, you'll see that I was asking if there was something similar to a C-programming linker script in C# and I asked if it was possible to place the array in the end of the .exe-file. Why would I be interested in those approaches if I didn't have the source code and am able to recompile it?

I was thinking someone would suggest something along the lines of putting the array in a separate dll and then do something clever with assemblies (which I have no experiences with). If this is possible, this would be perfectly fine with me. Again, how could I use this if I was trying to hack someone else's .exe-file and not implement in my own project?

If you think about it, this would be very useful to avoid having a (separate) file that remembers the user's preferences (e.g. list of recently used documents, use spaces instead of spaces, etc). When you exit the application, you would just update the array that contains the user preferences (of course, since the executing file it locked, you first rename the executing file, then create a new file with the original file name and then self-destruct the original file).

modified 4-May-20 4:30am.

GeneralRe: How can I augment an array inside an .exe-file? Pin
kalberts3-May-20 23:35
kalberts3-May-20 23:35 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Dave Kreskowiak4-May-20 3:26
mveDave Kreskowiak4-May-20 3:26 
GeneralRe: How can I augment an array inside an .exe-file? Pin
kalberts2-May-20 11:49
kalberts2-May-20 11:49 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w2-May-20 21:21
arnold_w2-May-20 21:21 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Robert Bushlow7-May-20 18:59
Robert Bushlow7-May-20 18:59 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w7-May-20 19:37
arnold_w7-May-20 19:37 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Robert Bushlow8-May-20 2:32
Robert Bushlow8-May-20 2:32 
GeneralRe: How can I augment an array inside an .exe-file? Pin
arnold_w8-May-20 3:42
arnold_w8-May-20 3:42 
AnswerRe: How can I augment an array inside an .exe-file? Pin
Eddy Vluggen8-May-20 3:53
professionalEddy Vluggen8-May-20 3:53 
GeneralRe: How can I augment an array inside an .exe-file? Pin
Robert Bushlow8-May-20 4:02
Robert Bushlow8-May-20 4:02 
AnswerRe: How can I augment an array inside an .exe-file? Pin
Richard MacCutchan2-May-20 22:17
mveRichard MacCutchan2-May-20 22:17 
AnswerRe: How can I augment an array inside an .exe-file? Pin
Pete O'Hanlon3-May-20 10:09
mvePete O'Hanlon3-May-20 10:09 
AnswerRe: How can I augment an array inside an .exe-file? Pin
Gerry Schmitz3-May-20 18:54
mveGerry Schmitz3-May-20 18:54 
QuestionAsync await error Pin
Carlos581-May-20 11:01
Carlos581-May-20 11:01 
AnswerRe: Async await error Pin
Mycroft Holmes1-May-20 12:00
professionalMycroft Holmes1-May-20 12:00 
GeneralRe: Async await error Pin
Carlos581-May-20 12:08
Carlos581-May-20 12:08 
GeneralRe: Async await error Pin
Mycroft Holmes1-May-20 12:18
professionalMycroft Holmes1-May-20 12:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.