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.

Topics - cowchin12

Pages: [1]
General / Stack around the variable was corrupted
« on: February 17, 2013, 03:40:53 pm »
I can't get rid of this error I'm having so I was hoping someone could help. The error is "Stack around the variable 'player' is corrupted". This is the player variable that I created in Movement's constructor:

    sf::RectangleShape player(sf::Vector2f(40.f, 40.f));
    player.setOrigin(20.f, 20.f);
    player.setPosition(400.f, 40.f);
    player.setFillColor(sf::Color(10, 30, 180));

That does not cause the error, the error comes up when I make the movement object in main, like this:

Movement MovementObj1;

So can anyone help?

So I have been trying to get this to work for ages. I have Windows 8 and Visual Studio 2012 Ultimate. I get this error: 

The program can't start because msvcp100d.dll is missing from your computer

This error occurs whenever I run a program with SFML code inside of it. If I have a program setup to link to SFML, but I don't use SFML code in the program, it runs fine. If I used ANY code related to SFML (like #include <SFML/Graphics.hpp>), I get the error. I have a laptop with windows 7 and Visual Studio 2012 Ultimate , and with the same project properties it runs fine with SFML.

I really am stumped on this :(

Window / Help with mouse clicks?
« on: January 12, 2013, 11:52:33 pm »
So I want to have a window that has three buttons that can be pressed, using the mouse, and depending on which button is pressed, the window changes. I have no idea how to do this,  could someone please help? Here is an example:

#include "stdafx.h"
#include <SFML/Graphics.hpp>
#include <iostream>
#include <SFML/Audio.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>

sf::Texture mainMenu;
sf::Sprite menu1(mainMenu);                 //This loads an image with three buttons to be pressed
sf::RenderWindow window(sf::VideoMode(800,600,64),"Help me D:");
sf::Event event1;

int _tmain(int argc, _TCHAR* argv[])
         if (event1.type == sf::Event::Closed)
                        if(//mouse is pressed at a certain spot) //THIS IS WHERE IM CONFUSED
                                  // Do some stuff................

Thanks for any help

Pages: [1]