Clipboard dll 2 (windows)

Started by Arcontus, May 01, 2018, 11:54:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Arcontus

Hi!
This is my first DLL and I want to share it with yours. This is a dll to access to the content of the clipboard and copy it over a string or  the other way, copying a string content over the clipboard.

This library have 2 functions:

-- str = CLIPBOARD_READ(); --> Return the content of the clipboard over a string or a error message (now in english!) in the cases of empty or non valid content (eg: a file).
-- CLIPBOARD_WRITE(str);      --> Copy the content of a string over the clipboard.

Caution, if you want to see the correct visualization of spanish characters is necesary a font file with CP850 codification. This library does a conversion "on the fly" of the special characters for spanish like (áéíóú,...), but this should not affect to english strings, but carefull if you are working in other languages.


I attach the .dll and a little example program inside the zip file.

I hope that it can be interesting for the comunity,
Regards!
PD: This version has a change only in the functions names proposed by the community, the code is the same.
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

JaViS

Hi Arcontus,


The DLL isn't attached to the post, can you edit it again?


BTW, is there a chance to make this extension compatible with linux as well?


Thanks for sharing!
Working on Anarkade. A couch multiplayer 2D shooter.

Arcontus

Quote from: JaViS on May 02, 2018, 01:21:52 PM
Hi Arcontus,


The DLL isn't attached to the post, can you edit it again?


BTW, is there a chance to make this extension compatible with linux as well?


Thanks for sharing!
Thanks for warning about the attach file. I put it "again".
About your question, this dll use windows.h library and unfortunately it isn't compatible with linux OS. I think that is necesary to rewrite all the dll to do it and it is out of my objectives, sorry.

5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

JaViS

Anyways, it would be great if you could upload the source code somewhere and make it available, so the community can continue working on it.
Working on Anarkade. A couch multiplayer 2D shooter.

Arcontus

Quote from: JaViS on May 02, 2018, 05:03:01 PM
Anyways, it would be great if you could upload the source code somewhere and make it available, so the community can continue working on it.
Yes!I have it on pending tasks :D
5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com

Arcontus

5Leaps, el primer juego comercial desarrollado para BennuGD. http://www.5leaps.com