C The problem of reading data from the auto start program at startup

Updated on technology 2024-04-18
18 answers
  1. Anonymous users2024-02-07

    It should be that there are a lot of contents in the system that are not fully loaded when you boot up, and you start the program, so you can't find the xml file when you boot up. You try to put the xml file in the directory where the program is located and use the file name to see it. Or you set a delay that delays the time it takes to read the XML file.

  2. Anonymous users2024-02-06

    This description won't solve the problem! Look at what the error message is.

    Post it and see it.

  3. Anonymous users2024-02-05

    This is the problem of the path variable,You must be a shortcut placed in the boot boot folder,When Windows starts,The path variable of the program will be in the startup file,And you don't limit the absolute path of XML in **,So that the program will look for the XML file in the Windows startup folder,Similarly, you put the shortcut of the exe on the desktop and double-click it will also have a problem,The path variable is determined according to the file path of the mouse double-click, It is recommended to write an absolute xml path in the program, or use to get the directory of the main executable file, and your xml should also be placed in this directory, so the xml path can be written as +"" 。

  4. Anonymous users2024-02-04

    How do you take the file and miss it?,**How to write the number of returns? Try it in the following way.

    string strsourcepath = "\

    string configpath = strsourcepath +"";

  5. Anonymous users2024-02-03

    1.Encrypt and store, read and decrypt e.g. SHA12Registry.

    3.Database.

    4.If you have a server, put it on the server side.

  6. Anonymous users2024-02-02

    Serialized into a binary file, deserialized when the program starts.

  7. Anonymous users2024-02-01

    An XML file can be added.

  8. Anonymous users2024-01-31

    You're looking to build a database, right?

  9. Anonymous users2024-01-30

    How did you get the program path, and did you get it in the wrong way? You can write the program installation path to the registry, and then read the program path from the registry when the program starts.

  10. Anonymous users2024-01-29

    I haven't figured it out, but you can try to prevent the user from closing and then start the update when the user point closes, and hide this form (you have to deal with it in the program to determine whether it is the closure of the user point, or the system reboot or the closure of the form caused by the closure).

  11. Anonymous users2024-01-28

    How do you get the path to the updater?

  12. Anonymous users2024-01-27

    Why is it that no one knows about the program of the mobile platform since it is launched, or is it a secret? Still not spreading. Looking forward to the appearance of the master. View the original post

  13. Anonymous users2024-01-26

    Reply5 The effect of self-starting with shortcuts is not ideal, I tried, and the phone is slow when it starts! View the original post

  14. Anonymous users2024-01-25

    1. The main reason is that you are not configured correctly, and there is no mdb file (that is, the physical file of ms sql) in the corresponding directory

  15. Anonymous users2024-01-24

    Truly. MDB doesn't have a file name!

  16. Anonymous users2024-01-23

    There are four options for auto-start at boot:

    1.Add a shortcut to the Start Menu Launch Links folder (requires user login)2Add the items that need to be started to the registry hkey local machine software Microsoft Windows CurrentVersion Run (no verification is required to start the start).

    3.Scheduled tasks in the Windows Control Panel (can be started at boot without user login).

    4.Windows Service (does not require user login, boot start).

  17. Anonymous users2024-01-22

    Compile the program you wrote into an exe and drag it into the startup item. It will start automatically every time you turn it on. It's better to make it run in the background.

  18. Anonymous users2024-01-21

    Was it a program you wrote yourself? If that's the case then you know, I know one but it's a little risky, I don't know if you'd like to try it!

Related questions
27 answers2024-04-18

You can set up a scheduled task, in fact, it seems to be more troublesome, if you can use the e language to program some small programs, generate exe files, and then create tasks, so it becomes much simpler. >>>More

7 answers2024-04-18

In the C language. An integer constant starting with 0 refers to octal. 027 is 2x8+7, so the answer is c.

12 answers2024-04-18

Steps to remove a launch:

1. Use the shortcut key combination "win+r" to open the "Run" dialog box. >>>More

12 answers2024-04-18

The easiest way to do this is to pull the executable file into the boot menu in the Start menu. >>>More

12 answers2024-04-18

There are many possibilities for this problem.

First of all, antivirus, some viruses will damage the system files, causing the system to be unstable after standby, and it can't be started, if there is still this kind of problem after antivirus, one may be that the damaged system files are not repaired, and there may be some software you installed that causes system instability, resulting in system conflicts, and the startup failure caused by the inability to call some resources at the time of startup, you can try to uninstall some software and try again. >>>More