Click here to Skip to main content
15,880,392 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Instances of an object Pin
Cyclone_S20-Mar-11 14:47
Cyclone_S20-Mar-11 14:47 
AnswerRe: Instances of an object Pin
Luc Pattyn20-Mar-11 14:50
sitebuilderLuc Pattyn20-Mar-11 14:50 
GeneralRe: Instances of an object Pin
Cyclone_S20-Mar-11 15:30
Cyclone_S20-Mar-11 15:30 
GeneralRe: Instances of an object Pin
John Schroedl21-Mar-11 4:02
professionalJohn Schroedl21-Mar-11 4:02 
GeneralRe: Instances of an object Pin
Cyclone_S21-Mar-11 15:44
Cyclone_S21-Mar-11 15:44 
GeneralRe: Instances of an object Pin
Cyclone_S23-Mar-11 13:21
Cyclone_S23-Mar-11 13:21 
AnswerRe: Instances of an object Pin
Luc Pattyn23-Mar-11 16:01
sitebuilderLuc Pattyn23-Mar-11 16:01 
GeneralRe: Instances of an object Pin
John Schroedl23-Mar-11 18:22
professionalJohn Schroedl23-Mar-11 18:22 
Luc is correct, the missile really should not maintain four timers.

As for why you cannot seem to delete the object, there are a few things here:

When you detect the collision, you need to remove o1->Box3 from the form children so that it disappears from the screen. After that, simply set o1 = null;

It's probably smart to make a function in the object class like explode() which does the removal of Box3.

Also, you have lots of code which assumes o1 is non-null. You need to check o1 for null before using it.

And one more suggestion is to rename your class from "object" to something like "target" since it's easy to confuse with System::Object.

John
GeneralRe: Instances of an object Pin
Cyclone_S25-Mar-11 14:31
Cyclone_S25-Mar-11 14:31 
GeneralRe: Instances of an object Pin
Cyclone_S26-Mar-11 9:38
Cyclone_S26-Mar-11 9:38 
Questionreturn 2 HWND Pin
Masternoob00718-Mar-11 1:19
Masternoob00718-Mar-11 1:19 
AnswerRe: return 2 HWND Pin
Richard MacCutchan18-Mar-11 2:50
mveRichard MacCutchan18-Mar-11 2:50 
Question[C++/CLI] Progressbar doesn't work [modified] Pin
Masternoob00716-Mar-11 2:08
Masternoob00716-Mar-11 2:08 
AnswerRe: [C++/CLI] Progressbar doesn't work Pin
Luc Pattyn16-Mar-11 2:27
sitebuilderLuc Pattyn16-Mar-11 2:27 
GeneralRe: [C++/CLI] Progressbar doesn't work Pin
Masternoob00716-Mar-11 2:37
Masternoob00716-Mar-11 2:37 
Questionproblem in using library of LFSR Pin
smishtiaqhussain12-Mar-11 9:24
smishtiaqhussain12-Mar-11 9:24 
AnswerRe: problem in using library of LFSR Pin
Richard MacCutchan12-Mar-11 9:48
mveRichard MacCutchan12-Mar-11 9:48 
GeneralRe: problem in using library of LFSR Pin
smishtiaqhussain12-Mar-11 10:49
smishtiaqhussain12-Mar-11 10:49 
GeneralRe: problem in using library of LFSR Pin
Richard MacCutchan12-Mar-11 22:29
mveRichard MacCutchan12-Mar-11 22:29 
AnswerRe: problem in using library of LFSR Pin
Luc Pattyn12-Mar-11 9:59
sitebuilderLuc Pattyn12-Mar-11 9:59 
GeneralRe: problem in using library of LFSR Pin
jschell13-Mar-11 10:14
jschell13-Mar-11 10:14 
QuestionProblems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 21:36
Ole Morten Heien10-Mar-11 21:36 
AnswerRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 22:48
mveRichard MacCutchan10-Mar-11 22:48 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Ole Morten Heien10-Mar-11 22:55
Ole Morten Heien10-Mar-11 22:55 
GeneralRe: Problems using managed C++ DLL's on WinXP and Win2003 Pin
Richard MacCutchan10-Mar-11 23:46
mveRichard MacCutchan10-Mar-11 23: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.