Click here to Skip to main content
15,909,440 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
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 
GeneralRe: Vector & structur Pin
markkuk20-May-03 1:23
markkuk20-May-03 1:23 
GeneralRe: Vector & structur Pin
aguest20-May-03 12:02
aguest20-May-03 12:02 
When I wanted to read the vector of structur i have error:

<br />
for(int Index=0;Index<CharacterPos.size() ; Index++)<br />
{<br />
glTranslated(CharacterPos[Index]->xpos,CharacterPos[Index]->ypos , 0 );//line (62)<br />
	 }



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(); //line(88)<br />
       <br />
	<br />
	   PtrCreat.xpos = ( ( 1 + rand( ) % 120 ) - 70 );<br />
	   PtrCreat.ypos = ( ( 1 + rand( ) % 120 ) - 70 );<br />
	   CharacterPos.push_back(PtrCreat);<br />
	   <br />
	}<br />
<br />
}<br />


i have this error
62) : error C2819: type 'CharacterCoordinate' does not have an overloaded member 'operator ->'<br />
        c:\program files\microsoft visual studio\myprojects\essai\mfcopengl\scene.h(21) : see declaration of 'CharacterCoordinate'<br />
(62) : error C2227: left of '->xpos' must point to class/struct/union<br />
(62) : error C2819: type 'CharacterCoordinate' does not have an overloaded member 'operator ->'<br />
(21) : see declaration of 'CharacterCoordinate'<br />
(62) : error C2227: left of '->ypos' must point to class/struct/union<br />
88) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'struct CharacterCoordinate *' (or there is no acceptable conversion)<br />

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 
AnswerRe: How Can use CFileDialog in WTL Frameworks? Pin
Boyren18-May-03 1:40
Boyren18-May-03 1:40 
GeneralCstring/Atlstr.h Pin
DuFF17-May-03 1:36
DuFF17-May-03 1:36 

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.