Re: Duplicate definition on Interface declaration



In my application I have an interface class which is implemented in a half
dozen other classes. Occasionally (and every time, at the moment) when I
start the application in the IDE, it does the JIT compile and then
highlights
one declaration in the Interface class (for a routine called Init), with
the
error "Duplicate definition". I've checked the declaration, and it is
correct, and it is consistent with the implementation in the other classes
that implement this interface, and there is no other Init routine in the
Interface class. The help file indicates that this is a problem with
duplicate compiler constants (#Const), but I do not have any of these in
my
application. Sometimes it will start without this error, and it always
builds without error. I've searched the Microsoft site, the MSDN site,
and
the Internet in general, and can't find any related information. Does
anyone
have any insights into this problem? Any help would be most appreciated.
And if there is a better discussion board to post this on, please let me
know.

Does one of your classes that implement the interface also expose a local
Init() method perhaps?
Are there any other variables / constants / objects / structures /
enumerators etc with the name "Init" in your project?
Do you have an "Init" conditional compile argument set (Project -> [Project
name] Properties -> Make -> Conditional compilation arguments)?

Mike


- Microsoft Visual Basic MVP -
E-Mail: EDais@xxxxxxxx
WWW: Http://EDais.mvps.org/


.



Relevant Pages

  • Re: Duplicate definition on Interface declaration
    ... Interface class. ... Init() method perhaps? ... There are no conditional compile arguments named "Init". ... definition error when I try to display some forms and/or controls in the IDE ...
    (microsoft.public.vb.general.discussion)
  • Re: hiding an interface (VB6)
    ... > to even be able to get to the write members. ... > ensures that it is only called once, and where the Init() function is the ... Then, the object recipient could ... The recipients use refs to one interface, ...
    (microsoft.public.vb.general.discussion)
  • Class question
    ... is exactly the same code as I had before in init. ... function retuns me a placeholder. ... tabed interface? ... Namespace intranet ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Interfaces...am i missing the point?
    ... > I have learned that when i include an interface as part of an object... ... but of course at their common root that ... I wanted to add an Init() method to both. ... TmwEdit, not in TControl. ...
    (comp.lang.pascal.delphi.misc)