Click here to Skip to main content
15,912,977 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Vector Iterator Pin
ironhead23-May-03 13:40
ironhead23-May-03 13:40 
GeneralList view problem in Explorer like application Pin
Derick Cyril Thomas23-May-03 3:48
Derick Cyril Thomas23-May-03 3:48 
QuestionAbout Implement IDocHostUIHandler Interface funtion ShowContextMenu? Pin
Boyren20-May-03 4:49
Boyren20-May-03 4:49 
GeneralLooking for Good, Concise C++ Tutorials Pin
Kevin McFarlane20-May-03 1:30
Kevin McFarlane20-May-03 1:30 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
valikac20-May-03 8:52
valikac20-May-03 8:52 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Kevin McFarlane20-May-03 11:38
Kevin McFarlane20-May-03 11:38 
GeneralRe: Looking for Good, Concise C++ Tutorials Pin
Joaquín M López Muñoz20-May-03 11:58
Joaquín M López Muñoz20-May-03 11:58 
GeneralVector & structur Pin
aguest20-May-03 0:58
aguest20-May-03 0:58 
hello i has created a vector and i declared as follow:
struct CharacterCoordinate<br />
{<br />
	GLfloat xpos;<br />
	GLfloat ypos;<br />
<br />
};<br />
<br />
std::vector< CharacterCoordinate > CharacterPos;<br />


and i call with
void Scene::CreatInitCharacter(int InitAmount)<br />
{<br />
<br />
<br />
srand(time(0)); <br />
<br />
	CharacterCoordinate *PtrCreat;<br />
<br />
	for(int i=0;i<InitAmount;i++)<br />
	{<br />
		PtrCreat = new CharacterCoordinate(); //creattion d'un nouveau caractere<br />
       CharacterPos.push_back(PtrCreat);<br />
	<br />
	   PtrCreat->xpos = ( ( 1 + rand( ) % 120 ) - 70 );<br />
	   PtrCreat->xpos = ( ( 1 + rand( ) % 120 ) - 70 );<br />
			<br />
<br />
		<br />
<br />
<br />
    <br />
	}<br />
<br />
}<br />


and i have this message error
error C2664: 'push_back' : cannot convert parameter 1 from 'struct CharacterCoordinate *' to 'const struct CharacterCoordinate &'<br />
        Reason: cannot convert from 'struct CharacterCoordinate *' to 'const struct CharacterCoordinate'<br />
        No constructor could take the source type, or constructor overload resolution was ambiguous<br />



and i want to store in the structur but when i want to store in the vector
GeneralRe: Vector &amp; structur Pin
markkuk20-May-03 1:23
markkuk20-May-03 1:23 
GeneralRe: Vector &amp; structur Pin
aguest20-May-03 12:02
aguest20-May-03 12:02 
GeneralRe: Vector & structur Pin
markkuk20-May-03 12:31
markkuk20-May-03 12:31 
GeneralRe: Vector &amp; structur Pin
aguest20-May-03 14:36
aguest20-May-03 14:36 
GeneralRe: Vector &amp; structur Pin
markkuk21-May-03 1:25
markkuk21-May-03 1:25 
GeneralWriting my own stream class Pin
Patje19-May-03 22:12
Patje19-May-03 22:12 
GeneralRe: Writing my own stream class Pin
cerez0220-May-03 5:15
cerez0220-May-03 5:15 
GeneralRe: Writing my own stream class Pin
Joaquín M López Muñoz20-May-03 10:28
Joaquín M López Muñoz20-May-03 10:28 
GeneralRe: Writing my own stream class Pin
Patje20-Jun-03 3:50
Patje20-Jun-03 3:50 
Generalvector troubles Pin
aguest19-May-03 4:30
aguest19-May-03 4:30 
GeneralRe: vector troubles Pin
Joaquín M López Muñoz19-May-03 6:42
Joaquín M López Muñoz19-May-03 6:42 
GeneralInsert icons into ListView Pin
User 1605519-May-03 4:05
User 1605519-May-03 4:05 
QuestionHow Can Get current dll 's directory path Pin
Boyren18-May-03 1:29
Boyren18-May-03 1:29 
AnswerRe: How Can Get current dll 's directory path Pin
Tim Smith18-May-03 1:50
Tim Smith18-May-03 1:50 
GeneralRe: How Can Get current dll 's directory path Pin
Boyren18-May-03 3:45
Boyren18-May-03 3:45 
AnswerRe: How Can Get current dll 's directory path Pin
Michael Dunn18-May-03 8:49
sitebuilderMichael Dunn18-May-03 8:49 
QuestionHow Can use CFileDialog in WTL Frameworks? Pin
Boyren18-May-03 1:22
Boyren18-May-03 1:22 

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.