Click here to Skip to main content
15,885,366 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: vb.net to c++ Pin
Naveen25-Oct-07 15:49
Naveen25-Oct-07 15:49 
GeneralRe: vb.net to c++ Pin
vikrant kpr25-Oct-07 20:35
vikrant kpr25-Oct-07 20:35 
QuestionRe: vb.net to c++ Pin
Hamid_RT25-Oct-07 20:40
Hamid_RT25-Oct-07 20:40 
AnswerRe: vb.net to c++ Pin
vikrant kpr25-Oct-07 20:45
vikrant kpr25-Oct-07 20:45 
AnswerRe: vb.net to c++ Pin
JudyL_MD26-Oct-07 3:13
JudyL_MD26-Oct-07 3:13 
GeneralRe: vb.net to c++ Pin
vikrant kpr26-Oct-07 5:39
vikrant kpr26-Oct-07 5:39 
GeneralRe: vb.net to c++ Pin
JudyL_MD26-Oct-07 5:48
JudyL_MD26-Oct-07 5:48 
QuestionHow does CArray work? Pin
acerunner31625-Oct-07 14:25
acerunner31625-Oct-07 14:25 
My app is crashing unexpectedly and I suspect that it is because of the CArray object I am using.

I have a CArray inside a structure, and I have an array of this structure.

For example:
struct type1
{
   unsigned char variable1;
   unsigned char variable2;
   CArray<float, float> DataPtTable;
   unsigned char variable3;
};
type1 myArray[5];


Now if I call myArray[2].DataPtTable.Add() or SetSize(), how is the memory allocated? I know it does get reallocated, but does that make calls to members of myArray[2].DataPtTable invalid since it is now pointing somewhere else? Or will it begin to overwrite into memory allocated for variable3, etc?

Thanks.
AnswerRe: How does CArray work? Pin
Naveen25-Oct-07 15:45
Naveen25-Oct-07 15:45 
AnswerRe: How does CArray work? Pin
Mark Salsbery26-Oct-07 6:42
Mark Salsbery26-Oct-07 6:42 
GeneralRe: How does CArray work? Pin
acerunner31626-Oct-07 9:10
acerunner31626-Oct-07 9:10 
GeneralRe: How does CArray work? Pin
Mark Salsbery26-Oct-07 9:19
Mark Salsbery26-Oct-07 9:19 
GeneralRe: How does CArray work? Pin
acerunner31626-Oct-07 9:30
acerunner31626-Oct-07 9:30 
GeneralRe: How does CArray work? Pin
Mark Salsbery26-Oct-07 9:34
Mark Salsbery26-Oct-07 9:34 
AnswerRe: How does CArray work? Pin
Nelek29-Oct-07 4:06
protectorNelek29-Oct-07 4:06 
QuestionWindow Redraw Problem .. Pin
neil478125-Oct-07 12:47
neil478125-Oct-07 12:47 
AnswerRe: Window Redraw Problem .. Pin
santhoshv8425-Oct-07 18:30
santhoshv8425-Oct-07 18:30 
GeneralRe: Window Redraw Problem .. Pin
Nishad S25-Oct-07 19:09
Nishad S25-Oct-07 19:09 
AnswerRe: Window Redraw Problem .. Pin
Nishad S25-Oct-07 19:20
Nishad S25-Oct-07 19:20 
Questionreceive(socket) before send(socket) Pin
nhathoang25-Oct-07 11:42
nhathoang25-Oct-07 11:42 
Questiona windows API function to convert JPG into BMP [modified] Pin
V_shr25-Oct-07 10:21
V_shr25-Oct-07 10:21 
AnswerRe: an API to convert JPG to BMP Pin
Chris Losinger25-Oct-07 10:23
professionalChris Losinger25-Oct-07 10:23 
GeneralRe: an API to convert JPG to BMP Pin
V_shr25-Oct-07 10:26
V_shr25-Oct-07 10:26 
GeneralRe: an API to convert JPG to BMP [modified] Pin
V_shr25-Oct-07 10:31
V_shr25-Oct-07 10:31 
AnswerRe: a windows API function to convert JPG into BMP Pin
Mark Salsbery25-Oct-07 11:09
Mark Salsbery25-Oct-07 11:09 

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.