Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Activex project Pin
Prasann Mayekar4-Nov-07 19:20
Prasann Mayekar4-Nov-07 19:20 
GeneralRe: MFC Activex project Pin
ashishbhatt4-Nov-07 19:33
ashishbhatt4-Nov-07 19:33 
QuestionThread Socket programming Pin
Amjath Rahman4-Nov-07 16:14
Amjath Rahman4-Nov-07 16:14 
AnswerRe: Thread Socket programming Pin
David Crow4-Nov-07 16:16
David Crow4-Nov-07 16:16 
QuestionHOW TO get length of BYTE variable in C++ Pin
Ontanggabe Parulian4-Nov-07 14:56
Ontanggabe Parulian4-Nov-07 14:56 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
Llasus4-Nov-07 15:06
Llasus4-Nov-07 15:06 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
Ontanggabe Parulian4-Nov-07 15:55
Ontanggabe Parulian4-Nov-07 15:55 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
Llasus4-Nov-07 16:59
Llasus4-Nov-07 16:59 
Oops, sorry I didn't notice that. As the others explained you can't obtain it just by using sizeof. You can get the size that you want only thru some changes. instead of unsigned char you can use char. And instead of sizeof() use strlen(ld_pbyteTemp). I don't know if you'd want to change your variable though. Anyway its a simpler workaround if you really want to get the size.
Just another thing though. Since it is a char end the last element with NULL.
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
Chris Losinger4-Nov-07 15:49
professionalChris Losinger4-Nov-07 15:49 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
Ontanggabe Parulian4-Nov-07 22:30
Ontanggabe Parulian4-Nov-07 22:30 
QuestionRe: HOW TO get length of BYTE variable in C++ Pin
David Crow4-Nov-07 16:15
David Crow4-Nov-07 16:15 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
James R. Twine5-Nov-07 1:41
James R. Twine5-Nov-07 1:41 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
kcynic4-Nov-07 16:47
kcynic4-Nov-07 16:47 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
James R. Twine5-Nov-07 1:41
James R. Twine5-Nov-07 1:41 
GeneralRe: HOW TO get length of BYTE variable in C++ Pin
kcynic5-Nov-07 14:06
kcynic5-Nov-07 14:06 
AnswerRe: HOW TO get length of BYTE variable in C++ Pin
cmk4-Nov-07 18:28
cmk4-Nov-07 18:28 
QuestionSocket ptogramming Pin
Amjath Rahman4-Nov-07 14:34
Amjath Rahman4-Nov-07 14:34 
AnswerRe: Socket ptogramming Pin
Llasus4-Nov-07 14:41
Llasus4-Nov-07 14:41 
GeneralRe: Socket ptogramming Pin
Amjath Rahman4-Nov-07 15:38
Amjath Rahman4-Nov-07 15:38 
GeneralRe: Socket ptogramming Pin
Llasus4-Nov-07 15:53
Llasus4-Nov-07 15:53 
GeneralRe: Socket ptogramming Pin
Amjath Rahman4-Nov-07 16:01
Amjath Rahman4-Nov-07 16:01 
QuestionRe: Socket ptogramming Pin
David Crow4-Nov-07 16:19
David Crow4-Nov-07 16:19 
GeneralRe: Socket ptogramming Pin
Llasus4-Nov-07 16:48
Llasus4-Nov-07 16:48 
QuestionA question about exit codes Pin
Llasus4-Nov-07 14:08
Llasus4-Nov-07 14:08 
QuestionFtpPutFile problem Pin
dellthinker4-Nov-07 10:16
dellthinker4-Nov-07 10:16 

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.