   Where do I place my apstring.h and apstring.cpp?
  So I am new to this whole programming experience and have been teaching myself while I am on my winter break. I must say I feel impressed with myself as I am plugging right along and am understanding everything I have read so far. Albeit I only happen to be 4 chapters into my 18 chapter book on C++. :) But now I have a problem. I am trying to include a library called apstring (for my string data type?) and am just having a little trouble on deciding where to put the file. The files I have to place in folders that my compiler is in are:apstring.cppapstring.hole32.libI think I have an idea of where to put the files, but want to double check before I screw something up really bad. I am using Bloodshed-DevC++ and in its parent directory there is a folder called include. This folder has a ton of .h filetypes (I guess libraries? Correct me if I am wrong please) and would put apstring.h there. Within the include folder there is another one called c++. I am guessing I would put apstring.cpp there as well.The last one I am not so sure about and don't really know what it does. The ole32.lib folder. If you could direct me to where that belongs as well as what it does, it would be greatly appreciated. Also let me know if I am putting the .cpp and .h files in the right places. Thanks again.   
  Only 4 chapters and you're already creating a string class? Have you learned how to use std::string, and the standard containers yet?   ;  No, apstring.h/apstring.cpp are part of the library used by the AP program for the computer science A/AB examination.  At least it was, before the official language was changed to Java.DawnToDusk:  For now you can put apstring.h inside the include folder, it won't hurt anything.  The apstring.cpp file should be included as part of your project, in addition to your main.cpp file.  In addition to an "include" folder there should be a "libs" folder, and you can place ole32.lib there.  I'm not familiar with how DevC++ works, but you'll need to edit your project settings so that ole32.lib is one of the libraries linked with your program.  If you can't find where to do that then don't worry too much about it, I don't believe that library is required for the string code.   ;Quote:Original post by ZipsterNo, apstring.h/apstring.cpp are part of the library used by the AP program for the computer science A/AB examination.  At least it was, before the official language was changed to Java.DawnToDusk:  For now you can put apstring.h inside the include folder, it won't hurt anything.  The apstring.cpp file should be included as part of your project, in addition to your main.cpp file.  In addition to an "include" folder there should be a "libs" folder, and you can place ole32.lib there.  I'm not familiar with how DevC++ works, but you'll need to edit your project settings so that ole32.lib is one of the libraries linked with your program.  If you can't find where to do that then don't worry too much about it, I don't believe that library is required for the string code.Thanks. Here is what my passage from my book says:"The apstring data type is defined in the C++ apstring library. apstring is a nonstandard library, the code for which is on the disk that comes with this book. This data type can be used to declare string variables. Before declaring a string variable, you must include the library header file, apstring.h, athe beginning of the program."So if I am understanding this right, standard C++ libraries don't have a string variable defined in them. For me to use a string variable I must put the apstring.h into my include folder. On top of that I must make apstring.cpp part of my project everytime I wish to use string variables. And then I must make ole32.lib linked to my programs?   ;  The C++ library contains a very good string class (std::string, #include <string> to use it). apstring is nonstandard and the class is far inferior to most implementations of std::string; in general I'd suggest learning std::string as soon as possible and not relying on apstring more than you absolutely have to.   ;  Where can I find info on std::string. My book is teaching my about the apstring stuff, and if inferior, I would like to read up on std:string. Can someone point me to a good source?   ;MSDN has some good resources, and this page has a decent (if slightly abstract) overview of the std::string class. For specific questions, these forums should be a good place to get answers.   ;Quote:Original post by DawnToDuskWhere can I find info on std::string. My book is teaching my about the apstring stuff, and if inferior, I would like to read up on std:string. Can someone point me to a good source?Are you using an AP review book or something? From my experience, I remember the apstring class being a horrendous monstrosity. And the implementation was terribly inefficient.   