Re: Problem with pointer conversion
- From: "Bruno van Dooren" <bruno_nos_pam_van_dooren@xxxxxxxxxxx>
- Date: Wed, 26 Apr 2006 20:20:14 +0200
outfile.write (zero,size);
//End Code\\
Bellow is the error given by the compiler.
//Begin Error\\
Z:\SecureIO.cpp(172) : error C2664: 'write' : cannot convert parameter
1 from 'const int *' to 'const char *'
Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
as the error indicates, the write method expects a char*.
what is 'zero' in your write call?
--
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@xxxxxxxxxxx
Remove only "_nos_pam"
.
- References:
- Problem with pointer conversion
- From: Kat
- Problem with pointer conversion
- Prev by Date: Problem with pointer conversion
- Next by Date: Re: recommended way to create vc windows application
- Previous by thread: Problem with pointer conversion
- Next by thread: Re: Problem with pointer conversion
- Index(es):
Relevant Pages
|