What 's the problem?
//C# code:
public static System.UInt16 MAKEWORD(byte a, byte b)
{
return (ushort)a | ((ushort)b << 8);
}
when compiling,the error "can not implicitly convert type 'int' to 'ushot'" occur.
what's the problem?
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

bilnaadRank #2,169 · 655 reputationPosted Oct 31, 2004, 8:26 AM EST
bilnaadRank #2,169 · 655 reputationPosted Oct 31, 2004, 2:10 PM EST
gongdehui62 reputationPosted Oct 31, 2004, 5:26 PM EST
bilnaadRank #2,169 · 655 reputationPosted Oct 31, 2004, 11:57 PM EST
gongdehui62 reputationPosted Nov 1, 2004, 5:44 AM EST