Thread: why should i use pointers and making dlls tutorials in borland c++ builder

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    10

    why should i use pointers and making dlls tutorials in borland c++ builder

    hello
    i know what is pointers and how can i use them but i still don't know why should i use them and why should i make this effort in using them in my programmso,please tell me the answer.
    also
    i want tutorials for making dlls in pure c++ or borland c++ builder (no mfc)
    thanks

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Pointers as you probably know are handles to memory in data.....without them your code will never get far as your compiler will spend all its time copying memory from here to there, and you will miss out on the neat stuff C allows you to do......just keep working and working at them if you are not sure...dont listen to people who tell you you can get by without them!

    As for Dlls.....have a look at the windows board......members (incluing myself) have posted examples there

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    10

    thanks

    thanks for reply

  4. #4
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    dont listen to people who tell you you can get by without them!
    Well, you can get by without them, up to a point... just use lots and lots and lots of global variables. But as Fordy said, don't listen to me

    Oh yeah, actually you can scratch off most of (if not all of) the global variables. Just use references instead of pointers That should simplify things. But that's not saying that pointers aren't useful! "char*" is your bestest bestest friend.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  5. #5
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Originally posted by Hunter2
    Well, you can get by without them, up to a point... just use lots and lots and lots of global variables.
    ...which is against the principal of least privalage....will make your exe bigger than needed...and the one time you need more memory than you have provided for, your smoked!!!!!!!

    Best bet....learn to live with pointers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 03-12-2008, 12:10 AM
  2. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  4. Making a map containing function pointers
    By Nippashish in forum C++ Programming
    Replies: 5
    Last Post: 12-22-2002, 01:06 PM
  5. Making a Stack using Pointers
    By Unregistered in forum C Programming
    Replies: 9
    Last Post: 07-27-2002, 11:51 AM