Re: char array and pointer?
From: Scott McPhillips [MVP] (org-dot-mvps-at-scottmcp)
Date: 08/13/04
- Next message: Scott McPhillips [MVP]: "Re: RC2182: duplicate dialog control ID 65534"
- Previous message: Rola: "Re: char array and pointer?"
- In reply to: Rola: "Re: char array and pointer?"
- Next in thread: Rola: "Re: char array and pointer?"
- Reply: Rola: "Re: char array and pointer?"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 13 Aug 2004 06:57:48 -0500
Rola wrote:
> Hi,
>
> Function NaVelke is supposed to convert char array to upper case and then
> return 1 char at a given position.
> here is the code:
>
> LPTSTR NaVelke(TCHAR str[])
> {
> LPTSTR strTemp;
> strTemp = ::CharUpper((LPTSTR)str);
> return (strTemp + 2);
> }
This code does not return 1 char. LPTSTR is a char pointer, not a char.
(strTemp + 2) is a char pointer, not a char.
-- Scott McPhillips [VC++ MVP]
- Next message: Scott McPhillips [MVP]: "Re: RC2182: duplicate dialog control ID 65534"
- Previous message: Rola: "Re: char array and pointer?"
- In reply to: Rola: "Re: char array and pointer?"
- Next in thread: Rola: "Re: char array and pointer?"
- Reply: Rola: "Re: char array and pointer?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|