Safe conversion from __int64 to size_t

I am working on Windows OS with Visual Studio 2017, and I obtained the following function to determine the size of a file from one of SO's answers: __int64 FileSize(const char *filename) { HANDLE hFile = CreateFile(filename, GENERIC_READ, ...
more »

2017-10-04 14:10 (4) Answers

One more GDAL import error in Windows

I have installed (and uninstalled) and installed GDAL 2.2.2 in Windows 10 using Christoph wheel. However, when I try to import it I get: Installing collected packages: GDAL Successfully installed GDAL-2.2.2 (e4) C:\Users\R1702898\Documents\Empirica...
more »

2017-09-23 19:09 (0) Answers

Windows 10 mail app unread folder

I was trying to create a folder in Windows 10 mail app. On the left-hand side, under sent, delete and more. The folder should consist Unread emails. That what I tried. The name of the folder "Unread" and the emails inside, which was not checked yet o...
more »

2017-09-20 10:09 (0) Answers

gradle failure - command line

I am trying to create and build an android project with command line tools only (on win7). so far i succeeded in creating an app and building it with gradle via command line. but i needed to use an external library in my app, named objectbox. after ...
more »

2017-09-17 12:09 (1) Answers

How to 'open file with' electron.js app?

If the user right-clicks on a txt file he should me able to choose my app and the app should open the file. My question is, how do I identify if the user has opened the app with a file and where is the file stored in the app? In java, external par...
more »

2017-09-12 14:09 (1) Answers

Share variable from main program to DLL in C

I'm new to DLL programming and I'm tryng to develop a program with some DLLs that use a single global variable defined inside the main application (.exe). In short words, I don't understand how to import the global variable inside different DLLs and...
more »

2017-09-11 14:09 (0) Answers

Detect USB drive insertion in C (Windows)

I tried looking around and found a few solutions to detect a USB drive insertion, but none that I found were actually working in C. I wanted to ask, how do I approach this problem? What is the idea behind the detection process (Like, how is it done)...
more »

2017-09-10 10:09 (1) Answers

smtp traffic monitoring on windows

I have been asked to create a software for mail clients to pop up a review (review body, addresses, attachments, and attach some data to the mails body) window when user clicks send button. I mean, the email won't be actually sent until the user acce...
more »

2017-09-05 17:09 (0) Answers

Import error installing SciPy

I've facing serious troubles in trying to install the SciPy package on Windows... I keep getting this error: ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build o...
more »

2017-09-03 23:09 (2) Answers

xcopy - error send by email: 0 File(s) copied

I have a script that executes a copy on my network drive. The script runs every hour and copies the database. I have implemented the error sending function on my email. Works correctly. I have a problem because in the script I use the xcopy function...
more »

2017-09-03 14:09 (0) Answers

Why does getsockopt return an error?

I'm hitting a problem with a socket on Windows. Calling getsockopt() always fails. The weird thing is that setsockopt() seems to work (at least it reports success...although the option I am setting does not seem to have the effect that I expect). My...
more »

2017-09-01 14:09 (1) Answers

How to create caches folder in gradle folder?

I am setting up gradle on my machine for the first time. I have to create a REST based java project setup on my machine with gradle as build tool. I have set the environment variable GRADLE_HOME to the folder where i have unzipped gradle
more »

2017-08-31 09:08 (1) Answers

Protect python script on Windows server

I have a bunch of Python scripts which are to be run by several different users. The scripts are placed in a Windows server environment. What I wish to achieve is to protect these scripts in such a way that standard users are allowed to run them bu...
more »

2017-08-29 07:08 (3) Answers