Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Sat, 16 Jul 2005 21:54:36 -0700
According to ANSI C and standard C++, there is no standard conversion from a
function pointer to void*, and vice versa. It's just not listed among the
possible conversions. A function pointer can be converted to an integer of
an appropriate size, though, which you may (or may not) be able then convert
to a void* (the size of the necessary integer may be different from the
required void* size).
"Eugene Gershnik" <gershnik@xxxxxxxxxxx> wrote in message
news:%23Sj7ZiiiFHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
> Alexander Grigoriev wrote:
>>
>> BTW, converting a function pointer to void * is illegal in C and C++.
>
> Not illegal, just undefined. Which means that an implementation is free to
> define it if it wants so. Both Win32 and Posix define the conversion.
>
>
> --
> Eugene
> http://www.gershnik.com
>
>
.
- Follow-Ups:
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: Eugene Gershnik
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- References:
- bug in visual studio .net 2003 - breakpoints and memcpy
- From: Gareth Haslip
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: Alexander Grigoriev
- Re: bug in visual studio .net 2003 - breakpoints and memcpy
- From: Eugene Gershnik
- bug in visual studio .net 2003 - breakpoints and memcpy
- Prev by Date: Re: Find if registry key exists ?
- Next by Date: Re: Differences in unhandled exception handling between Windows 2000 and 2003?
- Previous by thread: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Next by thread: Re: bug in visual studio .net 2003 - breakpoints and memcpy
- Index(es):
Relevant Pages
|