Site Search:
Sign in | Join | Help

Why error when trying to "RegisterFocusTrigger()"?

Last post 07-28-2009 11:27 AM by das974. 20 replies.
Page 2 of 2 (21 items) < Previous 1 2
Sort Posts: Previous Next
  • 05-19-2009 9:42 AM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    Please tolac

    i really need your help.

    please advise me what to do.

    i can send you the code throught an email, anything just tell me

    • Post Points: 0
  • 05-19-2009 12:02 PM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    I assume when you Check Com Interop and comment he code. You have no error and the Add-In was working.

    I used to strugling withGP Add-In too when I worked in my previous company.

    Here are the reason you got Error:

    1- Check Com Interop: The Add-in is managed code but it need to interop with COM in side GP. I mean GP still use COM in the version you are working with.

    2- Comment code: it cause by circula dependency. Please read this link

    http://misko.hevery.com/2008/08/01/circular-dependency-in-constructors-and-dependency-injection/

    • Post Points: 0
  • 05-20-2009 1:38 AM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    even if i comment the code and Check Com Interop i am still having this erorr:

    "Error 1 Cannot register assembly "D:\Edita\NetProjects\DynamicsGPAddin1\HowToTestContinuumAPI\bin\Debug\HowToTestContinuumAPI.dll". The specified module could not be found. (Exception from HRESULT: 0x8007007E) HowToTestContinuumAPI
    "

    please advise i need some help

    • Post Points: 0
  • 05-20-2009 1:41 AM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    please if you have any docuements or specific site that can help me more.

    i am sorry for the lot of Disturbance I did to you but actually I can't find anyone who know anything about Continuum

     

    thank you

    • Post Points: 0
  • 05-24-2009 1:04 PM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    Dear tolac

    i really need you help, i did all the exmaples i cna do in my mind but i am still getting errors.

    please please i need yout help.

    please

    • Post Points: 0
  • 07-28-2009 11:27 AM In reply to

    Re: Why error when trying to "RegisterFocusTrigger()"?

    The error you got was due to the fact that the callback method has to be visible to COM. The class also needs to be public.  

    Make sure to mark your callback class as public and decorate it with the [ComVisible(true)] Attribute.

    Like this - using your example.

    [ComVisible(true)]

    public class ModalDialogHandler

    {

    public void action(int dialog_type, string prompt, string control_1, string control_2, string control_3, int answer)

    {

    System.
    Console.WriteLine("Answer: " + answer.ToString());

    }

    }

    • Post Points: 0
Page 2 of 2 (21 items) < Previous 1 2