Search found 138 matches
- Wed Jan 15, 2020 7:51 am
- Forum: C++ Development
- Topic: Save multiple images as one file.
- Replies: 3
- Views: 866
Re: Save multiple images as one file.
You can use opencv lib (imencode https://docs.opencv.org/trunk/d4/da8/gr ... 67df3b8b63)
- Wed Dec 18, 2019 10:46 am
- Forum: C++ Development
- Topic: Displaying Image and Videos on my Parent Frame cMain
- Replies: 16
- Views: 4873
Re: Displaying Image and Videos on my Parent Frame cMain
you can try https://github.com/LaurentBerger/wxHighgui to combine wxwidgets and opencv
- Thu Dec 05, 2019 2:30 pm
- Forum: C++ Development
- Topic: Displaying Image and Videos on my Parent Frame cMain
- Replies: 16
- Views: 4873
Re: Displaying Image and Videos on my Parent Frame cMain
May be this github repo can help you https://github.com/LaurentBerger/wxOpenCV and this https://github.com/LaurentBerger/wxOpen ... #L305-L671
- Tue Sep 18, 2018 4:42 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Build wxwidgets with system library
- Replies: 2
- Views: 1338
Re: Build wxwidgets with system library
You likely need to build wxWidgets and OpenCV with the same PNG ZLIB and TIFF libs Now I have got wxWidgets and Opencv with same PNG ZLIB and TIFF but process is not automatic : add path tiffconf.h When wxwidgets uses libtiff tiff.h and tiffconf.h files are in same directory. It is not true for Ope...
- Tue Sep 18, 2018 12:31 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Build wxwidgets with system library
- Replies: 2
- Views: 1338
Build wxwidgets with system library
Hi, I use CMake (3.11.0) to build wxWidgets (staticlib = wxBUILD_SHARED_OFF) on windows (VS 2017 Win64). I want to use the inside opencv libs for PNG ZLIB and TIFF to avoid duplicate symbols when I link my application. After many tries (something is wrong in CMake-GUI when wxBUILDPNG is sys) ihave g...
- Mon Sep 17, 2018 12:11 pm
- Forum: Compiler / Linking / IDE Related
- Topic: link error using wxwidgets in static for my own lib
- Replies: 5
- Views: 2306
Re: link error using wxwidgets in static for my own lib
thanks for all test. What is your platform linux or windows ? (MSys2 GCC 8=windows ?)
There is a problem with flag WXUSINGDLL in wxNanoSample : it must be used only when static build is needed. I tried to insert in cmakelists.txt but it is not tested yet
There is a problem with flag WXUSINGDLL in wxNanoSample : it must be used only when static build is needed. I tried to insert in cmakelists.txt but it is not tested yet
- Sun Sep 16, 2018 7:53 am
- Forum: Compiler / Linking / IDE Related
- Topic: link error using wxwidgets in static for my own lib
- Replies: 5
- Views: 2306
link error using wxwidgets in static for my own lib
Hi, I can compile link and run my project using my own lib using wxwidgets dll libs. Using static libs I have got 1 error and three warnings : 2>main.obj : warning LNK4217: locally defined symbol ??0wxString@@QEAA@PEBD@Z (public: __cdecl wxString::wxString(char const *)) imported in function "u...
- Thu Sep 13, 2018 8:16 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Re: Basic GUI
Nice and only one wxApp as suggested by ONEEYEMAN
I tested with windows 10 and vs 2017. May be it's a good sample to add to wxWidgets repo
What's your platform?
I tested with windows 10 and vs 2017. May be it's a good sample to add to wxWidgets repo
What's your platform?
- Thu Sep 13, 2018 7:28 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Re: Basic GUI
Hi, I didn't want to insult you. If I did - I apologize. Going back to your question - did you look at the console sample? Thank you. Ok close Now you said "you can't have 2 wxApp-derived classes in the project" but when I run my program It works : int l1 = GetNumber<int>(); // I can see ...
- Thu Sep 13, 2018 6:24 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Re: Basic GUI
This looks unnecessarily complicated. What exactly are you trying to do? My students don't know gui loop and have to learn some basics in C++ in console mode. Today cout and cin in a black screen with young people knowing only popup windows in instagram, facebook..it's difficult. I want something r...
- Thu Sep 13, 2018 6:17 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Re: Basic GUI
Hi, On top of what doublemax said - you can't have 2 wxApp-derived classes in the project. What is the purpose? Also, based on your responce and the code you wrote it seems you don't understand the notion of the GUI and wxWidgets in general. I suggest your start with some basic C++ classes, then ta...
- Wed Sep 12, 2018 7:38 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Re: Basic GUI
Thanks I need main entry point. With your answer and https://forums.wxwidgets.org/viewtopic.php?t=43513 #include "wx/wx.h" #include <wx/numdlg.h> #include<iostream> #include<string> class GetNumberApp : public wxApp { public: int number; virtual bool OnInit() { number = wxGetNumberFromUser...
- Wed Sep 12, 2018 6:31 pm
- Forum: C++ Development
- Topic: Basic GUI
- Replies: 11
- Views: 29968
Basic GUI
Hi, I'm looking for basic GUi for noobs. Something like this void main (void) { double x=wxGetValue("Real number please:"); wxString s=wxGetString("Your name please:); } wxGetValue or wxGetString open a dialog box and when user press return key dialog is closed. No need of event loop....
- Thu Jul 05, 2018 8:42 pm
- Forum: C++ Development
- Topic: 2D-Plots
- Replies: 44
- Views: 10983
Re: 2D-Plots
you can use http://plplot.sourceforge.net/too
- Sat Jun 30, 2018 4:03 pm
- Forum: C++ Development
- Topic: use getIcon for wxFrame
- Replies: 6
- Views: 1837
Re: use getIcon for wxFrame
wxBitmap b2(f->ImageAffichee()->Scale(30, 30)); wxIcon icon=iconBundle.GetIcon(wxSize(32, 32), wxIconBundle::FALLBACK_NEAREST_LARGER); (Assuming the code posted reflects the real code) Is 30 instead of 32 in the first part a typo or intent? Yes it was. I checked flag wxIconBundle::FALLBACK_NEAREST_...