SFML community forums

Bindings - other languages => DotNet => Topic started by: AleVerDes on February 02, 2014, 09:59:51 pm

Title: SFML and clipboard
Post by: AleVerDes 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)
Title: Re: SFML and clipboard
Post by: Laurent on February 02, 2014, 10:17:36 pm
This doesn't seem to be related to SFML at all.
Title: Re: SFML and clipboard
Post by: AleVerDes 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.
Title: Re: SFML and clipboard
Post by: AleVerDes on February 02, 2014, 10:35:19 pm
Sorry, in console application it dosn't work too. May be problem in links of project.
Title: Re: SFML and clipboard
Post by: Laurent 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.