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

C / C++ / MFC

 
GeneralRe: Creating Threads using Class Object functions Pin
Stuart Dootson2-Jun-09 5:25
professionalStuart Dootson2-Jun-09 5:25 
QuestionIs it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 12:46
FocusedWolf1-Jun-09 12:46 
GeneralRe: Is it "ok" to get array length this way Pin
norish1-Jun-09 13:27
norish1-Jun-09 13:27 
GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 16:07
FocusedWolf1-Jun-09 16:07 
AnswerRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 14:43
professionalStuart Dootson1-Jun-09 14:43 
GeneralRe: Is it "ok" to get array length this way Pin
Chris Losinger1-Jun-09 15:35
professionalChris Losinger1-Jun-09 15:35 
GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf1-Jun-09 16:15
FocusedWolf1-Jun-09 16:15 
GeneralRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 20:27
professionalStuart Dootson1-Jun-09 20:27 
FocusedWolf wrote:
possible that arrays are more efficient


Nope - in VS2008, vectors are guaranteed to use contiguous storage (i.e. same as arrays).

FocusedWolf wrote:
i'm not sure how it works but my guess is that somehow it's magically reading the size from the declaration of the array.


That's the one. You pass an array and the compiler instantiates the function with the template parameters appropriate for that array.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Is it "ok" to get array length this way Pin
FocusedWolf2-Jun-09 4:27
FocusedWolf2-Jun-09 4:27 
GeneralRe: Is it "ok" to get array length this way Pin
Stuart Dootson1-Jun-09 20:32
professionalStuart Dootson1-Jun-09 20:32 
QuestionRe: Is it "ok" to get array length this way Pin
David Crow1-Jun-09 17:08
David Crow1-Jun-09 17:08 
AnswerRe: Is it "ok" to get array length this way Pin
FocusedWolf2-Jun-09 4:26
FocusedWolf2-Jun-09 4:26 
AnswerRe: Is it "ok" to get array length this way Pin
gethomast2-Jun-09 2:28
gethomast2-Jun-09 2:28 
QuestionMDI without FileNew message at startup Pin
transoft1-Jun-09 9:09
transoft1-Jun-09 9:09 
AnswerRe: MDI without FileNew message at startup Pin
David Crow1-Jun-09 9:35
David Crow1-Jun-09 9:35 
Questionhelp Pin
ramina sen1-Jun-09 8:33
ramina sen1-Jun-09 8:33 
QuestionRe: help Pin
David Crow1-Jun-09 9:35
David Crow1-Jun-09 9:35 
AnswerRe: help Pin
Michael Schubert1-Jun-09 22:00
Michael Schubert1-Jun-09 22:00 
QuestionCView::OnFilePrintPreview Pin
Software20071-Jun-09 7:35
Software20071-Jun-09 7:35 
QuestionAdd a scrollbar when I StrechtBlt() an image? Pin
Episodio11-Jun-09 6:44
Episodio11-Jun-09 6:44 
QuestionAfter response WM_DRAWITEM message , how to make a function that it is similar to CMemu::SetMenuItemBitmaps [modified] Pin
bdwzz1-Jun-09 5:53
bdwzz1-Jun-09 5:53 
Questionthreading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 4:29
professionalChris Losinger1-Jun-09 4:29 
AnswerRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 4:52
sitebuilderLuc Pattyn1-Jun-09 4:52 
GeneralRe: threading differences VC6 v VS2005 Pin
Chris Losinger1-Jun-09 5:10
professionalChris Losinger1-Jun-09 5:10 
GeneralRe: threading differences VC6 v VS2005 Pin
Luc Pattyn1-Jun-09 5:49
sitebuilderLuc Pattyn1-Jun-09 5:49 

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.