Click here to Skip to main content
15,942,710 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using CArray From Dialog Box Pin
Abyss27-Jan-05 1:48
Abyss27-Jan-05 1:48 
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 3:00
jw8127-Jan-05 3:00 
GeneralRe: Using CArray From Dialog Box Pin
Abyss27-Jan-05 3:31
Abyss27-Jan-05 3:31 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 3:13
David Crow27-Jan-05 3:13 
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 4:20
jw8127-Jan-05 4:20 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 4:29
David Crow27-Jan-05 4:29 
GeneralRe: Using CArray From Dialog Box Pin
jw8127-Jan-05 4:58
jw8127-Jan-05 4:58 
GeneralRe: Using CArray From Dialog Box Pin
David Crow27-Jan-05 5:20
David Crow27-Jan-05 5:20 
You need to put the struct in a .h file by itself. Then each of the .cpp or .h files that need it can simply #include it.

mystruct.h:
 
struct MyStruct
{
    float x;
    float y;
};
 
typedef CArray<MyStruct*, MyStruct*> MyStructArray;
Now the view and the dialog can each have a MyStructArray member variable.



"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow


GeneralRe: Using CArray From Dialog Box Pin
jw8129-Jan-05 18:45
jw8129-Jan-05 18:45 
GeneralRe: Using CArray From Dialog Box Pin
David Crow31-Jan-05 3:12
David Crow31-Jan-05 3:12 
GeneralRe: Using CArray From Dialog Box Pin
jw813-Feb-05 5:01
jw813-Feb-05 5:01 
GeneralRe: Using CArray From Dialog Box Pin
David Crow3-Feb-05 5:37
David Crow3-Feb-05 5:37 
GeneralRe: Using CArray From Dialog Box Pin
jw813-Feb-05 5:40
jw813-Feb-05 5:40 
GeneralRe: Using CArray From Dialog Box Pin
jw8112-Feb-05 3:50
jw8112-Feb-05 3:50 
GeneralHexadecimal Pin
dex_ter1126-Jan-05 22:31
dex_ter1126-Jan-05 22:31 
GeneralRe: Hexadecimal Pin
toxcct26-Jan-05 23:38
toxcct26-Jan-05 23:38 
GeneralCreating xml file in vc++ Pin
imajit26-Jan-05 22:14
imajit26-Jan-05 22:14 
GeneralCreating xml file in vc++ Pin
Anonymous26-Jan-05 22:13
Anonymous26-Jan-05 22:13 
GeneralRe: Creating xml file in vc++ Pin
RicoH27-Jan-05 0:44
RicoH27-Jan-05 0:44 
Generalraw sockets Pin
2000ram26-Jan-05 22:05
2000ram26-Jan-05 22:05 
GeneralRe: raw sockets Pin
Antony M Kancidrowski27-Jan-05 1:04
Antony M Kancidrowski27-Jan-05 1:04 
QuestionFunctions? Pin
javad_200526-Jan-05 20:41
javad_200526-Jan-05 20:41 
AnswerRe: Functions? Pin
kedar.dave27-Jan-05 0:23
kedar.dave27-Jan-05 0:23 
AnswerRe: Functions? Pin
Antony M Kancidrowski27-Jan-05 1:21
Antony M Kancidrowski27-Jan-05 1:21 
Generalconnecting to a database using just DSN in c/c++ Pin
D.Venkatesh26-Jan-05 19:46
D.Venkatesh26-Jan-05 19:46 

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.