window

Artificial webcam on windows

ぐ巨炮叔叔 提交于 2021-01-28 05:38:27
问题 I use v4l2loopback to generate a webcam in linux and I feed the virtual webcam with Opencv images. I would like to do the same on Windows. I found this example: https://github.com/rdp/open-source-directshow-video-capture-demo-filter When I try to compile it I get this error: Severity Code Description Project File Line Suppression State Error (active) cannot open source file "streams.h" vcam_vs_2010 c:\Users\seniordev\Desktop\open-source-directshow-video-capture-demo-filter-master\open-source

Filtering folders in Boost Filesystem

為{幸葍}努か 提交于 2021-01-28 04:06:55
问题 I want to get all the files inside a concrete folder (in this case Documents) with Boost Filesystem in Windows. For this I make a filter to assure I get no folders. The problem is that when I still get the following folders : "C:\....\Documents\My Videos", "C:\....\Documents\My Music", "C:\....\Documents\My Pictures" (I don't get some other folders) The code is the following: boost::filesystem::directory_iterator end; for (boost::filesystem::directory_iterator iter(documentsFolder); iter !=

Qt close a running window through code

醉酒当歌 提交于 2021-01-27 05:47:52
问题 I have a program that opens another window and i want the old window to close. Is there some function or something that would close the window through the code but keep the other window running? 回答1: this->close(); or close(); Ref: http://doc.qt.digia.com/4.7/qwidget.html#close 回答2: MyWidget *newform = new MyWidget; newform->show(); this->hide(); 回答3: void Dialog::on_Close_clicked() // Condition for Main thread program stopping Running Thread->closethread = true; this->close(); void Dialog:

How do I get the real usable resolution

匆匆过客 提交于 2021-01-20 17:01:41
问题 With Toolkit.getDefaultToolkit().getScreenSize() I get the screen size. But usually this isn't the available size I have for my own program, because on the mac there is a menubar on top and on the bottom an iconbar. Windows also has an iconbar. So how do I get the real available space? 回答1: From Java forum: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle bounds = ge

How do I get the real usable resolution

落花浮王杯 提交于 2021-01-20 16:57:12
问题 With Toolkit.getDefaultToolkit().getScreenSize() I get the screen size. But usually this isn't the available size I have for my own program, because on the mac there is a menubar on top and on the bottom an iconbar. Windows also has an iconbar. So how do I get the real available space? 回答1: From Java forum: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Rectangle bounds = ge

How to open main window after successful login

孤街浪徒 提交于 2021-01-07 03:57:47
问题 I am gettin' stared wiith python. I got a udemy course and also read this post: How To Let Your Main Window Appear after succesful login in Tkinter(PYTHON 3.6 Still, I am unable to implement the recired event. I want to open a new (main) window of the desctop app after login. For some reason the script also opens a third window all of a sudden. I am getting really frusted working since 2 das on that stuff... Thanks for help :) from tkinter import Tk, Label, Button, messagebox from tkinter

Visual Studio Code “undefined reference to `WinMain@16'”

末鹿安然 提交于 2021-01-01 13:44:25
问题 so I am trying to make a Windows Desktop Application with c++ in Visual Studio Code and using MinGW as my compiler. I have a file called test.cpp in a folder called src : #ifndef UNICODE #define UNICODE #endif #include <windows.h> int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow){ const wchar_t name[] = L"Test"; WNDCLASS wc = {}; //wc.lpfnWndProc = WindowProc; wc.hInstance = hInstance; wc.lpszClassName = name; RegisterClass(&wc); HWND hWnd =

Visual Studio Code “undefined reference to `WinMain@16'”

[亡魂溺海] 提交于 2021-01-01 13:38:45
问题 so I am trying to make a Windows Desktop Application with c++ in Visual Studio Code and using MinGW as my compiler. I have a file called test.cpp in a folder called src : #ifndef UNICODE #define UNICODE #endif #include <windows.h> int wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nCmdShow){ const wchar_t name[] = L"Test"; WNDCLASS wc = {}; //wc.lpfnWndProc = WindowProc; wc.hInstance = hInstance; wc.lpszClassName = name; RegisterClass(&wc); HWND hWnd =

Hide tkinter window in system tray [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2020-12-31 15:01:44
问题 This question already has answers here : How to build a SystemTray app for Windows? (3 answers) Closed last year . I am making a program that reminds me birthday of my friends so that I don't forget to wish them. For that I made two two tkinter windows: 1. First one is for entering name and birth date 2. Second one is for reminding their birthday I have no problem with second tkinter window but I wanted to hide the first tkinter window in system tray so that it don't open in startup but it do

Hide tkinter window in system tray [duplicate]

亡梦爱人 提交于 2020-12-31 15:01:38
问题 This question already has answers here : How to build a SystemTray app for Windows? (3 answers) Closed last year . I am making a program that reminds me birthday of my friends so that I don't forget to wish them. For that I made two two tkinter windows: 1. First one is for entering name and birth date 2. Second one is for reminding their birthday I have no problem with second tkinter window but I wanted to hide the first tkinter window in system tray so that it don't open in startup but it do