Strangest VC8 bug yet



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.
.



Relevant Pages

  • ASP.NET Question
    ... it seems to load but boms out with 404 error. ... machine 2 Error message ... details and modify your source file appropriately. ... Parser Error Message: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: msproject 2003 - 2007 save errors
    ... As a first step -- please confirm you have Project 2007 Service Pack ... will not open and give an error message of too many ... because the source file contains invalid project data or the ...
    (microsoft.public.project)
  • Re: How do I validate the data in a source file of MS Project?
    ... up with an error message when you try open the file. ... Validate the data in the source file, ...
    (microsoft.public.project)
  • Re: Weird file on my desktop
    ... Will not delete in safe mode either. ... >> open this file like normal, I got an error message saying I had no ... >> done and after a reboot the transparent file came back and will not go ... >> that the source file cannot be found. ...
    (microsoft.public.windowsxp.general)
  • Re: Server Error in / Application.
    ... When opening the Portal Site, We are getting the following ERROR: ... details and modify your source file appropriately. ... Parser Error Message: ... >> Server Error in '/' Application. ...
    (microsoft.public.sharepoint.portalserver)