Search code examples
delphipascalole

Registering OLE server in Delphi XE5 and non-pascal codes in ridl file


I am writing an exe OLE server to embed it in my own application. I am running OLE server (exe) with /regserver parameter as a normal user and I am getting following error:

Error accessing the OLE registry

I don't need any other programs to use this server. It is just for my own client and it will not be a DLL. Is there a way to register it as standard user?

Other problem is that i see codes which are not pascal in ridl file. Types of properties are C not Pascal. For example i see DATE but i don't see TDateTime in the list. I am using XE5.


Solution

  • Use switch "/REGSERVERPERUSER"

    I use XE5, it work.

    Delphi write corresponding register keys