Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: n00b question

  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    n00b question

    I know this is a total n00b question, and I thought I knew what it meant, but apparently I don't. I was wondering if someone could tell me what it means when there is a ^ after something in C++. Here's an example:

    Ticket^ Sensor::SetProperties(QVISensorParameters* sensorProps,
    Ticket::TicketCallback^ callback)

    Thanks for any help!

  • #2
    Super Moderator sage45's Avatar
    Join Date
    May 2002
    Posts
    1,064
    Thanks
    0
    Thanked 15 Times in 15 Posts
    HTML & CSS Forum Moderator

    "If you don't know what you think you know, then what do you know."
    R.I.P. Derrick Thomas #58
    1/1/1967 - 2/8/2000

  • #3
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    Those aren't bitwise operators in this context, they're indicators that the variables in question are "handles," which are, to oversimplify a bit, garbage collected quasi-pointers. They work a lot like pointers in practice, ie. you dereference them with ->, but you create objects with 'gcnew' for 'new' and you don't delete them. They're not standard C++, but a Microsoft extension (see: CLI.) See this MSDN blog post for a primer.
    Last edited by ralph l mayo; 06-13-2007 at 09:26 AM.

  • #4
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    Yea this is only in microsoft's managed c++

  • #5
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    its a xor bit operator that is going to mess around with the bits of the binary system 1 and o


    like if there is a 1 and a 0 aligned the one will be place out and there will be put a zero

    if it is a or statement than the 0 will be placed out and teh 1 will become the bit that is operated

    and
    or
    xor


    just different operarors

  • #6
    Regular Coder ralph l mayo's Avatar
    Join Date
    Nov 2005
    Posts
    951
    Thanks
    1
    Thanked 31 Times in 29 Posts
    Quote Originally Posted by blueterry View Post
    its a xor bit operator that is going to mess around with the bits of the binary system 1 and o


    like if there is a 1 and a 0 aligned the one will be place out and there will be put a zero

    if it is a or statement than the 0 will be placed out and teh 1 will become the bit that is operated

    and
    or
    xor


    just different operarors
    No, as ghell and I maintain they are not bitwise operators. What are bitwise ops supposed to do on a type name anyway?


  •  

    Posting Permissions

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