Click here to Skip to main content
15,849,129 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDialog box Handle where to find it Pin
WinNewbie10-May-03 16:24
sussWinNewbie10-May-03 16:24 
GeneralRe: Dialog box Handle where to find it Pin
Michael Dunn10-May-03 18:12
sitebuilderMichael Dunn10-May-03 18:12 
GeneralRe: Dialog box Handle where to find it Pin
Win Newbie11-May-03 3:39
sussWin Newbie11-May-03 3:39 
GeneralRe: Dialog box Handle where to find it Pin
WinNewbie12-May-03 7:19
sussWinNewbie12-May-03 7:19 
GeneralHave split up string, but there must be a better way of doing this!! Pin
IrishSonic10-May-03 15:18
IrishSonic10-May-03 15:18 
GeneralRe: Have split up string, but there must be a better way of doing this!! Pin
Bartosz Bien10-May-03 15:24
Bartosz Bien10-May-03 15:24 
GeneralRe: Have split up string, but there must be a better way of doing this!! Pin
Michael Dunn10-May-03 15:29
sitebuilderMichael Dunn10-May-03 15:29 
Generalread a vector Pin
aguest10-May-03 14:48
aguest10-May-03 14:48 
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 a vector Pin
Ernest Laurentin10-May-03 15:50
Ernest Laurentin10-May-03 15:50 
GeneralRe: read a vector Pin
aguest10-May-03 16:37
aguest10-May-03 16:37 
GeneralProblem with GetLine() in a CEdit Pin
selecta10-May-03 13:29
selecta10-May-03 13:29 
GeneralRe: Problem with GetLine() in a CEdit Pin
Ernest Laurentin10-May-03 15:44
Ernest Laurentin10-May-03 15:44 
GeneralRe: Problem with GetLine() in a CEdit Pin
selecta11-May-03 7:17
selecta11-May-03 7:17 
GeneralRe: Problem with GetLine() in a CEdit Pin
selecta11-May-03 8:27
selecta11-May-03 8:27 
GeneralHtml control and selection Pin
Atlence10-May-03 12:30
Atlence10-May-03 12:30 
GeneralCBTProc not working Pin
S van Leent10-May-03 9:46
S van Leent10-May-03 9:46 
GeneralRe: CBTProc not working Pin
Ernest Laurentin10-May-03 15:31
Ernest Laurentin10-May-03 15:31 
GeneralRe: CBTProc not working Pin
S van Leent11-May-03 9:24
S van Leent11-May-03 9:24 
GeneralCost of a function call Pin
Shah Shehpori10-May-03 9:13
sussShah Shehpori10-May-03 9:13 
GeneralRe: Cost of a function call Pin
Michael Dunn10-May-03 9:50
sitebuilderMichael Dunn10-May-03 9:50 
GeneralRe: Cost of a function call Pin
Joe Woodbury10-May-03 10:18
professionalJoe Woodbury10-May-03 10:18 
GeneralRe: Cost of a function call Pin
S van Leent10-May-03 12:17
S van Leent10-May-03 12:17 
GeneralRe: Cost of a function call Pin
Joe Woodbury10-May-03 13:04
professionalJoe Woodbury10-May-03 13:04 
GeneralRe: Cost of a function call Pin
S van Leent11-May-03 9:17
S van Leent11-May-03 9:17 
GeneralRe: Cost of a function call Pin
Shah Shehpori11-May-03 6:16
sussShah Shehpori11-May-03 6:16 

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.