C How to save the selected file path to the program s configuration file

Updated on technology 2024-02-09
13 answers
  1. Anonymous users2024-02-05

    You save the path in an XML and read it out the next time you start it.

  2. Anonymous users2024-02-04

    string path =

    Exist. "path"ascending, path);

    Laughing. Read.

    string s = "path") as string;

  3. Anonymous users2024-02-03

    Put the path in a file or registry.

  4. Anonymous users2024-02-02

    Put your last opened address in the entire configuration file, check whether the configuration file exists, read the address if it exists, and default address if it doesn't exist.

  5. Anonymous users2024-02-01

    Didn't understand what you were trying to achieve.

  6. Anonymous users2024-01-31

    c Procedure? Don't bother, and don't save it in ini format. You can add a configuration file to your project. Then one will appear.

    Here's the one I've used.

    The method of reading the configuration file is also very simple:

    string connstr = "sqlstring"];

  7. Anonymous users2024-01-30

    Now it is popular to save it in XML format.

  8. Anonymous users2024-01-29

    What kind of development do you do?

    If it's web development, like whatever, like upstairs, if it's desktop development, like some header files or something, it can also be said;

    For example, if you introduce some packages and you don't write something in the configuration file, the compiler won't know what that came from.

  9. Anonymous users2024-01-28

    The method is as follows, and the specific ** is:

    openfiledialog openfiledialog1 = new openfiledialog();

    Documentation (*.)doc;*.docx)|*doc;*.docx";

    if ( ==}

  10. Anonymous users2024-01-27

    string^ filepath = this->myopenfiledialog->filename

    this->myopenfiledialog is a C component, which can be directly dragged in and used.

  11. Anonymous users2024-01-26

    Read the file:

    The path you choose for the file is:

  12. Anonymous users2024-01-25

    If you want to look into it, look up the folderbrowserdialog class.

    If you want to take it directly.

    folderbrowserdialog browdialog = new folderbrowserdialog();

    true;Please select a location to save the page";

  13. Anonymous users2024-01-24

    environment

    This is the class that reads the information of the system, and a lot of information can be extracted from here.

Related questions
14 answers2024-02-09

In fact, you don't need to make optical discs, now the hard disk is very large, you can directly use one-click recovery software to back up the C disk to your hard disk, which is faster than the optical disc, and you are not afraid of problems like disc wear and tear (you can't read it, of course you can't use it)! >>>More

27 answers2024-02-09

You can pass the main window as a parameter to a child window. >>>More

11 answers2024-02-09

textreader reader;

int linecount = 0; >>>More

4 answers2024-02-09

There are three ways to reinstall the system: reinstalling the system, it will only change the system in the C disk of the computer, such as the files and things in the D and E and F disks of the computer. >>>More