CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: foamy

Search: Search took 0.03 seconds.

  1. Replies
    20
    Views
    17,689

    Re: Why does not 'int' work? (Type casting)

    Since you're new to C# I'll explain once more. TinyInt is a byte in C#. A byte is not the same as an int. Therefore this will not compile:



    namespace intbyte
    {
    public partial class Form1...
  2. Replies
    20
    Views
    17,689

    Re: Why does not 'int' work? (Type casting)

    TBH, I didn't look at those images. AFAIK tinyint should be used as a byte in C#.
  3. Replies
    20
    Views
    17,689

    Re: Why does not 'int' work? (Type casting)

    That's probably because SplashDisabled is a byte, not an int.
  4. Replies
    20
    Views
    17,689

    Re: Why does not 'int' work? (Type casting)

    Yep, without more of the code it's impossible to tell.
  5. Replies
    20
    Views
    17,689

    Re: Why does not 'int' work? (Type casting)

    Uhm, yeah ... And that's why the compiler comes up with an error if it's used somewhere that expects a byte ;)
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured