Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualthefollower

Posted 07 November 2012 - 05:41 PM

I had that to check the value of m_h to make sure it was correct. I tend to exit with the variable if they are ints to check they are correct :)

I removed that exit now.

I've just re-done my header files. And moved the functions to a different cpp file so i can follow it better. It got rid of the 0xcccccccc error but i got this :



1> menu.cpp
1>desktop\c++\projects\sfml\sfml\menu.cpp(19): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(20): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1> main.cpp
1>desktop\c++\sfml\sfml-2.0\include\sfml\window\window.hpp(476): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::Window::Window(const sf::Window &)'
1>desktop\c++\sfml\sfml-2.0\include\sfml\graphics\rendertarget.hpp(369): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::RenderTarget::RenderTarget(const sf::RenderTarget &)'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


#3thefollower

Posted 07 November 2012 - 05:37 PM

I had that to check the value of m_h to make sure it was correct. I tend to exit with the variable if they are ints to check they are correct :)

I removed that exit now.

I've just re-done my header files. And moved the functions to a different cpp file so i can follow it better. It got rid of the 0xcccccccc error but i got this :



1> menu.cpp
1>desktop\c++\projects\sfml\sfml\menu.cpp(19): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(20): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1> main.cpp
1>desktop\c++\sfml\sfml-2.0\include\sfml\window\window.hpp(476): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::Window::Window(const sf::Window &)'
1>desktop\c++\sfml\sfml-2.0\include\sfml\graphics\rendertarget.hpp(369): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::RenderTarget::RenderTarget(const sf::RenderTarget &)'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


#2thefollower

Posted 07 November 2012 - 05:37 PM

I had that to check the value of m_h to make sure it was correct. I tend to exit with the variable if they are ints to check they are correct :)

I removed that exit now.

I've just re-done my header files. And moved the functions to a different cpp file so i can follow it better. It got rid of the 0xcccccccc error but i got this :



1> menu.cpp
1>desktop\c++\projects\sfml\sfml\menu.cpp(19): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(20): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1> main.cpp
1>desktop\c++\sfml\sfml-2.0\include\sfml\window\window.hpp(476): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1> desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::Window::Window(const sf::Window &)'
1>c++\sfml\sfml-2.0\include\sfml\graphics\rendertarget.hpp(369): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::RenderTarget::RenderTarget(const sf::RenderTarget &)'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


#1thefollower

Posted 07 November 2012 - 05:36 PM

I had that to check the value of m_h to make sure it was correct.

I've just re-done my header files. And moved the functions to a different cpp file so i can follow it better. It got rid of the 0xcccccccc error but i got this :



1> menu.cpp
1>desktop\c++\projects\sfml\sfml\menu.cpp(19): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(20): warning C4244: '=' : conversion from 'float' to 'int', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1>desktop\c++\projects\sfml\sfml\menu.cpp(53): warning C4244: 'argument' : conversion from 'int' to 'float', possible loss of data
1> main.cpp
1>desktop\c++\sfml\sfml-2.0\include\sfml\window\window.hpp(476): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1> desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::Window::Window(const sf::Window &)'
1>c++\sfml\sfml-2.0\include\sfml\graphics\rendertarget.hpp(369): error C2248: 'sf::NonCopyable::NonCopyable' : cannot access private member declared in class 'sf::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(67) : see declaration of 'sf::NonCopyable::NonCopyable'
1>desktop\c++\sfml\sfml-2.0\include\sfml\system\noncopyable.hpp(42) : see declaration of 'sf::NonCopyable'
1> This diagnostic occurred in the compiler generated function 'sf::RenderTarget::RenderTarget(const sf::RenderTarget &)'
1> Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


PARTNERS