Just curious, but is it that VC7 is smart enough
to not throw the error if the variable being
initialized does not have a constructor, and that
VC6 throws an error no matter what type of variable
was declared in the same scope as the prior goto?
Thanks,
- Erik
Greg Wright wrote:
> Christina Dunn wrote:
>> This is a VC6 vs VC7 issue. We officially support
VC7 on the HEAD, so
>> use that if you have it.
>>
>> I'm not sure if we are fixing these issues or not.
>
> We generally have been. Pretty easy fix, just move the
> var decls to the begining of the method (before the
first
> goto anyway).
>
> --greg.
>
>>
>> At 02:17 PM 4/25/2006, stankao wrote:
>>> Hi,
>>>
>>> I am using VC++6.0 and using helix.bif. My
target is jsr135 and using
>>> helix-client-all-defines-free as the profile.
>>>
>>> I am getting
>>>
>>> pximage.cpp(287) : error C2362: initialization
of 'ulNumBytes' is
>>> skipped by
>>> 'go
>>> to cleanup'
>>> pximage.cpp(236) : see declaration of
'ulNumBytes'
>>> pximage.cpp(287) : error C2362: initialization
of 'ulNumBytes' is
>>> skipped by
>>> 'go
>>> to cleanup'
>>> pximage.cpp(236) : see declaration of
'ulNumBytes'
>>> pximage.cpp(287) : error C2362: initialization
of 'ulNumBytes' is
>>> skipped by
>>> 'go
>>> to cleanup'
>>> pximage.cpp(236) : see declaration of
'ulNumBytes'
>>> pximage.cpp(287) : error C2362: initialization
of 'ulNumBytes' is
>>> skipped by
>>> 'go
>>> to cleanup'
>>> pximage.cpp(236) : see declaration of
'ulNumBytes'
>>> NMAKE : fatal error U1077: 'cl' : return code
'0x2'
>>>
>>> Errors all over the place. What I have
noticed is that this is caused
>>> because a local variable is being declared and
initialized after the
>>> goto
>>> cleanup.
>>>
>>> -stan
>>>
>>>
>>>
>>> _______________________________________________
>>> Player-dev mailing list
>>> Player-dev helixcommunity.org
>>> http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
>>
>>
>>
>> _______________________________________________
>> Player-dev mailing list
>> Player-dev helixcommunity.org
>> http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
>>
>
> _______________________________________________
> Player-dev mailing list
> Player-dev helixcommunity.org
> http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
_______________________________________________
Player-dev mailing list
Player-dev helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/play
er-dev
|