Questions tagged as 'windows'

1
answer

Change mouse cursor using WINAPI

I can not change the mouse cursor when I release the right mouse button. Part of my code: case WM_RBUTTONUP : SetCursor( LoadCursor( hInstance, MAKEINTRESOURCE(IDC_MEUCURSOR1))); ShowCursor(TRUE); return 0;...
asked by 23.03.2014 / 21:27
0
answers

Implement a blink counter on haar cascade face detection

How do I display the amount of blinks of people currently detected. The code below detects against haar cascade, where it displays a face counter. from __future__ import print_function #importa a funcao da biblioteca future import cv2 cap =...
asked by 04.06.2018 / 19:35
1
answer

C # Windows Service Alternative

Hello, I have some windows services written in C # (Framework 4.0) running on server here in the company, these services perform some monitoring to leave information available for when the user logs into the asp.net system. We will no longer...
asked by 18.05.2018 / 20:57
0
answers

Is it possible to optimize this code?

I asked a question here and they sent me a suggestion of a code that does a search on the contents of all .bat files in a directory using as criteria, names that are in a .txt file. set "File2Read=falhou.txt" set "File3Read=call.txt" If No...
asked by 27.06.2018 / 15:01
1
answer

Chocolatey in Windows Powershell

I'm trying to use the native Windows Powershell commands to install the Chocolatey packages, but when I use a command like Get-ChocolateyVersion I get the error message:    C: \ Program Files \ WindowsPowerShell \ Modules \ chocolatey...
asked by 03.03.2018 / 16:54
0
answers

Error writing Word document in OleContainer

Situation is the following I have a system that Word automation and at the time of save the document it is not saving . Do not know what it is, as this only happens in the Client. procedure TfrmConsultas.Salvar1Click(Sender: TObject); var...
asked by 24.05.2018 / 20:10
1
answer

Difference calling a function in DllMain by CreateThread or calling directly

What's the difference in calling a function in the following ways: The first way to create a thread. Example: DWORD WINAPI Metodo1(LPVOID) { // Meu código aqui... return NULL; } int WINAPI DllMain(HMODULE hModule, DWORD dwReaso...
asked by 04.10.2017 / 20:41
1
answer

Incorrect mime for XLS files

I'm doing a migration of a certain system written in ASP.NET (site) and in a certain part of that system there is a place where a XLS file is uploaded. There is a check against the mime type of the file to see if it is actually an XLS...
asked by 14.07.2017 / 13:43
0
answers

Is it possible to set a task in the task scheduler using php?

I'm not talking about running a php, but creating a new task in the scheduler, through php script executed by the user, when browsing the site. It's possible? If not, what alternative do I have to do this on windows? (schedule a task via php)  ...
asked by 30.03.2017 / 03:57
0
answers

JAVA - Is there any way to send a print to Windows Spooler?

I would like to know if there is any way to send a print to Windows Spooler via java ... I tried via Socket, PrintWriter and everything else, but I can not send it to Spool, just directly to the printer !!!! >     
asked by 17.08.2017 / 22:00