Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 6:22
so0_lanhlung220-Mar-11 6:22 
GeneralRe: Help Get handles of process Pin
Hans Dietrich20-Mar-11 7:12
mentorHans Dietrich20-Mar-11 7:12 
GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 15:54
so0_lanhlung220-Mar-11 15:54 
Questioncan anyone convert this MFC code to WIN32 code please help Pin
goldenrose919-Mar-11 19:39
goldenrose919-Mar-11 19:39 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Stephen Hewitt19-Mar-11 20:54
Stephen Hewitt19-Mar-11 20:54 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Richard MacCutchan19-Mar-11 22:19
mveRichard MacCutchan19-Mar-11 22:19 
GeneralMessage Removed Pin
19-Mar-11 22:37
goldenrose919-Mar-11 22:37 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
Richard MacCutchan19-Mar-11 22:44
mveRichard MacCutchan19-Mar-11 22:44 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
User 742933820-Mar-11 0:37
professionalUser 742933820-Mar-11 0:37 
AnswerRe: can anyone convert this MFC code to WIN32 code please help Pin
Hans Dietrich20-Mar-11 1:40
mentorHans Dietrich20-Mar-11 1:40 
GeneralMessage Removed Pin
20-Mar-11 1:56
goldenrose920-Mar-11 1:56 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
Hans Dietrich20-Mar-11 2:43
mentorHans Dietrich20-Mar-11 2:43 
JokeMessage Removed Pin
20-Mar-11 2:52
goldenrose920-Mar-11 2:52 
GeneralRe: can anyone convert this MFC code to WIN32 code please help PinPopular
Hans Dietrich20-Mar-11 3:14
mentorHans Dietrich20-Mar-11 3:14 
GeneralMessage Removed Pin
20-Mar-11 6:02
goldenrose920-Mar-11 6:02 
GeneralRe: can anyone convert this MFC code to WIN32 code please help PinPopular
Richard MacCutchan20-Mar-11 7:16
mveRichard MacCutchan20-Mar-11 7:16 
GeneralRe: can anyone convert this MFC code to WIN32 code please help Pin
tagopi21-Mar-11 0:29
tagopi21-Mar-11 0:29 
QuestionInstances of an object [modified] Pin
Cyclone_S19-Mar-11 14:01
Cyclone_S19-Mar-11 14:01 
AnswerRe: Instances of an object Pin
Luc Pattyn19-Mar-11 14:49
sitebuilderLuc Pattyn19-Mar-11 14:49 
GeneralRe: Instances of an object Pin
Cyclone_S19-Mar-11 15:58
Cyclone_S19-Mar-11 15:58 
AnswerRe: Instances of an object Pin
Luc Pattyn19-Mar-11 17:20
sitebuilderLuc Pattyn19-Mar-11 17:20 
Not really. This is how it would look in C#; C++/CLI allows similar stuff, I'm less fluent in it:
C#
// declare a list of missiles
List<Missile> missiles=new List<Missile>();   // a List is like an auto-dimensioning array!

// create missiles and load the list
for(int i=0; i<10; i++) {
    Missile m=new Missile();
    m.Location=new Point(100+33*i, 200*10*i);
    m.SetColor(Color.Yellow);
    missiles.Add(m);
}

// do something to those missiles, one by one, by enumerating them
foreach(Missile m in missiles) {
    if (m.IsHit()) m.SetColor(Color.Green);
}


which illustrates you don't need individual variables for collectible items at all.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: Instances of an object Pin
Cyclone_S21-Mar-11 15:36
Cyclone_S21-Mar-11 15:36 
Questionhow to remove the extra border of a button after enabling xp visual style Pin
goldenrose918-Mar-11 17:38
goldenrose918-Mar-11 17:38 
AnswerRe: how to remove the extra border of a button after enabling xp visual style Pin
Hans Dietrich19-Mar-11 2:32
mentorHans Dietrich19-Mar-11 2:32 
QuestionRe: how to remove the extra border of a button after enabling xp visual style Pin
goldenrose919-Mar-11 8:02
goldenrose919-Mar-11 8: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.