\ mycomobj. dllRegsvr32/U c: \ mycomobject \ mycomobj. dll
For components outside the EXE process, it is an executable program, and it cannot provide entry functions for other programs to call. Therefore, the COM specification stipulates that, external components that support self-registration must support two command line parameters/regserver and/unregserver to complete registration or logout (command line parameters are case-insensitive and/can be
When using Inno Setup to create an installation script, you may encounter errors when running the program after the DLL is not registered and the installation is complete.After a series of searches, the solution is finally found.The Code is as follows:[Files]Source: "DLL file path"; destdir: "{app}"; flags: ignoreversion regserverSource: "DLL file path"; destdir: "{app}"; flags: regtypelibCode parsing:Among them, flags: The regserver parameter of the
1. hkey_classes_root1> the CLSID subkey records all COM component information:A> the inprocserver32 sub-Key of the CLSID sub-Key of the (in-process component) OBJECT records the full path File Name of the component program;The localserver32 sub-Key of the CLSID sub-Key of the (out-of-process component) OBJECT records the full path File Name of the component program;B> the progid (Program identifier, program identifier) of the CLSID subkey defines the string name of the component.
2> the componen
When you debug a project with visual studio.net 2003, the error dialog box is displayed as follows:
An error occurred while trying to run the project. debugging cannot be started. The debugger is not correctly installed. Run and installProgramInstall or restore the debugger.
The solution is as follows:
1. Try to register mscordbi again in the command line. DLL (command line Input: regsvr32 mscordbi. DLL) file, which is located in (c: \ winnt \ Microsoft. net \ framework \ v1.1.4322 plea
Symptom: Error while trying to run project: unable to start debugging. The debugger is not properly installed. Run setup to install or repair the debugger.
Solution 1: run the Visual Studio. net Add/Remove feature from "Control Panel> add or remove programs", by selecting the correct version of Visual Studio and clicking on "change/Repair" button. in my case this solution did not fix the problem.
Solution 2: reinstall. NET Framework debugging services.
Open command prompt
Type "CD/d
Recently, I am working on a material accounting software and finally finished preparing to submit to the user. During the first installation, I extracted the VB Runtime Library and installed and run properly in the testing environment, later I found an error in the printed area. not compatible with DLL after modification. an error occurred while creating the package. it is correct in the development environment. later, you just need to manually register the DLL with regsvr32. inno Setup was not
After the "Microsoft Script Editor" is installed, an application named mdm.exe ("Computer debugging manager" is used to provide the applicationProgramDebugging) the program will be installed at the same time, and the result is that this stuff causes system debugging problems.
The prompt message is:
An error occurred while trying to run the project: failed to start debugging and the debugger was not correctly installed. Run the installer to install or repair the debugger.
1 regsvr32 mscordbi.
Microsoft's official website describes the problem as follows: In a 64-bit Windows system, a 64-bit process cannot load a 32-bit DLL, similarly, a 32-bit process cannot load a 64-bit DLL. However, 64-bit Windows supports RPC between 64-bit and 32-bit processes (including local or cross-host processes ). In 64-bit windows, a 32-bit external process COM server can communicate with a 64-bit client, and a 64-bit external process COM server can also communicate with a 32-bit client. Therefore, if you
can communicate with a 64-bit client, and a 64-bit external process COM server can also communicate with a 32-bit client. Therefore, if you have a 32-bit com-unrecognized DLL, You can encapsulate it into a non-process COM server and use com configuration to call the DLL in a 64-bit process. (I cannot quite understand the last sentence !! Hahaha)
Verification:Workflow:1. Create an external COM server (exe ).2. encapsulate the 32-bit DLL interface functions as related interfaces of the COM serve
This error is fixed when sharpoint is installed. Check by msdn and no problem is found. When you reinstall sql2005, you will find that it was an SQL problem. You need to fix WMI and the SQL installation self-check fails. Use the script to fix the issue.
@ Echo onCD/d c: \ TempIf not exist % WINDIR % \ system32 \ WBEM goto tryinstallCD/d % WINDIR % \ system32 \ WBEMNet stop WinmgmtWinmgmt/killIf exist rep_bak RD rep_bak/S/QRename repository rep_bakFor % I in (*. dll) Do regsvr32-S % IFor % I i
once:
MATLAB/regserver
Register yourself in the control library of the system. If you cannot open the Matlab Engine for special reasons, you can run the preceding command at the doscommand prompt and re-register it.
2. Configure the Compiler
To successfully compile the Matlab Engine program in VC, it must contain the engine header file engine. h and introduce the library file libmx. Lib, libmat. Lib, and libeng. Lib corresponding to Matlab. Specifi
"getidsofnames" and "INVOKE", with too much labor duplication,So I want to add an IDL and then use the Wizard to add the method, so cool :)
Unfortunately, things are not as simple as I thought.
1. The _ modele generated by the wtl wizard is a cappmodule, which is different from the catlexemodule generated by the ATL Project.Since the source code can be seen in both classes, everything is clear:1-1.cappmodule implements the message loop encapsulation of wtl1-2.catlexemodule implements COM interf
restart, still fruitless
There are still some tricks on the Internet: Although I have not tried it, I will post it first.
In the web. use identity simulation in config, in
I have been wondering why the Office Word and office family are not found in the DCOM configuration on the server. Is vs2008 installed a Framework version of a series of components that do not automatically register the office?
I have studied registration of some COM components and registration of office, and understood why
Fancycache failed to get state is WMI error, to reinstall. The article said if the command: Winmgmt/verifyrepository report inconsistency to reload WMI, my execution result is consistency, still cannot install SP1, error code is 80041010. Follow the steps in the article, typing the following command at the command line with Administrator privileges:
net stop WinMgmt
ren%windir%system32wbemrepository repository_backup
net start WinMgmt
Winmgmt/salvagerepository
CD/D%windir%system32wbem
For/
Originally installed on the computer is matlab2012b, but it seems like 2012b only 64-bit, so reinstall MATLAB7, installed after registration, CMD CD to matlab7 directory Bin folder, registered Matlab/regserver, You can call MATLAB, first test the first method, call the engine, Engopen, engsetvisible, Engclose
Engevalstring (m_pengine, "x1 = 0.01:0.01:10 * pi");
Engevalstring (m_pengine, "x2 = -10 * pi:0.01: -0.01");
Engevalstring (m_pengine, "y
script to fix WMI, and after that it was done:
Fixwmi. Cmd
------------------------
@echo on
CD/D C:\Temp
If not exist%windir%\System32\Wbem goto Tryinstall
CD/D%windir%\System32\Wbem
net stop WinMgmt
Winmgmt/kill
If exist Rep_bak Rd REP_BAK/S/q
Rename Repository Rep_bak
For%%i in (*.dll) do regsvr32-s%%i
For%%i in (*.exe) do call:fixsrv%%i
For%%i in (*.MOF,*.MFL) do mofcomp%%i
net start WinMgmt
Goto END
: Fixsrv
if/i (% 1) = = (Wbemcntl.exe) goto SKIPSRV
if/i (% 1) = = (Wbemtest.exe) goto SK
Because of the advantages of different versions of Excel, many users will install multiple versions of the Excel program on the computer, so that when there is an unexpected situation, choose to use the most frequently used version of the set priority to open, the main methods are the following two kinds:
Method One, on the desktop select the "Start → run" command, open the Run dialog box, as shown in the figure:
In the Open text box in which to enter the preferred version of the i
finally found a script to fix WMI, and after that it was done:
Fixwmi. Cmd------------------------@echo onCD/D C:\TempIf not exist%windir%\System32\Wbem goto TryinstallCD/D%windir%\System32\Wbemnet stop WinMgmtWinmgmt/killIf exist Rep_bak Rd REP_BAK/S/qRename Repository Rep_bakFor%%i in (*.dll) do regsvr32-s%%iFor%%i in (*.exe) do call:fixsrv%%iFor%%i in (*.MOF,*.MFL) do mofcomp%%inet start WinMgmtGoto END: Fixsrvif/i (% 1) = = (Wbemcntl.exe) goto SKIPSRVif/i (% 1) = = (Wbemtest.exe) goto SKIPS
, scratching the scalp can only come up with a reasonable explanation of the virus. Not really, for example, the loss of the search panel, the Quick Launch bar does not start, there is no "run" in the Start menu, there is no pallet in the taskbar, and so on, there are usually 3 reasons why a component cannot be run or lost: The ① component is not installed; ② system service is not started;
Example of an obstacle: the "straw" to retrieve the system
When you click the start → Help and Support me
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.