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

C / C++ / MFC

 
GeneralRe: Is this a Bug or What? Pin
sanket.patel11-Apr-07 12:25
sanket.patel11-Apr-07 12:25 
AnswerRe: Is this a Bug or What? Pin
Michael Dunn11-Apr-07 18:47
sitebuilderMichael Dunn11-Apr-07 18:47 
AnswerRe: Is this a Bug or What? Pin
Rajesh R Subramanian11-Apr-07 18:53
professionalRajesh R Subramanian11-Apr-07 18:53 
AnswerRe: Is this a Bug or What? Pin
cp987611-Apr-07 20:11
cp987611-Apr-07 20:11 
GeneralRe: Is this a Bug or What? Pin
Mark Salsbery12-Apr-07 8:15
Mark Salsbery12-Apr-07 8:15 
QuestionUpgraded from Visual C++ 6.0 Pin
SimplCodr11-Apr-07 10:56
SimplCodr11-Apr-07 10:56 
AnswerRe: Upgraded from Visual C++ 6.0 Pin
Michael Dunn11-Apr-07 11:30
sitebuilderMichael Dunn11-Apr-07 11:30 
GeneralRe: Upgraded from Visual C++ 6.0 Pin
SimplCodr11-Apr-07 12:39
SimplCodr11-Apr-07 12:39 
GeneralRe: Upgraded from Visual C++ 6.0 Pin
Michael Dunn11-Apr-07 13:43
sitebuilderMichael Dunn11-Apr-07 13:43 
QuestionChanging text color in a RecordList Pin
LCI11-Apr-07 10:52
LCI11-Apr-07 10:52 
Questionusing STL Vector [modified] Pin
act_x11-Apr-07 9:26
act_x11-Apr-07 9:26 
AnswerRe: using STL Vector Pin
Mark Salsbery11-Apr-07 10:08
Mark Salsbery11-Apr-07 10:08 
GeneralRe: using STL Vector Pin
led mike11-Apr-07 10:10
led mike11-Apr-07 10:10 
GeneralRe: using STL Vector Pin
Mark Salsbery11-Apr-07 10:14
Mark Salsbery11-Apr-07 10:14 
GeneralRe: using STL Vector Pin
act_x11-Apr-07 10:37
act_x11-Apr-07 10:37 
GeneralRe: using STL Vector Pin
Mark Salsbery11-Apr-07 10:45
Mark Salsbery11-Apr-07 10:45 
GeneralRe: using STL Vector Pin
Mark Salsbery11-Apr-07 11:03
Mark Salsbery11-Apr-07 11:03 
GeneralRe: using STL Vector Pin
nde_plume11-Apr-07 14:16
nde_plume11-Apr-07 14:16 
AnswerRe: using STL Vector Pin
led mike11-Apr-07 10:11
led mike11-Apr-07 10:11 
AnswerRe: using STL Vector [modified] Pin
Michael Dunn11-Apr-07 11:28
sitebuilderMichael Dunn11-Apr-07 11:28 
AnswerRe: using STL Vector Pin
Stephen Hewitt11-Apr-07 16:01
Stephen Hewitt11-Apr-07 16:01 
act_x wrote:
if i have an STL vector
vector<BYTE> vec[45] ;

No you don't: you have an array of 45 vectors!

act_x wrote:
BYTE * p = reinterpret_cast<BYTE*>(&vec[0]);

NOTE: Underlined brackets were added by me. They are needed.
This reinterpret_cast is not needed as the type of &vec[0] is already a BYTE*.

act_x wrote:
is it safe to assume that the pointer p can be used safely even though its pointing to the address of a vector ?

It isn't pointing to a vector but rather an element contained in the vector.


Steve

QuestionNo Windows XP Style controls !!! Why ? Pin
Avinash Gupta ITER11-Apr-07 8:41
Avinash Gupta ITER11-Apr-07 8:41 
AnswerRe: No Windows XP Style controls !!! Why ? Pin
Dustin Henry11-Apr-07 9:03
Dustin Henry11-Apr-07 9:03 
GeneralRe: No Windows XP Style controls !!! Why ? Pin
sthotakura11-Apr-07 10:41
sthotakura11-Apr-07 10:41 
GeneralThanks !!! Pin
Avinash Gupta ITER12-Apr-07 21:37
Avinash Gupta ITER12-Apr-07 21:37 

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.