Click here to Skip to main content

C / C++ / MFC

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberLaughing Buddha2:09 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:12 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:38 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:40 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:42 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.02:34 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberStephen Hewitt2:43 29 Mar '06  
AnswerRe: Can I return an array of pointers of type unsigned char[] PinmemberJames R. Twine2:59 29 Mar '06  
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[] PinmemberRage2:57 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.03:07 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] PinmemberRage23:04 29 Mar '06  
GeneralRe: Can I return an array of pointers of type unsigned char[] Pinmemberv2.023:07 29 Mar '06  
QuestionTetris C++ Code Pinmemberv1raj1:41 29 Mar '06  
AnswerRe: Tetris C++ Code PinmemberCedric Moonen1:47 29 Mar '06  
AnswerRe: Tetris C++ Code Pinmemberkhb2:02 29 Mar '06  
QuestionWhy cannot start debugging? Pinmemberlibo hikaliv1:39 29 Mar '06  
AnswerRe: Why cannot start debugging? PinmemberCedric Moonen1:45 29 Mar '06  
QuestionRe: Why cannot start debugging? Pinmemberlibo hikaliv6:32 29 Mar '06  
QuestionHow to get the status of a USB printer. Pinmemberashwath20051:36 29 Mar '06  
AnswerRe: How to get the status of a USB printer. PinmemberJames R. Twine2:55 29 Mar '06  
GeneralRe: How to get the status of a USB printer. Pinmemberashwath20053:12 29 Mar '06  
AnswerRe: How to get the status of a USB printer. PinmemberBlake Miller8:02 31 Mar '06  
Questionhow to do this? Pinmemberyang__lee1:33 29 Mar '06  
QuestionFrom one project to another Pinmemberhugo_fra_tv21:26 29 Mar '06  
AnswerRe: From one project to another PinmemberMihai Moga1:29 29 Mar '06  

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

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


Advertise | Privacy | Mobile
Web04 | 2.5.120529.1 | Last Updated 30 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid