warning C4238 : cast reference in void*
- From: "Eric" <clement.eric@xxxxxxxxx>
- Date: 1 Nov 2006 13:36:27 -0800
Hi,
I want to pass a reference of an object as the parameter of a function.
This function takes an void*
void foo(void* param)
{
...
}
int main()
{
CString szWord;
foo((void*) &szWord); //give C4238 warning : nonstandard extension
used : class rvalue used as lvalue
}
How can I solve this warning ?
Regards,
Eric
.
- Follow-Ups:
- Re: warning C4238 : cast reference in void*
- From: Ulrich Eckhardt
- Re: warning C4238 : cast reference in void*
- From: pj_hern
- Re: warning C4238 : cast reference in void*
- From: Igor Tandetnik
- Re: warning C4238 : cast reference in void*
- Prev by Date: Re: VC++ 6.0, 7.0, and 8.0 Compatibility
- Next by Date: Re: Problem with 64-bit time
- Previous by thread: Re: Getting exception object
- Next by thread: Re: warning C4238 : cast reference in void*
- Index(es):
Relevant Pages
|
Loading