Results 1 to 5 of 5

Thread: [RESOLVED] [2.0] or in vb.net

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    Resolved [RESOLVED] [2.0] or in vb.net

    VB Code:
    1. capCreateCaptureWindowA(iDevice, WS_VISIBLE Or WS_CHILD, 0, 0, OutputWidth, CShort(OutputHeight), parentH, 0)

    i need to translete this into c#..
    but i got difficulty since inside the parameters, there exist "Or".
    What is it ? how can i use "Or" in c# ??

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] or in vb.net

    The bitwise Or operator in C-based langauges is a single vertical bar, like the logical Or operator is two vertical bars.
    Code:
    capCreateCaptureWindowA(iDevice, WS_VISIBLE | WS_CHILD, 0, 0, OutputWidth, (short)OutputHeight, parentH, 0);
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [2.0] or in vb.net

    A tutorial, or MSDN, could have told you that.

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2.0] or in vb.net

    Quote Originally Posted by penagate
    A tutorial, or MSDN, could have told you that.
    A book or a teach would have told you that too
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2006
    Location
    Taiwan
    Posts
    37

    Re: [RESOLVED] [2.0] or in vb.net

    ok2..
    i got it ..
    thx for the replies..^^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width