Click here to Skip to main content
15,898,769 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use the windows API? Pin
Mikey_E20-Jun-04 13:44
professionalMikey_E20-Jun-04 13:44 
GeneralCustomCtrl and ToolTip - Redraw Problem Pin
AnTri6-May-04 4:40
AnTri6-May-04 4:40 
Generalchild windows inside child frame ( MDI ) Pin
amit_k_gupta6-May-04 3:52
amit_k_gupta6-May-04 3:52 
GeneralRe: child windows inside child frame ( MDI ) Pin
Iain Clarke, Warrior Programmer6-May-04 5:41
Iain Clarke, Warrior Programmer6-May-04 5:41 
GeneralPrinting in XP Pin
olsilverfox5-May-04 14:48
olsilverfox5-May-04 14:48 
GeneralRe: Printing in XP Pin
Iain Clarke, Warrior Programmer6-May-04 5:46
Iain Clarke, Warrior Programmer6-May-04 5:46 
GeneralRe: Printing in XP Pin
Chris Meech6-May-04 6:41
Chris Meech6-May-04 6:41 
GeneralCompiling C++ in .NET 2003 Pin
PaleyX5-May-04 13:52
PaleyX5-May-04 13:52 
I have just compiled an old VC6 project in VS.NET 2003 and I am getting some odd errors. It's been a while since I did any C++ and am a bit rusty so any help would be appreciated.

In the following code:

template<class T> class COpList <br />
{<br />
public:<br />
<br />
	COpList();  <br />
	~COpList();<br />
<br />
	bool ParseList(CTokenizer&);<br />
	void StartIterator(void) const;<br />
	const T* GetOp(void) const;<br />
<br />
	void Display(ostream&) const;<br />
	string GetAsText(void) const;<br />
<br />
private:<br />
<br />
	void AddOpListElement(const string&);<br />
<br />
	typedef vector<T*> OPVEC;<br />
	OPVEC m_vecOpList;<br />
	mutable vector<T*>::const_iterator m_it;<br />
};


The last line in the class (in bold) is giving the error:

error C2146: syntax error : missing ';' before identifier 'm_it'<br />


What is it telling me? I have looked it up in help and it seems to have something to do with specialisation but, as I say, I am kinda rusty on C++. Any help would be appreciated.

Thanks

Paley.



Rugby League: The Greatest Game Of All.
GeneralRe: Compiling C++ in .NET 2003 Pin
Antony M Kancidrowski6-May-04 4:55
Antony M Kancidrowski6-May-04 4:55 
GeneralRe: Compiling C++ in .NET 2003 Pin
PaleyX6-May-04 5:09
PaleyX6-May-04 5:09 
GeneralRe: Compiling C++ in .NET 2003 Pin
Navin6-May-04 6:19
Navin6-May-04 6:19 
GeneralRe: Compiling C++ in .NET 2003 Pin
PaleyX6-May-04 6:23
PaleyX6-May-04 6:23 
GeneralRe: Compiling C++ in .NET 2003 Pin
Phil J Pearson6-May-04 6:37
Phil J Pearson6-May-04 6:37 
GeneralRe: Compiling C++ in .NET 2003 Pin
PaleyX6-May-04 6:47
PaleyX6-May-04 6:47 
GeneralRe: Compiling C++ in .NET 2003 Pin
Phil J Pearson6-May-04 6:49
Phil J Pearson6-May-04 6:49 
GeneralRe: Compiling C++ in .NET 2003 Pin
PaleyX6-May-04 6:51
PaleyX6-May-04 6:51 
GeneralRe: Compiling C++ in .NET 2003 Pin
Steve S6-May-04 22:36
Steve S6-May-04 22:36 
GeneralSimple Input Box Pin
hypersphere5-May-04 12:36
hypersphere5-May-04 12:36 
GeneralRe: Simple Input Box Pin
Antony M Kancidrowski6-May-04 5:07
Antony M Kancidrowski6-May-04 5:07 
GeneralRe: Simple Input Box Pin
hypersphere6-May-04 5:13
hypersphere6-May-04 5:13 
GeneralWM_MENUDRAG Problem. Pin
Iain Clarke, Warrior Programmer5-May-04 12:16
Iain Clarke, Warrior Programmer5-May-04 12:16 
GeneralRe: WM_MENUDRAG Problem. Pin
Roger Allen6-May-04 4:12
Roger Allen6-May-04 4:12 
GeneralRe: WM_MENUDRAG Problem. Pin
Iain Clarke, Warrior Programmer6-May-04 5:13
Iain Clarke, Warrior Programmer6-May-04 5:13 
GeneralRe: WM_MENUDRAG Problem. Pin
Roger Allen6-May-04 5:37
Roger Allen6-May-04 5:37 
GeneralRe: WM_MENUDRAG Problem. Pin
Iain Clarke, Warrior Programmer6-May-04 5:25
Iain Clarke, Warrior Programmer6-May-04 5:25 

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.