apstring.h

Discussion in 'Web Design & Coding' started by Luna64, Feb 10, 2003.

  1. Luna64

    Luna64 Guest

    Ok, little history before I start.

    Last year at school we used Visual Studio 6 to program in C++.

    We were using apstring, and a few others that can be found here .

    It worked fine in VS6, but now I am using Visual Studio .Net and I can't get apstring to work.


    I have put it in the include folder along with the .cpp file, but I cant get it to compile with a string in it.

    This would compile ok
    Code:
    #include <iostream.h>
    #include "apstring.h"
    
    int main()
    {
    
    }
    

    but this gives me three errors that are just way beyond my level of understanding.
    Code:
    #include <iostream.h>
    #include "apstring.h"
    
    int main()
    {
    apstring hello;
    }
    


    I can always go back to VS 6 if needed, but I am going to start a VB. Net class soon so I would need VS .Net also.
     
  2. Luna64

    Luna64 Guest

    Never mind, I figured it out.


    instead of using apstring.h, I just included apstring.cpp instead.


    everything seems to be working fine now :)