End Google Ads 201810 - BS.net 01 --> Hi,

I am wondering if anyone can help me out, i have created the following class and when i include it in another class it compiles fine, but when i try to create an object of it i get the following error:
1>Stocks.obj : error LNK2019: unresolved external symbol "public: __thiscall CStringParser::CStringParser(void)" (??0CStringParser@@QAE@XZ) referenced in function "public: __thiscall Stocks::Stocks(void)" (??0Stocks@@QAE@XZ)
1>Stocks.obj : error LNK2019: unresolved external symbol "public: __thiscall CStringParser::~CStringParser(void)" (??1CStringParser@@QAE@XZ) referenced in function "public: __thiscall Stocks::~Stocks(void)" (??1Stocks@@QAE@XZ)

In the file im calling this from i include the StringParser.h but still get this unresolved external symbol. Previously i have been including the .cpp files and it worked, but I want to learn how to do it properly using only header files. I am using Visual Studio 2008

Thanks in advance

//StringParser.h
#pragma once

/////////////////////////////////////////////////////////////////////////////////////////
//Name: CStringParser
//Author: Michal Ciechan
//Date: 2009-06-30
//Features: A CString parser to parse a string seperated by a
// character(c) into a vector
//Usage: call ParseString method with 2 parameters, first being the string
// etc("Ping&TestPing&value 3") and the second being the seperator
// etc("&")
/////////////////////////////////////////////////////////////////////////////////////////

#include
#include
class CStringParser
{
public:
// Constructor
CStringParser::CStringParser();
// Destructor
CStringParser::~CStringParser();
// Functions
std::vector CStringParser::ParseString(CString s, CString c);
};
//StringParser.cpp
#pragma once
#include "StringParser.h"
#include
#include


// Constructor
CStringParser::CStringParser()
{
}
// Destructor
CStringParser::~CStringParser()
{
}
//Functions
std::vector CStringParser::ParseString(CString s, CString c /*Seperator*/)
{
............
}

// Test.h
#pragma once
#include "StringParser.h"

class Test
{
public:
Test(void);
~Test(void);
private:
CStringParser sp;
};