Click here to Skip to main content
15,921,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActiveX Pin
vijisu24-Nov-03 16:26
vijisu24-Nov-03 16:26 
GeneralRe: ActiveX Pin
John R. Shaw24-Nov-03 18:36
John R. Shaw24-Nov-03 18:36 
GeneralHelp getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:14
Anonymous24-Nov-03 15:14 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:26
protectorChristian Graus24-Nov-03 15:26 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 15:31
Anonymous24-Nov-03 15:31 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 15:33
protectorChristian Graus24-Nov-03 15:33 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:17
Anonymous24-Nov-03 16:17 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 16:21
Anonymous24-Nov-03 16:21 
Here's an example:
Here's an example:

template <class T> class VertexLock<br />
{<br />
public:<br />
	/** Locks object vertex data with specified lock mode. */<br />
	VertexLock( T* obj, T::LockType lock ) :<br />
		m_obj(obj)<br />
	{<br />
		obj->lockVertices( lock );<br />
	}<br />
<br />
	/** Unlocks object vertex data. */<br />
	~VertexLock()<br />
	{<br />
		m_obj->unlockVertices();<br />
	}<br />
<br />
private:<br />
	T* m_obj;	// note! this must be weak pointer because otherwise all models must be allocated to heap<br />
<br />
	VertexLock();<br />
	VertexLock( const VertexLock& );<br />
	VertexLock& operator=( const VertexLock& );<br />
};


warning C4346: 'T::LockType' : dependent name is not a type
prefix with 'typename' to indicate a type




GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:44
protectorChristian Graus24-Nov-03 16:44 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:11
Anonymous24-Nov-03 17:11 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Christian Graus24-Nov-03 16:42
protectorChristian Graus24-Nov-03 16:42 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
Anonymous24-Nov-03 17:13
Anonymous24-Nov-03 17:13 
GeneralRe: Help getting templates converted from a VC6 to VS.NET 2003 Pin
John M. Drescher24-Nov-03 17:40
John M. Drescher24-Nov-03 17:40 
QuestionCDC::GetCharWidth ? Pin
Abin24-Nov-03 14:53
Abin24-Nov-03 14:53 
AnswerRe: CDC::GetCharWidth ? Pin
Christian Graus24-Nov-03 15:34
protectorChristian Graus24-Nov-03 15:34 
AnswerRe: CDC::GetCharWidth ? Pin
John R. Shaw24-Nov-03 16:49
John R. Shaw24-Nov-03 16:49 
GeneralGreat Pin
Abin24-Nov-03 18:48
Abin24-Nov-03 18:48 
GeneralPrevent from closing Pin
Daniel132424-Nov-03 13:09
Daniel132424-Nov-03 13:09 
GeneralRe: Prevent from closing Pin
Christian Graus24-Nov-03 13:22
protectorChristian Graus24-Nov-03 13:22 
GeneralRe: Prevent from closing Pin
Daniel132424-Nov-03 13:24
Daniel132424-Nov-03 13:24 
GeneralRe: Prevent from closing Pin
Christian Graus24-Nov-03 13:27
protectorChristian Graus24-Nov-03 13:27 
GeneralEmbedded/C question Pin
Sirrius24-Nov-03 12:27
Sirrius24-Nov-03 12:27 
GeneralRe: Embedded/C question Pin
Christian Graus24-Nov-03 13:23
protectorChristian Graus24-Nov-03 13:23 
GeneralRe: Embedded/C question Pin
John R. Shaw24-Nov-03 17:01
John R. Shaw24-Nov-03 17:01 
GeneralRe: Embedded/C question Pin
l a u r e n24-Nov-03 13:42
l a u r e n24-Nov-03 13:42 

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.