#include "apstring.h"

This is a discussion on #include "apstring.h" within the C++ Programming forums, part of the General Programming Boards category; i was wondering if there was anyway that i could make it so i dont have to use quotations around ...

  1. #1
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160

    Question #include "apstring.h"

    i was wondering if there was anyway that i could make it so i dont have to use quotations around apstring.h and instead use <apstring.h>....

    the reason is that you have to go to directories and include it and open the cpp file and include that JUST so you can use apstring... why didnt microsoft include it in MSVS
    Paro

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    apstring is not a standard header, that's why its not included. You can still put it in the compiler include directory and use the <> rather than "".
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    >why didnt microsoft include it in MSVS

    Because it's not part of the standard. People like me have never heard from apstring. Neither have I missed it.

    If you need your code to be portable, or have other people sharing your code, please leave it as it is. If you change the way the standard works, others who only know the standard, but not your interpretation of it, will be quite confused.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160
    so, according to the first reply... if i throw apstring.h and apstring.cpp in the include directory it will become standard? that would be really helpful and save me time

    and to the moderator, there is only one C++ class and we use the same computers everyday, and i think if i told everyone how to shove apstring into the standard directory they would bow down and call me C++ god im dreamin
    Paro

  5. #5
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Putting it in the include directory doesn't make it standard by any means.

    If a header's in the include directory, you can include it with <>
    If it's in the same directory as the souce code, then you use ""

    How would this save you any time?

  6. #6
    Registered User Paro's Avatar
    Join Date
    Feb 2002
    Posts
    160
    maybe it wont, but right now at the present moment...

    i have to open the cpp file and comile it within my program... its annoying
    Paro

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to use this part of dirent.h
    By kermit in forum Linux Programming
    Replies: 2
    Last Post: 01-31-2009, 08:51 AM
  2. Weird, cards not outputting correctly
    By Shamino in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2007, 03:26 PM
  3. dont konw what to do next.
    By negevy in forum C Programming
    Replies: 29
    Last Post: 09-09-2005, 04:06 PM
  4. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM
  5. #includes don't seem to be working
    By Inquirer in forum C++ Programming
    Replies: 12
    Last Post: 08-05-2002, 06:38 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21