registration_script requires UpdateRegistry method?  
Author Message
Eric Lee





PostPosted: Visual C++ General, registration_script requires UpdateRegistry method? Top

Hello,

I have a class defined as follows - I'm using the registration_script attribute because there is some custom registration that I would like to do.

However, when I build my project, I get an error that tells me UpdateRegistry is not a member of CPropertyHandlerShim (the class defined below).

From the documentation, it doesn't suggest that I need to define a UpdateRegistry method. I thought the [coclass] attribute did that for me.

I would just like to do some custom registration in addition to the default COM registrtion. Is there a better way to do this

Thanks!

Eric.

[

coclass,

threading(apartment),

vi_progid("CounterPunchSoftware.PropertyHandler"),

progid("CounterPunchSoftware.PropertyHandler.1"),

version(1.0),

uuid("9B4C7B96-27AE-45a6-BB3D-004DF1F9BDB8"),

helpstring("CounterPunchSoftware PropertyHandler Class"),

registration_script("PropertyHandlerShim.rgs")

]

public class CPropertyHandlerShim



Visual C++11  
 
 
Eric Lee





PostPosted: Visual C++ General, registration_script requires UpdateRegistry method? Top

Nevermind, pilot error :)

The syntax of my .rgs file was incorrect. I had exported a set of keys from the registry as a .reg file and tried to use it directly as a .rgs file.

Thanks,

Eric.