thierry Haillot
Posts: 5
Joined: 2010-01-28
|
My project has 2 objects
First,
[
ComVisible(true),
Guid("610F4B59-1C48-48AE-9B36-646F9042D782"),
ClassInterface(ClassInterfaceType.None)
]
public class IHM : AddinExpress.IE.ADXIEBarModule
{
(...)
}
The second,
[ComVisible(true), Guid("FC3C1DE7-EA9A-4471-B1F7-2B74A6B1DCF1")]
public class LanceurConfigPDV : AddinExpress.IE.ADXIEModule
{
(...)
}
How the first object could has a pointer to the second's one?
Is it possible to have an example of its initialisation?
Thanks in advance. |
|
Andrei Smolin
Add-in Express team
Posts: 18818
Joined: 2006-05-11
|
Hello Thierry,
I suggest that you remove the IHM class from your project and add an Add-in Express IE Bar via the Add New Item dialog. In this case, you will be able to use the following mechanisms:
In the IE module:
You use Bars and Toolbars properties to get a collection of <Item> objects (ADXIEBarItem or ADXIEToolBarItem); every <Item> object provides access to an <Obj> property (BarObj or ToolBarObj), which returns an appropriate Add-in Express class type (ADXIEBar or ADXIEToolbar).
In the IE bar:
See the ADXIEBar.Module property.
If you leave the classes as is, you'll have to use the machinery described in http://www.add-in-express.com/creating-addins-blog/2009/06/19/internet-explorer-plugin-settings-synchronize/
Andrei Smolin
Add-in Express Team Leader |
|
thierry Haillot
Posts: 5
Joined: 2010-01-28
|
Thanks Andrei,
for my issue, i choose another way. i keep the two objects.
one object stores the data in the Windows Registry.
The other's one only need to read the data and it do it from the windows Registry.
Thanks for the link.
Thierry Haillot |
|
Andrei Smolin
Add-in Express team
Posts: 18818
Joined: 2006-05-11
|
Thierry,
If this works for you, then it is probably a good choice.
Andrei Smolin
Add-in Express Team Leader |
|