including a registry script resource - wie geht das ?
ich möchte aus StartMainProgram(void) einer Server- Komponente, die Funktion RegisterServer()von einer implementierten DLL (OPC Server Toolkit) aufrufen.
RegisterServer()
HRESULT RegisterServer(void)
The success of this operation is dependent on the application including a registry script resource as part of its EXE. The resource ID MUST be 102. An example resource script is shown below:
HKCR { NDI.SimulationSvr.1 = s 'NDI Simulation Server' { CLSID = s '{1E52DE00-FA5E-11d2-91C6-F8E932000000}'
.....
"AS PER THE USER MANUAL, the server registration script is bound to your module as a resource. It MUST have a resource ID value of 102."
"I remember that NDI distributes the registration script as part of the Toolkit. I think it is a little trickier than just registering a service because there is stuff about OPC that goes there so that OPC clients can find it."