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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
gongdehuiPosted Nov 1, 2004, 10:44 AM
bilnaadPosted Nov 1, 2004, 4:57 AM
gongdehuiPosted Oct 31, 2004, 10:26 PM
bilnaadPosted Oct 31, 2004, 7:10 PM
bilnaadPosted Oct 31, 2004, 1:26 PM