Clipboard

This forum is meant for questions and discussions about the X# language and tools
ic2
Posts: 1808
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Clipboard

Post by ic2 »

Hello Karl,

Hmm, I thought I posted a reply...

Here it is again:

Glad I could help. It makes me wonder however why it works for me (and Chris I think) apparently without this statement?

Dick
User avatar
Chris
Posts: 4588
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Clipboard

Post by Chris »

Hi Dick,

I do have it in my Start() function, actually this attribute is needed for dozens of different things to work, so I already had it.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
User avatar
ArneOrtlinghaus
Posts: 385
Joined: Tue Nov 10, 2015 7:48 am
Location: Italy

Clipboard

Post by ArneOrtlinghaus »

We needed this attribute also for some situations that I do not remember anymore. We have it also at the beginning of the start function of the main programs.

[STAThread] ;
function Start as void
...

Arne
User avatar
Fabrice
Posts: 414
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Clipboard

Post by Fabrice »

Here is a good explanation about this attribute, and the fact that it is needed for Clipboard support.
https://docs.microsoft.com/en-us/archiv ... d-required

Fab
XSharp Development Team
fabrice(at)xsharp.eu
FFF
Posts: 1532
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Clipboard

Post by FFF »

Hi Fabrice,
thx for the link. If i understand this correctly, the attribute has to be set, no way out of this. Couldn't the compiler throw a warning, if one instantiates a clipboard without having the attribute?
Regards
Karl
(on Win8.1/64, Xide32 2.19, X#2.19.0.2.)
Post Reply