Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bluesroo

Pages: [1]
1
The error I can see is that a sf::Text need to keep a pointer on a attributes of sf::Font, try using reference on sf::Font rather than using copy constructor.

I mean, use a reference for your TextWrap constructor.
 TextWrap(sf::Font& font);

Also, be sure to check if your font is correctly loaded, sometimes it can solve problems. :D

You're awesome! Thank you!

2
I'm using Visual C++ 2010 as my IDE. I'm sorry in advance for the wall of code you're about to see, I just figured I would be as detailed as possible. I'll just cut to the chase with the code, and explain at the bottom.

Game function, which loads the font, declares playText and quitText, and then sets their position and string before going onto the rest of the function.
int mainMenu(sf::RenderWindow *window, CircleWrap mouseCircle)
{
        int choice = 0;
        sf::Font font;
        font.loadFromFile("arial.ttf");
        TextWrap playText(font), quitText(font);
        playText.play();
        quitText.quit();
...

This is the TextWrap class, which inherits sf::Text:
class TextWrap : public sf::Text
{
public:
        TextWrap(sf::Font font);
        void play(void);
        void quit(void);
};

This is where the functions of TextWrap are defined:
TextWrap::TextWrap(sf::Font font)
{
        setFont(font);
        setCharacterSize(30);
        setStyle(sf::Text::Bold);
        setColor(sf::Color::White);
}

void TextWrap::play(void)
{
        setString("Play!");
        setPosition(300, 400);
        return;
}

void TextWrap::quit(void)
{
        setString("Quit");
        setPosition(300, 200);
        return;
}

This is the error that I get:
First-chance exception at 0x0120afe3 in mouseAvoider.exe: 0xC0000005: Access violation reading location 0xccccccd0.
Unhandled exception at 0x0120afe3 in mouseAvoider.exe: 0xC0000005: Access violation reading location 0xccccccd0.

The actual error is thrown at the setString line. It doesn't matter whether I do the quit or the play functions first, they both throw the exception. As far as I can tell, I cannot tell why I would get an access violation. When I open the callstack, this is the last call that was made:
>       mouseAvoider.exe!std::_Iterator_base12::_Adopt(const std::_Container_base12 * _Parent)  Line 146 + 0x6 bytes

3
Graphics / Re: Problems inheriting RectangleShape (new to C++ as well)
« on: February 07, 2014, 04:12:45 am »
I included it in stdafx.h so I figured it would carry over... I feel like and idiot. Oh well, it worked when I put it there! Thank you.

4
Graphics / Problems inheriting RectangleShape (new to C++ as well)
« on: February 07, 2014, 04:03:34 am »
I want to preface this by saying that I am making the transition from C to C++, and from vim to Visual C++ 2010, so if this could be better answered by me learning a concept that I'm missing feel free to just say "go learn ___ and come back." I hope I'm not too verbose with this post... With that said, onto the issue:

#pragma once
#include "stdafx.h"

class ShapeWrapper: public sf::RectangleShape
{
        public:
                //Checks that the click was inside of the shape
                bool checkShape(sf::RenderWindow *window)
                {
                        if (sf::Mouse::getPosition(*window).x >= getPosition().x && sf::Mouse::getPosition(*window).x <= (getPosition().x + 100))
                                if (sf::Mouse::getPosition(*window).y >= getPosition().y && sf::Mouse::getPosition(*window).y <= (getPosition().y + 100))
                                        return true;

                        return false;
                }
};

This is a new class that I am trying to make. This member function that I've written is supposed to check that the mouse position is within the bounds of the box drawn on the screen. It worked in an earlier version of the code where it was a regular function, not inside of a class. I would pass in the RenderWindow and the RectangleShape that I was checking instead of doing it from inside of a member function.

Since I've put it into the class I've lost access to all of the other member functions. For example, "getPosition" is underlined in red saying that "identifier 'getPosition' is undefined". But by my novice C++ understanding, it shouldn't be because ShapeWrapper should have inherited it from RectangleShape, correct?

This is the Output when I try to build it in debugging mode (this is the only file in my 6-file project that gives me any errors):
1>------ Build started: Project: circleClicker, Configuration: Debug Win32 ------
1>  smallFunctions.cpp
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(4): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(5): error C2504: 'RectangleShape' : base class undefined
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2061: syntax error : identifier 'RenderWindow'
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>  game.cpp
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(4): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(5): error C2504: 'RectangleShape' : base class undefined
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2061: syntax error : identifier 'RenderWindow'
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(11): error C2065: 'RectangleShapeWrapper' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(11): error C2146: syntax error : missing ';' before identifier 'circle'
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(11): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(12): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(12): error C2228: left of '.setSize' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(13): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(13): error C2228: left of '.setOrigin' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(14): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(14): error C2228: left of '.setPosition' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(34): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(34): error C3861: 'checkShape': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(36): error C2065: 'circle' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(36): error C2228: left of '.setPosition' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\game.cpp(65): error C2065: 'circle' : undeclared identifier
1>  endOfGame.cpp
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(4): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(5): error C2504: 'RectangleShape' : base class undefined
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2061: syntax error : identifier 'RenderWindow'
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>  circleClicker.cpp
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(4): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(5): error C2504: 'RectangleShape' : base class undefined
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(8): error C2061: syntax error : identifier 'RenderWindow'
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C2228: left of '.x' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(10): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2653: 'sf' : is not a class or namespace name
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2065: 'window' : undeclared identifier
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C2228: left of '.y' must have class/struct/union
1>          type is ''unknown-type''
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\wrappers.h(11): error C3861: 'getPosition': identifier not found
1>c:\users\joe\documents\visual studio 2010\projects\circleclicker\circleclicker\circleclicker.cpp(9): warning C4244: 'argument' : conversion from 'time_t' to 'unsigned int', possible loss of data
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I've tried using
this->getPosition()
as well, but I'm getting the same issue. I have a feeling it is an issue with how I've included my headers, because it doesn't even recognize
sf
as a namespace. Can someone point me in the right direction here? It would be greatly appreciated.

Pages: [1]
anything