I just published this simple console application that is supposed to show a textbox with the value of a setting called “userID” with value 1001. This works like a charm. Now what I need is to change this value outside the editor, from notepad etc.
When I open the application a lot in there is non-sence (& o! -å Þþþ,o” Ü+) etc. but with a quick (ctrl + F) I found the value 1001, and changed this to some other integer. I ran the application again, and it failed, didn’t even give any userful error-message. At a point I tried just opening a newly published non-corrupted version of the application, didn’t change anything, then saved from notepad, and it were also corrupted. It seems like notepad can’t open some characters or something. Do I need to publish the application in some specific text-unicode language or something?
Help much appreciated 🙂 I know it sounds like a stupid application, but it is just a test of concept 🙂
I use vb.net for this
You need to use a binary file editor (also called hex editor). Visual Studio can do that if you open a file in binary mode.
Notepad is a text editor, when you save a binary file with it it will mess things up in all kinds of ways, most obvious being replacing \n with \r\n.
Also everything else about your question is plain scary. Why are you editing an EXE file??