Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:19
David Crow7-Aug-08 4:19 
GeneralRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:22
__DanC__7-Aug-08 4:22 
GeneralRe: Passing string array as pointer Pin
David Crow7-Aug-08 4:55
David Crow7-Aug-08 4:55 
QuestionRe: Passing string array as pointer Pin
Matthew Faithfull7-Aug-08 4:09
Matthew Faithfull7-Aug-08 4:09 
AnswerRe: Passing string array as pointer Pin
__DanC__7-Aug-08 4:14
__DanC__7-Aug-08 4:14 
GeneralRe: Passing string array as pointer Pin
Matthew Faithfull7-Aug-08 4:25
Matthew Faithfull7-Aug-08 4:25 
AnswerRe: Passing string array as pointer Pin
Stephen Hewitt7-Aug-08 14:52
Stephen Hewitt7-Aug-08 14:52 
QuestionIncrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:06
T.RATHA KRISHNAN7-Aug-08 3:06 
I want to move an Object to a particular point if a condition is met. I use the variable "pWaypointNum1" to refer the position of the object and "mCharacter to refer the Object. Here's the code:

if(pWaypointNum1 < 6)
	  {
	   if((pWaypointNum1 > 1) && (pWaypointNum1 <= 3))
	   {
	     test1 = 6; //Change the speed of the Object to 6
	   }
	   else
	   {
	     test1 = 3; //Change the speed of the Object to 3
	   }
	   mCharacter1->GoToWaypoint(pWaypointNum1); //To send the Object to "pWaypointNum1"
	   pWaypointNum1++;  //Incrementing the Object's position.
	  }


My problem is:
I want to increment the variable pWaypointNum1 by 1 as the Object moves from one position to the next position. But it increments in a sudden. How to increment the pWaypointNum1 variable as the Object moves from one position to the next position?
QuestionRe: Incrementing a Variable Pin
David Crow7-Aug-08 3:17
David Crow7-Aug-08 3:17 
QuestionRe: Incrementing a Variable Pin
Perspx7-Aug-08 3:18
Perspx7-Aug-08 3:18 
AnswerRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:26
T.RATHA KRISHNAN7-Aug-08 3:26 
GeneralRe: Incrementing a Variable Pin
Cedric Moonen7-Aug-08 3:44
Cedric Moonen7-Aug-08 3:44 
GeneralRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:49
T.RATHA KRISHNAN7-Aug-08 3:49 
QuestionRe: Incrementing a Variable Pin
David Crow7-Aug-08 3:46
David Crow7-Aug-08 3:46 
GeneralRe: Incrementing a Variable Pin
cgb1437-Aug-08 10:25
cgb1437-Aug-08 10:25 
AnswerRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:33
T.RATHA KRISHNAN7-Aug-08 3:33 
GeneralRe: Incrementing a Variable Pin
Perspx7-Aug-08 3:37
Perspx7-Aug-08 3:37 
GeneralRe: Incrementing a Variable Pin
T.RATHA KRISHNAN7-Aug-08 3:40
T.RATHA KRISHNAN7-Aug-08 3:40 
GeneralRe: Incrementing a Variable Pin
Perspx7-Aug-08 3:46
Perspx7-Aug-08 3:46 
GeneralRe: Incrementing a Variable Pin
cgb1437-Aug-08 10:18
cgb1437-Aug-08 10:18 
GeneralRe: Incrementing a Variable Pin
Perspx7-Aug-08 10:22
Perspx7-Aug-08 10:22 
AnswerRe: Incrementing a Variable Pin
Nelek7-Aug-08 22:44
protectorNelek7-Aug-08 22:44 
Question[Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 2:32
madyastha7-Aug-08 2:32 
AnswerRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
David Crow7-Aug-08 2:53
David Crow7-Aug-08 2:53 
GeneralRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 3:34
madyastha7-Aug-08 3:34 

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.