Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: derive class Pin
David Crow10-Oct-06 3:54
David Crow10-Oct-06 3:54 
GeneralRe: derive class Pin
Stephen Hewitt10-Oct-06 13:46
Stephen Hewitt10-Oct-06 13:46 
GeneralRe: derive class Pin
led mike11-Oct-06 4:53
led mike11-Oct-06 4:53 
AnswerRe: derive class Pin
Zac Howland10-Oct-06 4:15
Zac Howland10-Oct-06 4:15 
Questionsizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 3:05
Alex Cutovoi10-Oct-06 3:05 
AnswerRe: sizeof(float)/sizeof(float[0]) Pin
Chris Losinger10-Oct-06 3:10
professionalChris Losinger10-Oct-06 3:10 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 3:30
Alex Cutovoi10-Oct-06 3:30 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
James R. Twine10-Oct-06 3:32
James R. Twine10-Oct-06 3:32 
   That is an example of the decay I mentioned in my post - when you pass the array, it becomes a pointer in the called function.

   The function that has the pointer has no "internal" or automatic way of knowing how much the data points to.  That is why whenever you pass an array of data to a function, you usually have to tell the function how much valid data is in the array (or have a special element in the array to indicate the end of valid data).

   Peace!

-=- 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!)

GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Galatei10-Oct-06 3:41
Galatei10-Oct-06 3:41 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 3:57
Alex Cutovoi10-Oct-06 3:57 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 4:01
Alex Cutovoi10-Oct-06 4:01 
AnswerRe: sizeof(float)/sizeof(float[0]) Pin
James R. Twine10-Oct-06 3:14
James R. Twine10-Oct-06 3:14 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 3:35
Alex Cutovoi10-Oct-06 3:35 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
James R. Twine10-Oct-06 3:36
James R. Twine10-Oct-06 3:36 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 3:59
Alex Cutovoi10-Oct-06 3:59 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Waldermort10-Oct-06 3:57
Waldermort10-Oct-06 3:57 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Alex Cutovoi10-Oct-06 4:00
Alex Cutovoi10-Oct-06 4:00 
GeneralRe: sizeof(float)/sizeof(float[0]) Pin
Waldermort10-Oct-06 4:06
Waldermort10-Oct-06 4:06 
AnswerRe: sizeof(float)/sizeof(float[0]) Pin
Zac Howland10-Oct-06 4:22
Zac Howland10-Oct-06 4:22 
QuestionBringing child window foreground and model-less dialog background Pin
Veeresh Hiremath10-Oct-06 2:49
Veeresh Hiremath10-Oct-06 2:49 
AnswerRe: Bringing child window foreground and model-less dialog background Pin
Galatei10-Oct-06 3:49
Galatei10-Oct-06 3:49 
GeneralRe: Bringing child window foreground and model-less dialog background Pin
Veeresh Hiremath10-Oct-06 19:25
Veeresh Hiremath10-Oct-06 19:25 
GeneralRe: Bringing child window foreground and model-less dialog background Pin
Galatei11-Oct-06 2:42
Galatei11-Oct-06 2:42 
GeneralRe: Bringing child window foreground and model-less dialog background Pin
Veeresh Hiremath11-Oct-06 18:49
Veeresh Hiremath11-Oct-06 18:49 
QuestionHow to get path for the favourites of a system ? Pin
kiranin10-Oct-06 2:20
kiranin10-Oct-06 2:20 

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.