C# Change string in dll through exe -


i'm new here , quite new c# well. been playing around bit , got hang of basic, have digged bit deep level of skill follow.

i have created program have log in , have created dll in same project contain data. have done because want able alter data through program. there ftp-functions , simular involed , program several different users, can't save same password , data everyone.

i have no problem calling data dll password, want change password in dll through settings-form. how can this?

part of main program:

    public static string updatepass()     {      }      public void apply_click(object sender, eventargs e)     {         string newpass = newpassfield.text;         string repass = repassfield.text;          int pass_value = newpass.compareto(repass);         if (pass_value == 0)         {          }         else             messagebox.show("error: passwords not match!");     } 

part of dll password is:

    public static string passdata(string password = null)     {         return (password);     } 

honestly, best bet going avoiding storing password in dll, there no persistent storage of non-static data within dll file. can store constants in dlls, not passwords. now, if want, can store user's password in user specific registry key (encrypted hope :)) , access dll, , let have illusion of storing password in dll , kind of want go.

you can (if you're using 3.5+) using c#'s internal settings mechanism - let transparently write data winform read dll without having worry -where- it's stored.

good luck!


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -