I'm new to both Code::Blocks and C++, so bear with me if this is pretty basic...
I have the source code for some DLL's (written in C++) that I need to modify. These DLL's are used by another application. The way I've been doing this, using Code::Blocks, is as follows:
1. Select "Create new project" in the Start Window.
2. Select "Dynamic Link Library". That starts a wizard, where I enter a project name and select the compiler (the default one, usually).
3. With the project now created, I then right-click on the project in the Projects window and select "remove files...". There I remove main.cpp and main.h.
4. I right click on the project again and select "add files...", where I browse to the DLL source code file I want to modifiy. After selecting this file, I'm asked to "select the targets this file should belong to: _ Debug, _ Release". I've been checking both (not sure if that's right or not).
5. I then modifing the souce code and build it.
6. Lastly, I copy the compiled dll file (located in Project/Bin/Debug directory) to another directory where it can be accessed by the application that uses it.
So my questions are:
1. Is this the best way to do this (i.e. is there a more direct way to create a project from an existing source file)?
2. With regard to "select the targets this file should belong to...", I assume these (Debug and Release) represent directories where the compiled code goes, depending on what stage of completion it's in. Is that right? How should these directories be used?
3. Is there a way to have the compiled (or "built" - I assume this means the same thing) file automatically saved in the final directory (where the application looks for it) to avoid having to copy it there?
Those are the main questions I have for now. Thanks for any help with these.
I have several good C++ books I've been studying, but none of them talk much about IDEs or the actual mechanics of software development.
Pat