Click here to Skip to main content
15,920,053 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNewbie: Can I do this? Pin
cgriffin4-Aug-04 5:52
cgriffin4-Aug-04 5:52 
AnswerRe: Newbie: Can I do this? Pin
palbano4-Aug-04 7:16
palbano4-Aug-04 7:16 
AnswerRe: Newbie: Can I do this? Pin
digwizfox4-Aug-04 7:31
digwizfox4-Aug-04 7:31 
GeneralRe: Newbie: Can I do this? Pin
cgriffin4-Aug-04 7:45
cgriffin4-Aug-04 7:45 
GeneralRe: Newbie: Can I do this? Pin
digwizfox4-Aug-04 8:46
digwizfox4-Aug-04 8:46 
GeneralRe: Newbie: Can I do this? Pin
cgriffin4-Aug-04 10:10
cgriffin4-Aug-04 10:10 
GeneralRe: Newbie: Can I do this? Pin
digwizfox4-Aug-04 10:24
digwizfox4-Aug-04 10:24 
Generaliphelper Pin
Zizilamoroso4-Aug-04 4:24
Zizilamoroso4-Aug-04 4:24 
GeneralRe: iphelper Pin
David Crow4-Aug-04 4:30
David Crow4-Aug-04 4:30 
GeneralIStorage like functionality in memory Pin
pankajdaga4-Aug-04 4:14
pankajdaga4-Aug-04 4:14 
GeneralRe: IStorage like functionality in memory Pin
Chris Losinger4-Aug-04 5:28
professionalChris Losinger4-Aug-04 5:28 
GeneralRe: IStorage like functionality in memory Pin
pankajdaga4-Aug-04 6:49
pankajdaga4-Aug-04 6:49 
GeneralMenus in VC 7 not working after resource cleanup Pin
PrashantJ4-Aug-04 3:53
PrashantJ4-Aug-04 3:53 
GeneralRe: Menus in VC 7 not working after resource cleanup Pin
Tim Smith4-Aug-04 3:59
Tim Smith4-Aug-04 3:59 
GeneralRe: Menus in VC 7 not working after resource cleanup Pin
PrashantJ4-Aug-04 4:04
PrashantJ4-Aug-04 4:04 
GeneralUsing Created() CListBox Pin
gokings4-Aug-04 3:52
gokings4-Aug-04 3:52 
GeneralRe: Using Created() CListBox Pin
David Crow4-Aug-04 4:25
David Crow4-Aug-04 4:25 
GeneralRe: Using Created() CListBox Pin
gokings4-Aug-04 5:24
gokings4-Aug-04 5:24 
GeneralRe: Using Created() CListBox Pin
David Crow4-Aug-04 5:58
David Crow4-Aug-04 5:58 
GeneralRe: Using Created() CListBox Pin
gokings5-Aug-04 22:08
gokings5-Aug-04 22:08 
GeneralRe: Using Created() CListBox Pin
cmk4-Aug-04 10:04
cmk4-Aug-04 10:04 
GeneralWindow size when dockingbar present Pin
_anil_4-Aug-04 3:44
_anil_4-Aug-04 3:44 
GeneralArrays! Pin
CreepingFeature4-Aug-04 2:58
CreepingFeature4-Aug-04 2:58 
GeneralRe: Arrays! Pin
Antony M Kancidrowski4-Aug-04 3:06
Antony M Kancidrowski4-Aug-04 3:06 
GeneralRe: Arrays! Pin
Jaime Stuardo4-Aug-04 3:35
Jaime Stuardo4-Aug-04 3:35 
First of all, you cannot trust on compiler about filling all assigned memory with 0's. In VC++, it is initialized with garbage, so be sure to call a function to initialize array, for example, ZeroMemory or memset.

Now to your question. If you declare char array[] you have an array of bytes, so you have to compare against 0, not '0' (comparing with '0' is like comparing with 0x30)

Jaime

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.