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

Author Topic: SFML and clipboard  (Read 4175 times)

0 Members and 1 Guest are viewing this topic.

AleVerDes

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
SFML and clipboard
« on: February 02, 2014, 09:59:51 pm »
Hi guys!

I have a problem with the work of the clipboard.

Said further code, according to the tests, indicating that the clipboard contains an empty string. That is, the two conditions return true.

What could be the problem?

add_str(Clipboard.GetText());
if (Clipboard.GetText() == "") add_str("22");
if (Clipboard.GetDataObject() == null) add_str("222");

(add_str(string str) - a function for adding text to the screen, for tests)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML and clipboard
« Reply #1 on: February 02, 2014, 10:17:36 pm »
This doesn't seem to be related to SFML at all.
Laurent Gomila - SFML developer

AleVerDes

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: SFML and clipboard
« Reply #2 on: February 02, 2014, 10:30:46 pm »
But in the standard, the newly created application WMF everything works fine. And here - no. Code just written and Clipboard previously contacted and could not even - Windows.Forms connected only for him.

AleVerDes

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: SFML and clipboard
« Reply #3 on: February 02, 2014, 10:35:19 pm »
Sorry, in console application it dosn't work too. May be problem in links of project.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: SFML and clipboard
« Reply #4 on: February 03, 2014, 07:39:37 am »
Ok but... why are you posting on the SFML forum? You're unlikely to get a lot of help on a non-SFML topic.
Laurent Gomila - SFML developer