Questions tagged [windows]
Questions involving programming on Microsoft Windows technology, including its API.
321
questions
-3
votes
2
answers
1k
views
Chose between .net 4.8.1 and .net core 6.0 . is the support life cycle an important factor to consider
I want to start developing a long-life ERP system to a customer. now on paper I would chose to develop it using .NET core 6.0 with SQL Server. But one of the main drawbacks which the customer did not ...
5
votes
5
answers
3k
views
How can I protect an SQL connection string in a client-side application?
I am developing a .NET Windows application and I need to make requests to a SQL Server instance. How do I secure the authentication data in my code in case someone decompiles my application?
I know ...
4
votes
1
answer
174
views
I'm adding Windows Home support to my client application. How can I perform automated testing?
My team and I publish a client app as part of our solution. It includes a CLI but there are other components as well. Currently most of us develop locally on MacOS, and as part of our CI/CD we have a ...
0
votes
2
answers
780
views
Share Global Variable in DLL, feasible or naive?
So the gist is to have a static global variable that can be modified by different executables. For example I have 2 different source files including the same dll.h:
dll.h
#include <iostream>
...
12
votes
2
answers
2k
views
Deploy C#/C++ binaries incrementally by patching the difference
My company has a huge C++/C# software system composed of 1800 binaries. The technology range goes from old school native C++/MFC, then C++/CLI, up to .NET Framework and .NET Core 6. Almost all ...
-4
votes
1
answer
140
views
How do different operating systems have different window layouts? [closed]
I have searched on the Internet on how do operating systems have different window layouts, but I have found nothing. Windows has one style, Mac OS has another, and Linux has a different style as well. ...
0
votes
2
answers
260
views
On hanging Desktop-applications
I am filled with questions pertaining to the situations where a desktop-application hangs, possibly for minutes.
I've got this complicated game-engine written in c++. Several times during development, ...
0
votes
1
answer
87
views
Handling/queueing a Windows-Service restart to apply new changes
I'm working on a project that has the purpose to execute tasks in intervals.
The tasks and it's properties can be configured through the Configuration Website. The data is being stored in the ...
0
votes
1
answer
429
views
Asynchronous Server in C++
We are looking to develop an asynchronous server in C++. We are coming from C#, which has built-in support for async-await networking. However, with C++ it appears as if it is basically mandatory to ...
0
votes
0
answers
54
views
Best design principles and approaches for a Windows desktop app used across a home network
Forgive this question if it's too 'newbie' or green - I'm not a professional developer or anything. I'm a hobbyist coder.
I'm developing a windows desktop application which requires the following ...
2
votes
2
answers
959
views
What is suggested way to use iHostedService of .NET core or Windows service when process runs for exponential hour time (up till hours)?
I wanted to create a background job in which I want to use the retry mechanism for that I want to use the Polly. My requirement is like this:
the First retry should be done after 2 hours
the Second ...
3
votes
2
answers
3k
views
How to read all the memory of another process in windows?
The title really says it all, I want to have all the readable memory of another process in a buffer. I understand that I will have to use ReadProcessMemory(), but If I'm correct I can't just use one ...
1
vote
3
answers
149
views
Copy protection for Windows software for the case "demo version vs. full version"
I have written a software as a student. All functionality was in the software and it was a 30 days fully functional version. After some years there were cracks around and my income was 10% of before. ...
3
votes
2
answers
181
views
Is it good practice to have applications remove old AppData files when they're no longer needed?
I have a Desktop application that was saving some data to %AppData%\MyApp\old.txt (roughly 1KB).
I have decided to rename the file that I write to to new.txt.
If I push out this change, customer ...
1
vote
1
answer
143
views
How significant is the speed of native code for back end tasks?
Going native is extremely good for front end development. Whether its using android vs ionics, c++ vs dotnet/java, the benefits to GUI are significant.
I was wondering if the same had significant ...
-3
votes
1
answer
269
views
What is the best way to notify the developer (myself) of errors during production?
I'm starting to write production software (just for myself, not for a company with a pre-set mode of operations for this). I want to find a way to send a message from my users to me (the developer) ...
2
votes
2
answers
650
views
Is it right way to make Window to Singleton and call Visibility and Shutdown() methods directly in WPF?
There is a parent window that is the basis of the program, and there are several sub windows under it. Editor is one of the sub window and I'm making it. The code is as follows:
// This is Code-Behind
...
2
votes
0
answers
70
views
How can a mobile app measure the phone's rough distance with the user's laptop?
I have a mobile app (iOS and android compatible) that needs to know if it's far or close to the user's laptop/ desktop (e.g. whether it's within 5 meters or not). I need to make it secure such that ...
-2
votes
2
answers
82
views
How to aid (do the testing for) a developer who doesn't own a touchpad to implement Precision bindings?
First of all, I consider myself to be a power user, but wouldn't dare to call myself a software designer.
I opened a feature request to add support for Windows' Precision Touchpad binding in the ...
0
votes
1
answer
432
views
How are symbols resolved in dynamic linking and loading?
I'm a CS student, and I'm doing a project on shared libraries and dynamic linking/loading. One of the questions I have to answer is how symbols are resolved with dynamic linking/loading. I've scoured ...
2
votes
1
answer
321
views
What are the correct storage locations (folders) for an application within a Windows-based (Windows 7 - 10) environment?
I confess, the question title suggest a "too broad" question, but here me out first... I am only interested in verifying my findings in that regard.
All the following situations have the following in ...
1
vote
1
answer
428
views
What are the limitations of WinSock2 sockets within threads?
I've run into some strange behavior on an application I'm developing in C using the windows API.
Im trying to implement a closed connection server-client interface. However, for whatever reason ...
4
votes
4
answers
181
views
Would it be possible to abstract multi-threading ability for programs not originaly designed for such?
Would it be feasible to provide (or further) multi-core threading ability for programs that weren't originally designed for such?
And doing so by creating a "virtual" CPU core (or for i7's with ...
1
vote
1
answer
121
views
Develop Windows based application with 1/10th milisecond precision
I want to develop a Windows based application that would interface with external hardware using serial communication. The hardware would in turn relay back the feedback to the application. This entire ...
-1
votes
2
answers
127
views
Detecting keyboard "callbacks" directly from a keyboard not from a operating system
So, I am making a pure 2D shooter in Unity, and I was thinking about cheats a little bit (Yes, I know that nobody is going to play my game but anyway).
I was wondering if you can get pressed keys ...
5
votes
3
answers
395
views
Fastest way to generate (machine wide) unique 64 bit timestamps on Windows
Here are some of the characteristics of my problem:
I must generate unique 64 bit timestamps across processes on a single machine. I am very much limited to those 64 bits. This seems to rule out ...
-1
votes
1
answer
199
views
Design Unstoppable Service
I have developed a Windows Service to prevent user from using the camera on group of computers. However, I am trying to find a way to ensure the service is never deleted. I tried CanStop in .NET ...
3
votes
1
answer
231
views
Distributing library which internally using COM library
I would like to create a dll library that will be loading in runtime. The library'll be using internally COM objects with MTA flag. The library will be created in main thread.
So I have question:
...
3
votes
0
answers
102
views
Windows: Have a dedicated MS Visual C/C++ toolchain
For a CI system and the developers in our team, I'd like to be able to use a specific version of a MSVC toolchain for native Windows builds.
The goal is to have a well-defined consistent build-...
2
votes
1
answer
1k
views
How can I sync a git repository with directories from another machine?
My team and I use a git repository to keep track of our projects. This repository is cloned in our Windows PCs that we use to develop most of our software. However, we also use another machine ( a ...
1
vote
1
answer
226
views
Will Windows handle any memory not freed as well as threads not closed? [closed]
If I had an application that pretty much had a "fail-safe" as in, if I need to terminate the application quickly and not free the malloc'd memory, or close the threads that are running, would Windows ...
1
vote
1
answer
2k
views
Is ASP.NET-Core Hosted-Services supposed to replace Windows Service?
Some time ago when there were no ASP.NET-Core hosted-services the choice for a service-type application was pretty clear, it was a Windows Service. However, recently I've noticed that at least some ...
0
votes
1
answer
26
views
How do cloning drives, system recovery points and virtual machines compare for system state recovery?
I want to setup a dedicated test computer that can be restored to a specific system state. The reason for that is that the software tests to be executed on that machine include the installation ...
1
vote
1
answer
378
views
Installation process for a modern complex Windows Software Installation?
We're trying to re-think the installation process of our software suite and I'm trying to find out what specific pitfalls we're facing without using my/our limited lens of the Windows software ...
0
votes
3
answers
303
views
How to append a chunk of fixed size data to a file and make sure this chunk doesn't get fragmented on disk?
So i want to understand how DBMS implementation works
To give an example :
MySQL implements each tables with its own pages, which are 16KB
so each table is a file, and is a multiple of 16KB, ...
-1
votes
1
answer
193
views
Is it a good idea to make common Electron libraries available globally on Windows? [closed]
I build and run many Electron apps on Windows. I noticed that all of them have the same common api files / libraries to run. They all take about 30mb of space.
I'm thinking of installing these files ...
-2
votes
1
answer
69
views
How to identify an organization for license management purposes for an Windows application?
To introduce some license levels (organization, computer, user), I need to pinpoint information that identifies the object (organization, computer, user) without user interaction.
To identify the ...
6
votes
2
answers
646
views
Scalability: Millions of tables vs one big master table and millions of views
We have to migrate an old (million LOC) system from SAP ADS (formerly Sybase) ISAM based (so called free tables) based system to a PostgreSQL database.
The system implements kind of multitenancy ...
1
vote
1
answer
179
views
Best Practices for constantly checking a table
I need to check for the existence of a record in an SQL database. If it exists, create a printer stream and send it to a label printer.
My issue is that I have as many as 20 of these services ...
2
votes
1
answer
202
views
Is there a name for a server/client relationship where the client doesn't request, but will reply to the server's requests?
Disclaimer: I'm sure this has been asked here before, but I haven't been able to find it.
I'm trying to create a system where one central computer (master) can initiate commands on other computers (...
0
votes
2
answers
449
views
How does Gamemaker Create Executables?
How does a Program that is already compiled create standalone .exe files without an apparent compiler? Example game making software like GameMaker that lets you create a game, add all the resources, ...
2
votes
3
answers
2k
views
Can Java applications run on phones (at least android) AND Windows?
Hi all I love stackoverflow so helpful.
Afaik IOS has some security measures that dont let other apps (such as jvm) execute code from your app. Not sure how much this is true.
But anyway, I heard ...
1
vote
2
answers
2k
views
What happen if we never dispose HttpClient, .Net C#?
I'm working on a windows service. Code of windows service is very simple but it has a strange manner!
In windows service I should call a WebApi each 20 seconds and save the result in a SQL Database
I'...
0
votes
2
answers
5k
views
Best way to implement Windows service in C#
I have written a C# service using MVC (No view).
The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it.
...
1
vote
1
answer
53
views
Installing mixed technology desktop application
What are the options for installing an application which uses batch files, python, excel and proprietary software? I developed a command line shell to run fast, repeatable traffic simulations largely ...
2
votes
3
answers
4k
views
High level overview of how printf() works with Windows OS
I asked this question on an IRC channel, sadly I am going around in circles.
I am aiming for a high level overview (but with some technical details if necessary) on how a function such as printf() ...
3
votes
0
answers
184
views
Should I build a custom text editor from scratch or enhance existing ones?
I'm developing a Windows WPF app that needs to edit a certain type of document and I need a highly customized editor to do so:
The text is a transcription of an audio feed, and I need to sync the the ...
1
vote
0
answers
313
views
Inter-system communication design on Windows (C++)
I was wanting to create a program consisting of 3 elements:
A central component with no UI which will work on HTTP traffic and trigger one or more “worker” elements as needed
A monitor component ...
2
votes
1
answer
137
views
Easy way to debug platform-specific issues of non-GUI software on Windows?
I'm maintaining a couple of software repositories (C, C++ essentially) which I want to also run - or let's start with at least build - seamlessly on Windows.
Now, my desktop machine does not have ...
1
vote
1
answer
1k
views
Windows Service with authentication, some UI required
I have to build a Windows Service which requires OAuth2 authentication. The service is intended (like all services should be) to run unattended (no user need to be logged in in Windows). The problem ...