Click here to Skip to main content
15,895,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General[Message Deleted] Pin
Ali Tavakol5-Sep-05 19:57
Ali Tavakol5-Sep-05 19:57 
AnswerRe: icon Pin
toxcct5-Sep-05 21:17
toxcct5-Sep-05 21:17 
QuestionDirectX OverLay ? Pin
seq-5-Sep-05 11:08
seq-5-Sep-05 11:08 
QuestionAddstore() [Outlook Automation] problem Pin
_kane_5-Sep-05 10:25
_kane_5-Sep-05 10:25 
QuestionDEBUG_NEW Pin
Klempie5-Sep-05 8:27
Klempie5-Sep-05 8:27 
AnswerRe: DEBUG_NEW Pin
Bob Stanneveld5-Sep-05 9:41
Bob Stanneveld5-Sep-05 9:41 
Questionhow to get the size of an array Pin
Waleed Eissa5-Sep-05 8:00
Waleed Eissa5-Sep-05 8:00 
AnswerRe: how to get the size of an array Pin
Chris Losinger5-Sep-05 8:07
professionalChris Losinger5-Sep-05 8:07 
not in general.

if you know the arrays are always allocated with malloc, calloc or realloc, you can use _msize to get the allocated size, then divide by the type size. but that's a giant hack and is very likely to lead to disaster (ex. if someone passes an array that was created on the stack or via new)

it's best to just pass the array size, or use a dynamic container like std::vector.


Cleek | Image Toolkits | Thumbnail maker

GeneralRe: how to get the size of an array Pin
Bob Stanneveld5-Sep-05 9:44
Bob Stanneveld5-Sep-05 9:44 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:33
Jose Lamas Rios5-Sep-05 16:33 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:07
Jose Lamas Rios5-Sep-05 16:07 
AnswerRe: how to get the size of an array Pin
toxcct5-Sep-05 21:20
toxcct5-Sep-05 21:20 
AnswerRe: how to get the size of an array Pin
Waleed Eissa6-Sep-05 4:56
Waleed Eissa6-Sep-05 4:56 
QuestionDraw Icon In Combo Box Pin
Skute5-Sep-05 5:58
Skute5-Sep-05 5:58 
QuestionDynamic Disk Pin
sanjaylk5-Sep-05 5:53
sanjaylk5-Sep-05 5:53 
QuestionVC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:24
professionalRavi Bhavnani5-Sep-05 5:24 
AnswerRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:35
Gary R. Wheeler5-Sep-05 5:35 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:45
professionalRavi Bhavnani5-Sep-05 5:45 
GeneralRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:49
Gary R. Wheeler5-Sep-05 5:49 
GeneralRe: VC6 compiler bug? Pin
Bob Stanneveld5-Sep-05 9:46
Bob Stanneveld5-Sep-05 9:46 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 9:53
professionalRavi Bhavnani5-Sep-05 9:53 
QuestionHelp on WebBrowser Pin
Cao Jianlin5-Sep-05 5:05
Cao Jianlin5-Sep-05 5:05 
QuestionRegistry Editing C++ Pin
u6ik5-Sep-05 5:03
u6ik5-Sep-05 5:03 
AnswerRe: Registry Editing C++ Pin
u6ik5-Sep-05 6:44
u6ik5-Sep-05 6:44 
QuestionAbout MS Access Database in vc++:==Plz Help Pin
parims5-Sep-05 3:13
parims5-Sep-05 3:13 

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.