NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2674

'operator' : no acceptable conversions from 'type1' to 'type2'

No conversion is defined from type1 to type2. If you encounter this error while porting code from Visual C++ 2.0 or earlier, see Technote: Improved Conformance to ANSI C++.

Possible solutions

Example

class C
{
   public:
   C();       // no constructor with an int argument
} c;
class D
{
   public:
   D( int );
   D();
} d;
void main()
{
   c = 10;    // error
   d = 10;    // OK
}