GithubHelp home page GithubHelp logo

arian8j2 / clipboardxx Goto Github PK

View Code? Open in Web Editor NEW
60.0 2.0 10.0 74 KB

Header only, lightweight and cross platform C++ library for copy and paste text from clipboard.

License: GNU General Public License v3.0

C++ 94.76% CMake 2.97% Shell 2.27%
cpp clipboard cross-platform hpp-library linux windows header-only

clipboardxx's People

Contributors

arian8j2 avatar oldarian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

clipboardxx's Issues

Multiple errors when trying to copy

Whenever I try to copy text to the clipboard using this, it gives errors about it being 'not a class or namespace name' and 'clipboard undeclared identifier' and such and have no idea how to fix this. Am I using it wrong or is it to do with the header file its self?

This is how I'm doing it:
image

Errors:
image

Cannot copy to clipboard more than once in one program

Version 0.4
When there are more than 1 copy command in my program, the error below appears at the 2nd copy command:
error
(I am really sorry for the "screenshot", I cannot access the clipboard for screenshotting when the program is debugging)

Here is a simple code that replicates my problem:

#include <iostream>
#include "clipboardxx.hpp"

int main()
{
    clipboardxx::clipboard clipboard;
    std::string string;

    std::cin >> string;
    clipboard << string;
    std::cin >> string;
    clipboard << string;
}

Please do let me know if you need any more information to follow this up. Thank you in advance.

Using "<<" operator twice

Hey,
at the beginning, I would like to mention that I'm a beginner programmer, that is my first activity on Github and so I ask for leniency.
So I tried to use your library in my program and whenever I copy something for the second time I get a critical error (c0000374) in line 279 (SetClipboardData(CF_TEXT, global);). Moreover, there is a warning (C28183).
I think that the clipboard is not "closing/deleting/empty/...." itself and that is why the program cannot rerun the copy function.

  • In my program, I added clipboardxx::clipboard clp; at the beginning of the main function,

  • then used overflown operator << in a switch (users choice of action) in a while (menu with actions) loop (clp << password;)

Thank you in advance for your reply.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.