problem with using functions

This is a discussion on problem with using functions within the C++ Programming forums, part of the General Programming Boards category; First, I'll post all the relevant code..
--------------------------------------------------------------------------
#include "classes.h"
vector<BluePrint> bprint;
vector<Object> object;
//================================================== =================================================
void CreateObject(int onum)
{
...

using PutObjectInObject gives me this error:
c:\vc++ projects\objhandler\objects.h(133) : error C2106: '=' : left operand must be l-value
on the line that has GetObject(100, 1).Container = 5; .
Anyone know whats wrong? Also, substituting GetObject(100, 1) for object[any number] will fix it. However, I can't do that for other reasons.