Search found 218 matches

by dkaip
Sun Jan 19, 2020 7:51 pm
Forum: C++ Development
Topic: Drag and drop from file manager to wxTextCtrl
Replies: 2
Views: 48

Drag and drop from file manager to wxTextCtrl

Hello. I am trying to drag a file name to wxTextCtrl and i dont know how. I am using the code void controlPanels::OnDropFile(wxDropFilesEvent& event) { wxMessageBox(L"somethin happend"); // but nothing if (event.GetNumberOfFiles() > 0) { wxString* dropped = event.GetFiles(); wxASSERT(dropped); wxBus...
by dkaip
Tue Nov 26, 2019 3:58 pm
Forum: C++ Development
Topic: How to convert a codepoint to utf8
Replies: 3
Views: 149

Re: How to convert a codepoint to utf8

Thanks for your reply.
But assuming I've put a character at code point 100000 in font, if I enter it my text won't appear?
Thank you
Jim.
by dkaip
Tue Nov 26, 2019 7:11 am
Forum: C++ Development
Topic: How to convert a codepoint to utf8
Replies: 3
Views: 149

How to convert a codepoint to utf8

Hello.
As we know codepoint of A is 65.
How to tell wxString char_str=codepointAsUtf8(65)??
And if i have the 100000 codepoint how to covert as utf8 wxString character?
Thank you
Jim.
by dkaip
Wed Jan 02, 2019 9:42 am
Forum: C++ Development
Topic: Paste / copy png to clipboard
Replies: 6
Views: 369

Re: Paste / copy png to clipboard

Ok, but what other way exist to connect two exe files for transform data between exept clip and write and open files in disk(too slow process..)?
Thank you
Jim
by dkaip
Tue Jan 01, 2019 5:11 pm
Forum: C++ Development
Topic: Paste / copy png to clipboard
Replies: 6
Views: 369

Re: Paste / copy png to clipboard

All that is because i can not connect pdfium in windows with GCC, because of MSVC libraries.
So i bypass the pdfium lib with clipboard use, and there is no other way.
So i need the clipboard to make the transformation.
Than you.
Jim
by dkaip
Tue Jan 01, 2019 5:06 pm
Forum: wxCode
Topic: Linking wxPDFView error
Replies: 3
Views: 654

Re: Linking wxPDFView error

Yes, that is exactly, i use MSVC libraries with GCC... I always use CodeBlocks and GCC. In Linux i connect pdfium with gcc easy. But in windows compilation process use MSVC, that is i hate, the using of vs and ms tools. But there is need to have a pdfiewer in windows, so i just build wxPDFView follo...
by dkaip
Tue Jan 01, 2019 2:06 pm
Forum: C++ Development
Topic: Paste / copy png to clipboard
Replies: 6
Views: 369

Paste / copy png to clipboard

Hello. I have a png image as string .. std::string str(png_encoding.begin(), png_encoding.end()); Then copy to clipboard with ... void toClipboard(const std::string& s) { CloseClipboard(); OpenClipboard(0); EmptyClipboard(); HGLOBAL hg = GlobalAlloc(GMEM_MOVEABLE, s.size()); if (!hg) { CloseClipboar...
by dkaip
Tue Jan 01, 2019 12:14 pm
Forum: wxCode
Topic: Linking wxPDFView error
Replies: 3
Views: 654

Linking wxPDFView error

Hello. After so time finaly i made wxPDFView lib at C:\wxPDFView\build\Debug folder(files wxPDFView.lib and wxPDFView.pdb) following the instruction exactly. Now i am try to build Simple.cpp sample. mingw32-g++.exe -w -std=c++14 -g -D__WXDEBUG__ -std=c++14 -IC:\wxWidgets-3.0.4\include -IC:\wxWidgets...
by dkaip
Sat Dec 29, 2018 9:50 pm
Forum: wxCode
Topic: Compile from sources the wxPDFView error
Replies: 7
Views: 1093

Re: Compile from sources the wxPDFView error

ok.
by dkaip
Tue Dec 25, 2018 6:01 am
Forum: C++ Development
Topic: How to take a press button event
Replies: 7
Views: 665

Re: How to take a press button event

Very good example...
Thank you.
Jim
by dkaip
Mon Dec 24, 2018 6:45 pm
Forum: C++ Development
Topic: How to take a press button event
Replies: 7
Views: 665

Re: How to take a press button event

Sorry, with button i mean key of keyboard.(Not good in English).
The scenario is when the process run, if i press Q, W, and E, give me a message. That is for learning.
Thank you.
Jim
by dkaip
Mon Dec 24, 2018 3:32 pm
Forum: C++ Development
Topic: How to take a press button event
Replies: 7
Views: 665

Re: How to take a press button event

My program runs as a backgroud process and it must inspect if a certain group of buttons are press in keyboard.
There is no mater if buttons press in certain program or not.
Thank you.
Jim
by dkaip
Mon Dec 24, 2018 9:43 am
Forum: C++ Development
Topic: How to take a press button event
Replies: 7
Views: 665

How to take a press button event

Hello. I have made a litle process program that runs at windows 10 background.
I dont know how to take an even, a press button, how must make the program to inspect OS events, a press button for example. There is a link to study some code?
Thanks
Jim.
by dkaip
Sat Dec 15, 2018 7:41 pm
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 13
Views: 2908

Re: wxSQLIte3 from sources...

Yes, as i see i have the C:\Program Files (x86)\CodeBlocks\MinGW compiler from CodeBlocks installation, the TDM-GCC. I will try newer compiler and i will upload the source cbp file soon i have some time.
Thank you.
Jim
by dkaip
Sat Dec 15, 2018 8:30 am
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 13
Views: 2908

Re: wxSQLIte3 from sources...

Hello. This time i am trying to compile minimal last download version from sources in windows 10. But i am taking error ... C:\wxsqlite3\sqlite3secure\src\chacha20poly1305.c|347|undefined reference to `[email protected]'| defines are ... __GNUWIN32__ __WXMSW__ wxUSE_UNICODE _WIN32 THREADSAFE=1 SQL...