Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
Laughing Buddha29-Mar-06 2:09
Laughing Buddha29-Mar-06 2:09 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
Stephen Hewitt29-Mar-06 2:12
Stephen Hewitt29-Mar-06 2:12 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
toxcct29-Mar-06 2:38
toxcct29-Mar-06 2:38 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
Stephen Hewitt29-Mar-06 2:40
Stephen Hewitt29-Mar-06 2:40 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
toxcct29-Mar-06 2:42
toxcct29-Mar-06 2:42 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
toxcct29-Mar-06 2:34
toxcct29-Mar-06 2:34 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
Stephen Hewitt29-Mar-06 2:43
Stephen Hewitt29-Mar-06 2:43 
AnswerRe: Can I return an array of pointers of type unsigned char[] Pin
James R. Twine29-Mar-06 2:59
James R. Twine29-Mar-06 2:59 
Stephen Hewitt wrote:
A process called "decay" occurs and you lose the size info


   Not just that, but you also effectively change the type of the variable - an array is generally a valid location in memory (whose location cannot be changed easily), while a pointer can point to a valid location in memory.  (This difference is also important when optimizing code.)

   Peave!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: Can I return an array of pointers of type unsigned char[] Pin
Rage29-Mar-06 2:57
professionalRage29-Mar-06 2:57 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
toxcct29-Mar-06 3:07
toxcct29-Mar-06 3:07 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
Rage29-Mar-06 23:04
professionalRage29-Mar-06 23:04 
GeneralRe: Can I return an array of pointers of type unsigned char[] Pin
toxcct29-Mar-06 23:07
toxcct29-Mar-06 23:07 
QuestionTetris C++ Code Pin
v1raj29-Mar-06 1:41
v1raj29-Mar-06 1:41 
AnswerRe: Tetris C++ Code Pin
Cedric Moonen29-Mar-06 1:47
Cedric Moonen29-Mar-06 1:47 
AnswerRe: Tetris C++ Code Pin
khb29-Mar-06 2:02
khb29-Mar-06 2:02 
QuestionWhy cannot start debugging? Pin
libo hikaliv29-Mar-06 1:39
libo hikaliv29-Mar-06 1:39 
AnswerRe: Why cannot start debugging? Pin
Cedric Moonen29-Mar-06 1:45
Cedric Moonen29-Mar-06 1:45 
QuestionRe: Why cannot start debugging? Pin
libo hikaliv29-Mar-06 6:32
libo hikaliv29-Mar-06 6:32 
QuestionHow to get the status of a USB printer. Pin
ashwath200529-Mar-06 1:36
ashwath200529-Mar-06 1:36 
AnswerRe: How to get the status of a USB printer. Pin
James R. Twine29-Mar-06 2:55
James R. Twine29-Mar-06 2:55 
GeneralRe: How to get the status of a USB printer. Pin
ashwath200529-Mar-06 3:12
ashwath200529-Mar-06 3:12 
AnswerRe: How to get the status of a USB printer. Pin
Blake Miller31-Mar-06 8:02
Blake Miller31-Mar-06 8:02 
Questionhow to do this? Pin
yang__lee29-Mar-06 1:33
yang__lee29-Mar-06 1:33 
QuestionFrom one project to another Pin
Nicolai M29-Mar-06 1:26
Nicolai M29-Mar-06 1:26 
AnswerRe: From one project to another Pin
Ștefan-Mihai MOGA29-Mar-06 1:29
professionalȘtefan-Mihai MOGA29-Mar-06 1:29 

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.