Strangest VC8 bug yet
- From: Edward Diener <eddielee_no_spam_here@xxxxxxxxxxxxxx>
- Date: Wed, 03 May 2006 07:50:21 -0400
I have a source file which is using native events in a non-CLR console application. In the source file I have an __unhook statement which takes as its first parameter address the full name of a public __event in a class, which includes the namespace name, the class name, and the __event name, ie. &SomeNameSpace::SomeClass::SomePublicEvent. In fact this exact same __unhook statement occurs twice in my source file. The second time it is encountered I get an error telling me that the class name is not a valid type. The most amazing thing about this error is that the error message shows that an extra 's' has been added to the name of the class in the error message, so that using the example above the error message would be:
error C3083: 'SomeClasss': the symbol to the left of a '::' must be a type
I have checked that the actual name in the source file is 'SomeClass' and not 'SomeClasss' in the IDE's editor, Notepad, and my own editor ( CodeWright ).
If I change the name in the particular line to "SomeClas', everything compiles correctly !!!
This is the weirdest bug I have ever seen in VC8 or any other VC++ compiler. Anybody having any idea what may be happening ?
Since this is the second bug I have encountered in VC8 with native events, does anybody know if native events are simply broken in VC8 or not ? I seem to have heard from somewhere that they are not reliable in VC8 and are not to be used, which would be a great shame as I have a non-CLR classes which use them extensively.
.
- Follow-Ups:
- Re: Strangest VC8 bug yet
- From: Victor Bazarov
- Re: Strangest VC8 bug yet
- Prev by Date: Re: Preprocessor Definitions and Multi Projects
- Next by Date: Re: bizarre behaviour: VS2005 debug/release mode
- Previous by thread: How to add CoolBar (ActiveX Control) to project
- Next by thread: Re: Strangest VC8 bug yet
- Index(es):
Relevant Pages
|