PDA

View Full Version : [ActiveQt] Overiding DllRegisterServer ?



nooky59
29th November 2007, 23:40
Hello,

Is there a way to override the implementation of DllRegisterServer provided automatically by the ActiveQt framework ?

I'm trying to implement "band objects" from Qt but such an object require particular values in the Windows Registries.

In the sample from the Platform SDK, the DllRegisterServer do more than registering the Class with its GUID but write some values in the registry as :

InprocServer32 --> ThreadingModel --> Apartment...

If it is not possible (I'm using a binary trial release so no Qt source that I can modify and if TrollTech don't permit to overriding it, it's surely not the good way to do it) what is the best solution ?

Am I supposed to write directly those registries from an Installshied ? Not very practical during the development phase if I must writing the values myself with regedit.

Thanks for your answer if someone as a good knowledge of ActiveQt.

nooky59
17th December 2007, 10:56
Hi,

I post here just to keep a trace if someone is searching the same thing.

There is two methods : registerClass and unregisterClass in QAxFactory that do the trick (I haven't tried it yet but it should work ;o)).