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

Pages: [1]
System / [SOLVED] Error: Vector2 is not a template
« on: April 09, 2020, 05:07:52 pm »

Error(s) is from file located in:

I use:
Visual Studio Community 2017 15.9.21
SFML 2.5.1
ISO C++ 17 "Latest Draft Standard"
Release x64

static library project
precompiled headers: disabled

Additional Dependencies:
(click to show/hide)

I tried (still the same error):
ISO C++ 14
Visual Studio Community 2017 15.9.19

VS Output:
(click to show/hide)

General / _Pnode read access violation error in Text.setFont()
« on: August 15, 2018, 01:04:31 pm »
Hello! I've got every time error when I trying in my class  set font to Text.
Full error:" Exception thrown: read access violation.
**_Pnode** was 0xFFFFFFFFFFFFFFE6."
Full script with main()
#include "stdafx.h"
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
#include "JQEText.h"

using namespace sf;
using namespace std;

ContextSettings settings;

Font font;
Text test;
map<int,string> numbers;
//numbers["count"] = 6;
   int main()
#pragma region Start

      settings.antialiasingLevel = 8;
      RenderWindow engine{ VideoMode{ 1920,1000 }, "JQEngine",0,settings };
      Event event;
      JQEText text = JQEText(25, font, "test", Vector2f(0, 0), Color(255, 255, 255));

      //mousePosition.setColor(Color(0, 0, 0, 255));

#pragma endregion
      while (true)
         engine.clear(Color(255 * 0.4, 255 * 0.4, 255*0.4, 255));
         if (event.type == Event::Closed)
         else if (event.type == Event::MouseButtonPressed)

            //Mouse::getPosition(engine).x Mouse::getPosition(engine).y;
      return 0;
Full class.h
#pragma once
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <SFML\Graphics.hpp>
#include <SFML\Window.hpp>
#include <cstdlib>
#include <ctime>
#include <string>
#include <Windows.h>

using namespace sf;
using namespace std;

class JQEText : public Drawable
   JQEText(int size, Font font, string ttext, Vector2f position, Color color);
   Text text;

   void draw(RenderTarget& target, RenderStates state) const override;
Full class.cpp
#include "stdafx.h"
#include "JQText.h"

JQText::JQText(int size, Font font, string ttext, Vector2f position, Color color)
   text.setFont(font); // when I added "//" before that command I don't get this error

void JQText::draw(RenderTarget& target, RenderStates state) const
   target.draw(text, state);

SFML website / unresolved external symbol
« on: June 09, 2018, 12:57:48 pm »
Hello, I saw topics like that topic, but they don't help me with my actual error.
(click to show/hide)
(click to show/hide)
libraries what I add to Linker->Input->Additional Dependencies:
(click to show/hide)
(I use x64)

Pages: [1]