Menu

Chaning Namespace

Thomas
2014-10-03
2014-10-06
  • Thomas

    Thomas - 2014-10-03

    I'm trying to do a plugin for Keepass and am having difficulty with a namespace.
    I've started a new plugin and copied printform.cs from Keepass into my plugin so I have a basis to get started.

    When I do a build, I get this error:
    'KeePass.Properties.Resources' does not contain a definition for 'B48x48_FilePrint' and when I click on the error I am taken here:
    Properties.Resources.B48x48_FilePrint, strTitle, strDesc);
    Where do I have to change it so that points to SamplePlugin.Properties.Resources and not Keepass.Properties.Resources??????
    At the moment it appears to imply that properties is Keepass.properties but I need it to imply the properties of my plugin.
    Thanks

     
  • Dominik Reichl

    Dominik Reichl - 2014-10-03

    I would simply replace all references to Properties.Resources by SamplePlugin.Properties.Resources.

    Alternatively, add 'using SamplePlugin;' and make sure that the KeePass.Properties namespace is invisible; especially, make sure that your class is not within the KeePass namespace.

    Best regards,
    Dominik

     
  • Thomas

    Thomas - 2014-10-05

    Thanks for your reply.

    Is there a reference guide for the API somewhere listing all the functions etc?

    Thanks

     
  • Dominik Reichl

    Dominik Reichl - 2014-10-06

    There is no reference guide for the API. But the source code is available :-)

    Best regards,
    Dominik

     
  • Thomas

    Thomas - 2014-10-06

    Thanks Dominik, I wondered if that were the case but thought I'd ask just in case there was tucked away somewhere!!

     

Log in to post a comment.

Auth0 Logo