DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Ossu Chang Guest

    pointer references


    I have read several books on C,C++. And have done some dev work with C for
    Novell NLMs (long ago). The biggest question I have is why are there so many
    ways to reference objects in C++. You have the . the -> the *, etc. etc.
    Which do I use, when do I use it?


    The second question/comment has to do with MFC. I find MFC very hard to learn.
    So much so that I have taken to using Borland C++ Builder. At least this
    way I am getting my apps started a lot faster.

    And finally, What do you think about C#? Other than being another MS standard.
    I looks like they made C into an interpretted language. Are they trying to
    compete with Java?

    Thanks,

    Ossu

  2. #2
    Jonathan Morrison Guest

    Re: pointer references


    Ossu,
    Good questions! I'll do my best to answer them.

    1.) Here's the scoop on the . and -> operators:
    The . operator references a local or "by value" copy of an object while the
    -> operator references a pointer to an object. That's the only difference!
    The * operator denotes that a variable is a pointer to as type when used
    in a declaration, and it gets the value from a pointer variable when used
    in a statement.

    2.) I hate MFC! There I said it. It's too complicated. Use VB for your GUIs
    and C++ DLLs for your speed critical stuff.

    3.) I think C# is Java++. It looks to be a great language. I think the success
    or failure comes down to the implementation of the .NET runtime.

    Thanks,
    Jonathan
    "Ossu Chang" <ossu@netzero.net> wrote:
    >
    >I have read several books on C,C++. And have done some dev work with C for
    >Novell NLMs (long ago). The biggest question I have is why are there so

    many
    >ways to reference objects in C++. You have the . the -> the *, etc. etc.
    >Which do I use, when do I use it?
    >
    >
    >The second question/comment has to do with MFC. I find MFC very hard to

    learn.
    >So much so that I have taken to using Borland C++ Builder. At least this
    >way I am getting my apps started a lot faster.
    >
    >And finally, What do you think about C#? Other than being another MS standard.
    >I looks like they made C into an interpretted language. Are they trying

    to
    >compete with Java?
    >
    >Thanks,
    >
    >Ossu



Similar Threads

  1. cast pointer to member to pointer
    By drkybelk in forum C++
    Replies: 3
    Last Post: 05-19-2005, 05:19 AM
  2. Help with a Declare (pointer to a pointer)
    By Sean Woods in forum VB Classic
    Replies: 4
    Last Post: 12-06-2001, 04:48 PM
  3. Help with a Declare (pointer to a pointer)
    By Sean Woods in forum VB Classic
    Replies: 0
    Last Post: 12-06-2001, 03:22 PM
  4. Replies: 1
    Last Post: 09-18-2001, 10:58 AM
  5. Replies: 0
    Last Post: 05-09-2001, 06:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links