Home > Software engineering >  0 x80040200 ActiveX registration error, error code
0 x80040200 ActiveX registration error, error code

Time:09-16

Internet, most of them said there was no question of registered with administrator privileges, but the same code, only change the uuid odl file at first, and the corresponding corresponding uudi CPP file, compiled can't register, change to come back again to compile can register success again, not sure where is the problem, the project is VC6 into VS2015, use VS2015 again a new project, then add the lib files, compile again, also appeared the same problem of registration error, error code, too, exclude please, thank you

CodePudding user response:

Is there any other place to use the uuid is engineering? For example. RGS file? To change a id the best in the whole project to replace,
In addition, why do you want to reorganize or the ID of the interface? According to the COM design philosophy, the UUID should not change under any circumstances,
If you need new version, you should use a new ID, if you need to reuse code, should use the tolerance or aggregation, rather than directly to modify the behavior of the original component, interacts with the code (both Client and Server) the default interface will think you the same ID won't have different behaviors, so you modify may be mine, so,

CodePudding user response:

Do you still have a great god? I now new project, when to join other IDL file compiler can be passed, but registration is submitted to the same mistake, just add the IDL files in engineering, other didn't do, don't know where the problem is, thanks first

CodePudding user response:

Only add the idl file. RGS file does not add the corresponding registry modifying the script won't register these
In fact the most conservative method can build similar projects in the vs2015 then right-click in the code tree points each interface according to a new times the whole project to replace the new generated interface, components of uuid in. This ensures that RGS also has the corresponding script
Registration is needed to use when you can run at the vs right - "the administrator to run automatically in this compilation to regsvr32 administrator privileges to run

CodePudding user response:

No RGS ActiveX engineering documents, only call com components in engineering of RGS oh, in addition the debug compilation in the end, should be registered, such tips below:
  • Related