Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:17
Waldermort18-Nov-06 7:17 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:08
professionalPJ Arends18-Nov-06 7:08 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:14
Waldermort18-Nov-06 7:14 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:22
professionalPJ Arends18-Nov-06 7:22 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:33
Waldermort18-Nov-06 7:33 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:38
professionalPJ Arends18-Nov-06 7:38 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:46
Waldermort18-Nov-06 7:46 
AnswerRe: dynamic array sizes Pin
Michael Dunn18-Nov-06 14:00
sitebuilderMichael Dunn18-Nov-06 14:00 
You know the size when you do the alloc. If you need to keep that size around for later use, then you have to store it somewhere.
An alternative is to use a vector of bytes:
vector<BYTE> vec(1000);
RGNDATA* pData = (RGNDATA*) &vec[0];
vector<BYTE>::size_type cbyBuffer = vec.size();


--Mike--
Visual C++ MVP Cool | :cool:
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ

AnswerRe: dynamic array sizes Pin
Christian Graus18-Nov-06 14:15
protectorChristian Graus18-Nov-06 14:15 
AnswerRe: dynamic array sizes Pin
David Crow20-Nov-06 3:25
David Crow20-Nov-06 3:25 
QuestionPostMessageand SendMessage Pin
neha.agarwal2718-Nov-06 1:46
neha.agarwal2718-Nov-06 1:46 
AnswerRe: PostMessageand SendMessage Pin
Arman S.18-Nov-06 6:59
Arman S.18-Nov-06 6:59 
Questionhow to register ATL COM object in MFC Pin
kiranin17-Nov-06 23:56
kiranin17-Nov-06 23:56 
AnswerRe: how to register ATL COM object in MFC Pin
ThatsAlok18-Nov-06 0:47
ThatsAlok18-Nov-06 0:47 
GeneralRe: how to register ATL COM object in MFC Pin
kiranin18-Nov-06 0:53
kiranin18-Nov-06 0:53 
QuestionAdd context menu item through MFC Application Pin
kiranin17-Nov-06 23:59
kiranin17-Nov-06 23:59 
AnswerRe: Add context menu item through MFC Application Pin
ThatsAlok18-Nov-06 0:47
ThatsAlok18-Nov-06 0:47 
GeneralRe: Add context menu item through MFC Application Pin
kiranin18-Nov-06 0:59
kiranin18-Nov-06 0:59 
GeneralRe: Add context menu item through MFC Application Pin
Hamid_RT18-Nov-06 1:08
Hamid_RT18-Nov-06 1:08 
GeneralRe: Add context menu item through MFC Application Pin
ThatsAlok18-Nov-06 1:28
ThatsAlok18-Nov-06 1:28 
QuestionSHGetFolderLocation() function gives compile time error. Pin
Sameer_Thakur17-Nov-06 21:40
Sameer_Thakur17-Nov-06 21:40 
AnswerRe: SHGetFolderLocation() function gives compile time error. Pin
Hamid_RT17-Nov-06 23:47
Hamid_RT17-Nov-06 23:47 
GeneralRe: SHGetFolderLocation() function gives compile time error. Pin
Sameer_Thakur18-Nov-06 0:40
Sameer_Thakur18-Nov-06 0:40 
GeneralRe: SHGetFolderLocation() function gives compile time error. Pin
Hamid_RT18-Nov-06 1:05
Hamid_RT18-Nov-06 1:05 
GeneralRe: SHGetFolderLocation() function gives compile time error. Pin
Sameer_Thakur18-Nov-06 5:02
Sameer_Thakur18-Nov-06 5:02 

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.