Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a linked list; need to know good practices. Pin
ninjanear21-May-08 3:15
professionalninjanear21-May-08 3:15 
QuestionHow to change keyboard typematic rate /delay (and led ind.) VC++/MFC? [modified] Pin
ninjanear29-Apr-08 10:05
professionalninjanear29-Apr-08 10:05 
QuestionRe: How to change typematic rate in keyboard? Pin
David Crow29-Apr-08 10:22
David Crow29-Apr-08 10:22 
AnswerRe: How to change typematic rate in keyboard? [modified] Pin
ninjanear20-May-08 23:07
professionalninjanear20-May-08 23:07 
QuestionHow do I customize the standard property sheet buttons Pin
si_6929-Apr-08 7:52
si_6929-Apr-08 7:52 
AnswerRe: How do I customize the standard property sheet buttons Pin
David Crow29-Apr-08 8:12
David Crow29-Apr-08 8:12 
AnswerRe: How do I customize the standard property sheet buttons Pin
Hamid_RT29-Apr-08 21:52
Hamid_RT29-Apr-08 21:52 
GeneralDynamically Creating Objects Pin
codeinelogic29-Apr-08 6:09
codeinelogic29-Apr-08 6:09 
Im making a class to be used in a final project for my c++ class and in my game i need to create the object "shot" when the user shoots the problem is "this" when declaring Shot=new TImage(this); has to be a part of a member function.... heres my declaration of my class and the snipit of code where i create the object called "shot" please help D'Oh! | :doh:


#ifndef SpaceInvaders<br />
#define SpaceInvaders<br />
//---------------------------------------------------------------------------<br />
#include <Classes.hpp><br />
#include <Controls.hpp><br />
#include <StdCtrls.hpp><br />
#include <Forms.hpp><br />
#include <ExtCtrls.hpp><br />
#include <Graphics.hpp><br />
//---------------------------------------------------------------------------<br />
<br />
class SpaceInvaders{<br />
private:<br />
public:<br />
        TImage *Shot;<br />
        bool __fastcall Collide(TControl *C1, TControl *C2);<br />
        void __fastcall Shots(TControl *C1);<br />
        void UserMovement(TControl *C1);<br />
};<br />
TImage *Shot;



and when i create the object...

<br />
        Shot=new TImage(*TForm1);<br />
        Shot->Parent=Form1;<br />
        //Shot->Picture;<br />
        Shot->Width=15;<br />
        Shot->Proportional=true;<br />
        Shot->Visible=true;<br />
        Shot->Top=ShootFrom_Y;<br />
        Shot->Left=ShootFrom_X-(Shot->Width/2);<br />

QuestionRe: Dynamically Creating Objects Pin
David Crow29-Apr-08 7:29
David Crow29-Apr-08 7:29 
QuestionMFC dosen't care about code quality? Pin
Naveen29-Apr-08 4:16
Naveen29-Apr-08 4:16 
AnswerRe: MFC dosen't care about code quality? Pin
David Crow29-Apr-08 4:32
David Crow29-Apr-08 4:32 
GeneralRe: MFC dosen't care about code quality? Pin
Naveen29-Apr-08 4:44
Naveen29-Apr-08 4:44 
AnswerRe: MFC dosen't care about code quality? Pin
toxcct29-Apr-08 5:08
toxcct29-Apr-08 5:08 
GeneralRe: MFC dosen't care about code quality? Pin
Naveen29-Apr-08 5:23
Naveen29-Apr-08 5:23 
GeneralRe: MFC dosen't care about code quality? Pin
toxcct29-Apr-08 5:30
toxcct29-Apr-08 5:30 
AnswerRe: MFC dosen't care about code quality? PinPopular
Randor 29-Apr-08 5:51
professional Randor 29-Apr-08 5:51 
GeneralRe: MFC dosen't care about code quality? Pin
BadKarma29-Apr-08 21:16
BadKarma29-Apr-08 21:16 
QuestionRe: MFC dosen't care about code quality? Pin
bob1697229-Apr-08 21:47
bob1697229-Apr-08 21:47 
QuestionImplementation of gmtime( ) in Windows mobile Pin
Mohanraj D29-Apr-08 2:17
Mohanraj D29-Apr-08 2:17 
QuestionRe: Implementation of gmtime( ) in Windows mobile Pin
David Crow29-Apr-08 3:06
David Crow29-Apr-08 3:06 
QuestionVC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:02
lgatcodeproject29-Apr-08 0:02 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:14
mveCPallini29-Apr-08 0:14 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:29
lgatcodeproject29-Apr-08 0:29 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
CPallini29-Apr-08 0:38
mveCPallini29-Apr-08 0:38 
GeneralRe: VC++ DLL - ? assign value to VARIANT type variable Pin
lgatcodeproject29-Apr-08 0:50
lgatcodeproject29-Apr-08 0:50 

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.