Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ping <IP Address> - Monitor Pin
Antony M Kancidrowski28-Jan-05 10:13
Antony M Kancidrowski28-Jan-05 10:13 
GeneralRichEditView Pin
Yulianto.26-Jan-05 23:10
Yulianto.26-Jan-05 23:10 
GeneralRe: RichEditView Pin
David Crow27-Jan-05 3:06
David Crow27-Jan-05 3:06 
QuestionHow to add Horizental Scroll in CCheckListBox Control Pin
zahid_ash26-Jan-05 22:41
zahid_ash26-Jan-05 22:41 
AnswerRe: How to add Horizental Scroll in CCheckListBox Control Pin
Ravi Bhavnani27-Jan-05 3:44
professionalRavi Bhavnani27-Jan-05 3:44 
GeneralUsing CArray From Dialog Box Pin
jw8126-Jan-05 22:40
jw8126-Jan-05 22:40 
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 
Thanks Abyss,

But I still dont get the idea. Let me explain the task I need the program to do.

I have a coordinate display in CView (I use OnDraw to draw out the x-axis and y-axis) that allows user to use mouse pointer to pick out coordinate points on CView. Each points will be collected into an array (CArray). I made a struct that contents two elements x & y to store x and y coordinates.

Next, I have a dialog to list out the points. The dialog can be accessed from the menu.

I am new to VC++ but I have b/ground in C. How can use MFC to ease my coding?

1) Must I use struct so store x & y in CArray? Is there another way?
2) How can I use the CArray in my listing dialog? I tried to declare public variables in CView (CArray<mystruct,mystruct> myarray) but it doesnt allow me to declare.

Thanks a million.
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 
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 

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.