Use good Regsvr32 to solve system difficult and incurable diseases _windowsxp

Source: Internet
Author: User
Tags ole
first knowledge of Regsvr32

Presumably Regsvr32 everyone must be not unfamiliar, in some computer tutorials or computer magazines can always see its figure, but such a high mirror rate of "small star" in many of our eyes but it is very mysterious, the original general articles are rarely introduced to it, At most just a few words about how to use it to solve common problems, many friends may have been under the guidance of some articles have been used many times Regsvr32, but for its "life" but still do not understand, today I borrowed this article to dispel the mystery of our minds, Take us to meet this Regsvr32.

   the background and function of Regsvr32

Regsvr32 is a Windows system embedded program, not only in the Windows 2000/XP,  currency mo 赪 indows 98 found its figure. Its main function is to register or uninstall the dynamic link library file (DLL) and embedded control (OCX), you can not underestimate it, with it, many software or operating system problems can be solved.

   Basic Articles  

Just now we talked about the DLL and OCX, it is estimated that a lot of readers in the heart will be out of such a problem, these two dongdong what is the meaning? What can they do? Don't worry, listen to the writer slowly.

DLL file: The full name of the DLL is the dynamic link library, which is called the "dynamically linked libraries file" in Chinese. In a Windows system, a DLL file can perform a function like an EXE file, but it cannot run as standalone as an EXE file, and it must be invoked by other programs, and it is important for the execution of a program, and most programs or system components are executed Must be linked to the DLL file to function correctly. In other words, DLL files are like a common library of functions in a database. Each designer can call them randomly in their own programs so that not only do you not have to write some basic functionality (because they are already done by DLL files), but you can also make the program smaller. Therefore, if a DLL file is lost, it can cause a software or a system module to fail and not work properly.

OCX file: OCX file is the full name of the object linking and Embedding (OLE) control Extension, the Chinese name is called "embedded object Controls", its role in fact and just talked about the DLL file is particularly similar, In fact, the so-called OLE we are usually very familiar with, simply like in Word can use Excel data, WordPad can embed picture files and so on these functions. For example, the Clipboard is like a simple data share, while OLE is an object share.

Just now we talked about the function of Regsvr32 is to register and uninstall DLL files, then there is a problem that bothers us, since the DLL file is the function of the common function library, why we can not directly in the program call, but also to register it? In fact, Here is the reason to register DLL file is like our first school, although you sit in the classroom, but if you do not write your file, the teacher will not know you, naturally will not find you. Similarly, if the DLL file is not registered, the system registry does not have the information about the DLL file, although it already exists on our hard disk, but wait until the call, the system will not find the DLL file and can only report that no DLL exists, So at this point we need to register the DLL file.

Small hints the DLL for the Windows system is not registered because it was already registered at the time of installation, but if the DLL files are not recognized by the system, we need to register them manually.

   Regsvr32 Command Format   

Said above these, presumably a lot of friends are listening to a little Meng, don't worry, know above this ┲ Ding  Brigade favorite subjects Lanxu steal 傺  the 癛 command is much easier.

As you know, all orders must have a format, Regsvr32 is no exception. We take Windows XP for example, in the Start menu → "run" bar in the "CMD" command, open the command Prompt line window, enter the Regsvr32 command after the return, you will see the REGSVR32 command format "Regsvr32 [/u] Dline]] DLL filename ",

From the above, Regsvr32 command a total of four parameters, respectively:

/s: Prompt to not display operation success after registration or uninstall success

/u: Uninstalling installed controls or DLL files

/n: Do not invoke DllRegisterServer, note that this parameter should be used with/I

/I: Invokes the DllInstall and passes an optional [cmdline] to it, which is used to uninstall the DLL when using/u

The instructions are often tedious to understand, so let's use an example to learn more about Regsvr32 's command format. For example, if we want to register a shmedia.dll dynamic link library file that is saved in the C:\Folder directory, then the command to execute should be "Regsvr32 c:\folder\shmedia.dll", and if it's easier to uninstall after registration, execute the command " Regsvr32/u C:\folder\shmedia.dll "on the line. As shown in Figure 2, the prompt window for the normal completion of the task

   Common Error Tips

Use Regsvr32 command long after, we may often see a variety of error prompts, here I find some more representative errors, to help us analyze and analyze.

   error One: No specific path for DLL file specified

This error is more common, typically when registering a non-system DLL file because the REGSVR32 program cannot find the specified DLL file in the default path and cannot complete the registration properly. The solution is also very simple, as long as you specify a good DLL file in the command specific storage path, such as "Regsvr32 C:\folder\abc.dll" is a normal command.

   error Two: Wrong file type to register

This error is relatively small, but easy to appear on the novice, the reason is that the user wants to register the file is not a normal DLL or OCX file, Regsvr32 can not complete the registration. The solution is to specify a normal DLL file or OCX file on the line. For example, the original command for "Regsvr32 C:\abc\abc.txt", and the correct command should be "Regsvr32 C:\abc\abc.dll" (Of course, also make sure that the Abc.dll file exists and completely correct)

   error Three: The DLL file name is not specified in the command you typed

This error and the previous example is mainly in the novice, it is the reason is not to specify the DLL file name, so Regsvr32 naturally can not know what to operate, so will pop up this hint. The solution is to specify the DLL file or OCX file to operate.

   Common Error Tips

Use Regsvr32 command long after, we may often see a variety of error prompts, here I find some more representative errors, to help us analyze and analyze.

   error One: No specific path for DLL file specified

This error is more common, typically when registering a non-system DLL file because the REGSVR32 program cannot find the specified DLL file in the default path and cannot complete the registration properly. The solution is also very simple, as long as you specify a good DLL file in the command specific storage path, such as "Regsvr32 C:\folder\abc.dll" is a normal command.

  error Two: Wrong file type to register

This error is relatively small, but easy to appear on the novice, the reason is that the user wants to register the file is not a normal DLL or OCX file, Regsvr32 can not complete the registration. The solution is to specify a normal DLL file or OCX file on the line. For example, the original command for "Regsvr32 C:\abc\abc.txt", and the correct command should be "Regsvr32 C:\abc\abc.dll" (Of course, also make sure that the Abc.dll file exists and completely correct)

   error Three: The DLL file name is not specified in the command you typed

This error and the previous example is mainly in the novice, it is the reason is not to specify the DLL file name, so Regsvr32 naturally can not know what to operate, so will pop up this hint. The solution is to specify the DLL file or OCX file to operate.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.