G
Guest
My collection need to upgrade to dotnet. It is right in vc6, but is error in
vc7.net
following is code:
template <class ContainerType, class InterfaceType>
class InterfaceCopy
{
public :
typedef ContainerType::value_type SourceType;
static void init(InterfaceType** p)
{
_CopyInterface<InterfaceType>::init(p);
}
static void destroy(InterfaceType** p)
{
_CopyInterface<InterfaceType>::destroy(p);
}
static HRESULT copy(InterfaceType** pTo, SourceType* pFrom)
{
return _CopyInterface<InterfaceType>::copy(pTo, (&(pFrom->second)));
}
}; // class Interface Copy Policy
Change
typedef ContainerType::value_type SourceType;
to
typename ContainerType::value_type SourceType;
f:\VideoMonitor.ZHP\VideoSampleDevice\VideoSampleDevices.h(28) : error
C2061: syntax error: identifier ¡°SourceType¡±
.....................
Thanks.
zhp80.Townee
vc7.net
following is code:
template <class ContainerType, class InterfaceType>
class InterfaceCopy
{
public :
typedef ContainerType::value_type SourceType;
static void init(InterfaceType** p)
{
_CopyInterface<InterfaceType>::init(p);
}
static void destroy(InterfaceType** p)
{
_CopyInterface<InterfaceType>::destroy(p);
}
static HRESULT copy(InterfaceType** pTo, SourceType* pFrom)
{
return _CopyInterface<InterfaceType>::copy(pTo, (&(pFrom->second)));
}
}; // class Interface Copy Policy
Change
typedef ContainerType::value_type SourceType;
to
typename ContainerType::value_type SourceType;
f:\VideoMonitor.ZHP\VideoSampleDevice\VideoSampleDevices.h(28) : error
C2061: syntax error: identifier ¡°SourceType¡±
.....................
Thanks.
zhp80.Townee