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 - glombool

Pages: [1]
1
General / Buffer overflow with basic Window tutorial
« on: November 04, 2010, 06:09:48 am »
Quote from: "inlinevoid"
(actually, I'm not sure about this one.  I don't think you even need sfml-main.lib)


Actually, yes, I do.  I don't want to mess with WinMain.  Keep things portable  :D

2
General / Buffer overflow with basic Window tutorial
« on: November 04, 2010, 04:04:59 am »
Alright, so perhaps the forum does have that a lot 0.o

Not sure why I didn't see all those posts before.

I compiled SFML from source in VC 2010 and it is working just fine now.

3
General / Buffer overflow with basic Window tutorial
« on: November 04, 2010, 03:00:05 am »
Quote from: "Laurent"
I'm so tired of answering this question everyday. Why don't people just read the tutorial? :cry:


Laurent... I did read the tutorial.  I had  no problem with that.  It isn't a console app I had trouble with.

But when I moved on to http://www.sfml-dev.org/tutorials/1.6/window-window.php (Opening a Window), that is where the problems began.

I'm not a complete noob.  I RTM.  I at least tried searching the forum and didn't see anything which helped.

So... if someone can lead me in the right direction, I would appreciate it.

Debug mode wasn't the issue.  I tried both debug and release.

4
General / Buffer overflow with basic Window tutorial
« on: November 03, 2010, 06:36:04 am »
I'm using Visual Studio 2010 in Windows XP.  Using the dynamically linked lib files, I get a "buffer overrun" error when I run the program.

It happens here: sf::Window App(sf::VideoMode(800,600,32), "Sfml Window");

I did include sfml-main.lib.  Dependencies are listed in this order:
sfml-system.lib
sfml-window.lib
sfml-main.lib

The dll files are in the correct directory as well.

Any help would be appreciated.

Full source:
Code: [Select]

#include <SFML/Window.hpp>
using namespace sf;

int main()
{
Window App(VideoMode(800,600,32), "Sfml Window");

while(App.IsOpened())
{
Event Event;
while(App.GetEvent(Event))
{
if(Event.Type == Event::Closed)
App.Close();

if(Event.Type = Event::KeyPressed)
{
switch (Event.Key.Code)
{
case Key::Escape:
App.Close();
break;
}
}
}

App.Display();
}

return EXIT_SUCCESS;
}

Pages: [1]
anything