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

C / C++ / MFC

 
Generaly can only input numerical value to edit box Pin
afender20-Feb-03 20:32
afender20-Feb-03 20:32 
GeneralRe: y can only input numerical value to edit box Pin
jhwurmbach20-Feb-03 20:45
jhwurmbach20-Feb-03 20:45 
GeneralRe: y can only input numerical value to edit box Pin
afender20-Feb-03 21:24
afender20-Feb-03 21:24 
QuestionIs there a map ActiveX? Pin
Peter Molnar20-Feb-03 20:23
Peter Molnar20-Feb-03 20:23 
Questionwhere can I download Win2000 DDK free? Pin
white jungle20-Feb-03 17:41
white jungle20-Feb-03 17:41 
GeneralCVS and VS.NET Pin
Nick Blumhardt20-Feb-03 17:36
Nick Blumhardt20-Feb-03 17:36 
GeneralGDI & Windowing System Pin
vikramlinux20-Feb-03 17:25
vikramlinux20-Feb-03 17:25 
GeneralSTL list use of own class Pin
kiken20-Feb-03 16:32
kiken20-Feb-03 16:32 
It's been quite a while since I've looked at my old coding projects (nearly a year) and now trying to get it to work on Visual C++ rather than Linux/cygwin I find it doesn't quite work Cry | :((

I got stuck here. Vertex is a class that I've defined. The error for this code is list' : use of class template requires template argument list
void inline LeftEdge(list<Vertex>::const_iterator &itr, const list<Vertex> &list, const int dir)<br />
{<br />
	switch(dir)<br />
	{<br />
	case -1:<br />
		itr++;<br />
		if (itr == list.end())<br />
			itr = list.begin();<br />
  		break;<br />
	case 1:<br />
		if (itr == list.begin())<br />
			itr = list.end();<br />
   		itr--;<br />
		break;<br />
  	default: break;<br />
	}<br />
}<br />
<br />
void inline RightEdge(list<Vertex>::const_iterator &itr, const list<Vertex> &list, const int dir)<br />
{<br />
	if (dir == 1)<br />
		LeftEdge(itr, list, -1);<br />
  	else LeftEdge(itr, list, 1);<br />
}


And this doesn't work either.
list<Vertex>::iterator erase[vertexList2D.size()];

Any help or insight would be greatly appreciated, thanks! Wink | ;)
GeneralRe: STL list use of own class Pin
Paul M Watt20-Feb-03 16:44
mentorPaul M Watt20-Feb-03 16:44 
GeneralRe: STL list use of own class Pin
kiken20-Feb-03 17:11
kiken20-Feb-03 17:11 
GeneralThread Control and WaitCommEvent() Pin
lead2gold20-Feb-03 16:31
lead2gold20-Feb-03 16:31 
GeneralRe: Thread Control and WaitCommEvent() Pin
Roger Allen21-Feb-03 1:58
Roger Allen21-Feb-03 1:58 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold21-Feb-03 16:26
lead2gold21-Feb-03 16:26 
GeneralRe: Thread Control and WaitCommEvent() Pin
Daniel Lohmann22-Feb-03 0:22
Daniel Lohmann22-Feb-03 0:22 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold23-Feb-03 6:07
lead2gold23-Feb-03 6:07 
GeneralRe: Thread Control and WaitCommEvent() Pin
Daniel Lohmann23-Feb-03 7:46
Daniel Lohmann23-Feb-03 7:46 
GeneralRe: Thread Control and WaitCommEvent() Pin
lead2gold24-Feb-03 18:28
lead2gold24-Feb-03 18:28 
Generalgraphics.h Pin
InternetMill20-Feb-03 16:25
InternetMill20-Feb-03 16:25 
GeneralRe: graphics.h Pin
Paul M Watt20-Feb-03 16:46
mentorPaul M Watt20-Feb-03 16:46 
GeneralRe: graphics.h Pin
InternetMill21-Feb-03 10:08
InternetMill21-Feb-03 10:08 
GeneralGDI Pin
jeva20-Feb-03 16:01
jeva20-Feb-03 16:01 
GeneralRe: GDI Pin
Christian Graus20-Feb-03 16:07
protectorChristian Graus20-Feb-03 16:07 
QuestionChange the background colour of CCombobox? Pin
Zenith7420-Feb-03 14:23
Zenith7420-Feb-03 14:23 
AnswerRe: Change the background colour of CCombobox? Pin
vikramlinux20-Feb-03 23:18
vikramlinux20-Feb-03 23:18 
GeneralInterfaces to other applications Pin
User 988520-Feb-03 12:57
User 988520-Feb-03 12:57 

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.