Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delete pointer Pin
ChandraRam26-Dec-06 1:14
ChandraRam26-Dec-06 1:14 
GeneralRe: delete pointer Pin
John R. Shaw26-Dec-06 1:29
John R. Shaw26-Dec-06 1:29 
GeneralRe: delete pointer Pin
ChandraRam26-Dec-06 1:31
ChandraRam26-Dec-06 1:31 
GeneralRe: delete pointer Pin
John R. Shaw26-Dec-06 1:52
John R. Shaw26-Dec-06 1:52 
AnswerRe: delete pointer Pin
Mark Salsbery26-Dec-06 6:08
Mark Salsbery26-Dec-06 6:08 
AnswerRe: delete pointer Pin
Mark Salsbery26-Dec-06 6:10
Mark Salsbery26-Dec-06 6:10 
AnswerRe: delete pointer Pin
Hamid_RT26-Dec-06 6:27
Hamid_RT26-Dec-06 6:27 
Questionaccessing a part of a char array Pin
Johpoke25-Dec-06 23:37
Johpoke25-Dec-06 23:37 
Im working in C++ w MFC. In my program i create a char that looks kinda like this:

char data[11] = "1101110110";

and then later in the program i have a for which reads this binary data and does certain things depending on if its a 1 or 0:

for ( short c=0; c<=10; c++ )
{
if (data[c] == 1 )
{
//do this
}

}

But it doesn't work at all, the data[c] always seems to return 0 with the if..

any ideas?

maybe theres a better way to store my binary data (which is actually a lot longer, like 64 chars) and then do things depending on 1 or 0?

thanks!

man ive gotten like loads of post errors now..

/Johannes
AnswerRe: accessing a part of a char array Pin
Johan Pretorius25-Dec-06 23:52
Johan Pretorius25-Dec-06 23:52 
AnswerRe: accessing a part of a char array Pin
sunit525-Dec-06 23:54
sunit525-Dec-06 23:54 
GeneralRe: accessing a part of a char array Pin
sunit526-Dec-06 0:01
sunit526-Dec-06 0:01 
AnswerRe: accessing a part of a char array Pin
prasad_som25-Dec-06 23:54
prasad_som25-Dec-06 23:54 
AnswerRe: accessing a part of a char array Pin
S Douglas26-Dec-06 0:58
professionalS Douglas26-Dec-06 0:58 
AnswerRe: accessing a part of a char array (resolved) Pin
Johpoke26-Dec-06 2:16
Johpoke26-Dec-06 2:16 
QuestionHow to Disable sound of a particular application Pin
jk chan25-Dec-06 23:09
jk chan25-Dec-06 23:09 
Questionmanaging process Pin
dvsr25-Dec-06 21:10
dvsr25-Dec-06 21:10 
AnswerRe: managing process Pin
Michael Dunn25-Dec-06 21:44
sitebuilderMichael Dunn25-Dec-06 21:44 
AnswerRe: managing process Pin
sunit525-Dec-06 21:48
sunit525-Dec-06 21:48 
AnswerRe: managing process Pin
prasad_som25-Dec-06 21:59
prasad_som25-Dec-06 21:59 
AnswerRe: managing process Pin
kasturi_haribabu25-Dec-06 22:28
kasturi_haribabu25-Dec-06 22:28 
AnswerRe: managing process Pin
Cristian Amarie25-Dec-06 22:29
Cristian Amarie25-Dec-06 22:29 
Questionneed math suggestions Pin
includeh1025-Dec-06 20:38
includeh1025-Dec-06 20:38 
AnswerRe: need math suggestions Pin
_AnsHUMAN_ 25-Dec-06 20:50
_AnsHUMAN_ 25-Dec-06 20:50 
AnswerRe: need math suggestions Pin
kasturi_haribabu25-Dec-06 22:31
kasturi_haribabu25-Dec-06 22:31 
AnswerRe: need math suggestions Pin
Russell'25-Dec-06 23:24
Russell'25-Dec-06 23:24 

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.