Click here to Skip to main content
15,913,055 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: IDL enum and VC Import Pin
Jörgen Sigvardsson13-May-03 11:09
Jörgen Sigvardsson13-May-03 11:09 
GeneralRe: IDL enum and VC Import Pin
John M. Drescher13-May-03 11:20
John M. Drescher13-May-03 11:20 
GeneralConsuming ATL generated events in IE Pin
rajeev11-May-03 18:50
rajeev11-May-03 18:50 
General2 questions in wtl Pin
User 1605510-May-03 16:06
User 1605510-May-03 16:06 
GeneralRe: 2 questions in wtl Pin
Michael Dunn10-May-03 17:19
sitebuilderMichael Dunn10-May-03 17:19 
GeneralRe: 2 questions in wtl Pin
User 1605511-May-03 0:09
User 1605511-May-03 0:09 
GeneralRe: 2 questions in wtl Pin
Michael Dunn11-May-03 6:03
sitebuilderMichael Dunn11-May-03 6:03 
Generalread vector Pin
aguest10-May-03 13:53
aguest10-May-03 13:53 
hello

i creat a vector in class named foufou vector< foufou * > fou_caracter;and in an other class i store in the vector a random position that i generat
by rand

void creatfoufou::creatfou(int amount)<br />
{<br />
   foufou *newfoufouPtr;<br />
 <br />
   int speed,steer;<br />
<br />
   for(int index=0;index<amount;index++)<br />
   {<br />
	  <br />
<br />
	   ptrfoufou->initPosX =( ( 1 + rand( ) % 100 ) - 50 );<br />
	   ptrfoufou->initPosY =( ( 1 + rand( ) % 100 ) - 50 );<br />
	   ptrfoufou->initPosZ =( ( 1 + rand( ) % 100) - 50);<br />
   <br />
		 newfoufouPtr = new foufou();<br />
       fou_caracter.push_back( newfoufouPtr );<br />
  <br />
	   <br />
	   <br />
<br />
   }<br />
}<br />
<br />


and in an other function i want read the vector but i don't can

void creatfoufou::iteratorVector()<br />
{<br />
<br />
creatfou(5);<br />
int vectorIndex;<br />
vectorIndex = fou_caracter.size();<br />
<br />
  for (int i=0;i<vectorIndex ;i++)<br />
  {<br />
<br />
   ptrfoufou->RePaint(<br />
   fou_caracter[i]->initPosX,<br />
   fou_caracter[i]->initPosY,<br />
   fou_caracter[i]->initPosZ);<br />
  }<br />
<br />
<br />
}



what is the error with this???
GeneralRe: read vector Pin
Nick Parker11-May-03 2:59
protectorNick Parker11-May-03 2:59 
GeneralRe: read vector Pin
aguest11-May-03 5:39
aguest11-May-03 5:39 
GeneralRe: read vector Pin
Nick Parker11-May-03 12:40
protectorNick Parker11-May-03 12:40 
GeneralATL COM object not callable in ASP Pin
cmak9-May-03 18:58
cmak9-May-03 18:58 
GeneralRe: ATL COM object not callable in ASP Pin
Brian Shifrin9-May-03 21:26
Brian Shifrin9-May-03 21:26 
GeneralRe: ATL COM object not callable in ASP Pin
Jörgen Sigvardsson13-May-03 9:46
Jörgen Sigvardsson13-May-03 9:46 
Generalstd::vector Pin
73Zeppelin9-May-03 15:59
73Zeppelin9-May-03 15:59 
GeneralRe: std::vector Pin
Tim Smith9-May-03 16:36
Tim Smith9-May-03 16:36 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:36
73Zeppelin9-May-03 17:36 
GeneralRe: std::vector Pin
John M. Drescher9-May-03 17:00
John M. Drescher9-May-03 17:00 
GeneralRe: std::vector Pin
73Zeppelin9-May-03 17:41
73Zeppelin9-May-03 17:41 
GeneralMFC dialog containing ATL control that fires events... Pin
nebbish8-May-03 9:18
nebbish8-May-03 9:18 
GeneralIE Toolbar in ATL Pin
H.P.8-May-03 8:01
H.P.8-May-03 8:01 
GeneralFireing events from worker thread Pin
Sivakumar R8-May-03 2:08
Sivakumar R8-May-03 2:08 
GeneralRe: Fireing events from worker thread Pin
Ernest Laurentin8-May-03 4:22
Ernest Laurentin8-May-03 4:22 
Questionwriting data to a text file????????? Pin
xxhimanshu8-May-03 1:30
xxhimanshu8-May-03 1:30 
AnswerRe: writing data to a text file????????? Pin
Nick Parker10-May-03 11:38
protectorNick Parker10-May-03 11:38 

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.