|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Duplicate definition on Interface declarationIn 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. Thanks. Marc Friedman "Marc Friedman" <MarcFried***@discussions.microsoft.com> wrote in message No JIT compile in VB Classic....news:F241F15F-8AD4-4AD8-B999-3223B5AAD2BB@microsoft.com... > 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 You'll want to post that question in a .Net group. They all contain "dotnet" or "vsnet" in their names. This and all other groups on the MS server that start with "microsoft.public.vb" are for VB Classic (mostly VB5/6) and were in existance long before any .Net products were released. While some of the code looks the same, they are very different products and require a different set of groups. Try one of these: news://news.microsoft.com/microsoft.public.dotnet.general news://news.microsoft.com/microsoft.public.dotnet.languages.vb news://news.microsoft.com/microsoft.public.dotnet.languages.vb.controls news://news.microsoft.com/microsoft.public.dotnet.framework.interop -- Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm This is a VB6 application. When I say "JIT Compile", I mean the compilation
that the VB IDE does when you start the application. Sorry if there was any confusion. Show quoteHide quote "Ken Halter" wrote: > "Marc Friedman" <MarcFried***@discussions.microsoft.com> wrote in message > news:F241F15F-8AD4-4AD8-B999-3223B5AAD2BB@microsoft.com... > > 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 > > No JIT compile in VB Classic.... > > You'll want to post that question in a .Net group. > They all contain "dotnet" or "vsnet" in their names. > This and all other groups on the MS server that start with > "microsoft.public.vb" > are for VB Classic (mostly VB5/6) and were in existance long before any .Net > products were released. While some of the code looks the same, they are very > different products and require a different set of groups. > > Try one of these: > news://news.microsoft.com/microsoft.public.dotnet.general > news://news.microsoft.com/microsoft.public.dotnet.languages.vb > news://news.microsoft.com/microsoft.public.dotnet.languages.vb.controls > news://news.microsoft.com/microsoft.public.dotnet.framework.interop > > -- > Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. > DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm > > >
Show quote
Hide quote
> In my application I have an interface class which is implemented in a half Does one of your classes that implement the interface also expose a local> 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. 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: ED***@mvps.org WWW: Http://EDais.mvps.org/
Show quote
Hide quote
"Mike D Sutton" wrote: I've checked and none of the classes that implement this interface have a > > 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: ED***@mvps.org > WWW: Http://EDais.mvps.org/ > local Init routine. There are no conditional compile arguments named "Init". There is only one conditional compile argument in one project of the application, and that is named "STARTUP_MODE". I don't believe there are any variables / constants / objects / structures / enums / etc. named Init, but it will take a while to search all the projects in the entire application. There are some local routines named Init, in classes that do not implement this interface, but there are classes that don't implement this interface that also have local routines named Load and Save which are on this interface too, but have never generated this "Duplicate definition" error. And now, to make matters even more challenging, I'm getting this Duplicate definition error when I try to display some forms and/or controls in the IDE by either double clicking on them, or right clicking and selecting "View Object". Not all forms and controls, just some of them. I'm going to check all the references in all the projects, just to make sure one of those hasn't gotten corrupted. The other members of my team are also occasionally getting this error, but we cannot define any rhyme or reason to it. Marc
Show quote
Hide quote
"Mike D Sutton" wrote: To make sure that there was no conflict, I changed the name of the interface > > 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: ED***@mvps.org > WWW: Http://EDais.mvps.org/ > > routine "Init" to "ASDF". I still get the "Duplicate definition" error. Marc Friedman
AND Operator and Currency data type
FTP(not boring) Produktlokalisierung - wie funktioniert's? Consume Web Map Service (WMS) with VB6 "Save As" question & file extensions Obtain MCSE certificaiton without exams(Pay after check results)100% passing gaurantee list of files in directories? VBEvents ContextMenu MapObjects2 Syntax Error - Missing Operator - When Using Date ! 3 problems |
|||||||||||||||||||||||