Questions tagged [windows]

Questions involving programming on Microsoft Windows technology, including its API.

Filter by
Sorted by
Tagged with
-4 votes
1 answer
116 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. ...
user avatar
  • 1
0 votes
2 answers
121 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, ...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 11
0 votes
1 answer
156 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 ...
user avatar
  • 103
0 votes
0 answers
52 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 ...
user avatar
  • 109
2 votes
2 answers
480 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 ...
user avatar
3 votes
2 answers
985 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 ...
user avatar
1 vote
3 answers
145 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. ...
user avatar
3 votes
2 answers
163 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 ...
user avatar
  • 141
1 vote
1 answer
141 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 ...
user avatar
-3 votes
1 answer
140 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) ...
user avatar
2 votes
2 answers
227 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 ...
user avatar
  • 61
2 votes
0 answers
51 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 ...
user avatar
-2 votes
2 answers
80 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 ...
user avatar
0 votes
1 answer
139 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 ...
user avatar
2 votes
1 answer
185 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 ...
user avatar
  • 215
1 vote
1 answer
248 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 ...
user avatar
  • 129
4 votes
4 answers
177 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 ...
user avatar
1 vote
1 answer
115 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 ...
user avatar
-1 votes
2 answers
124 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 ...
user avatar
5 votes
3 answers
354 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 ...
user avatar
-1 votes
1 answer
167 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 ...
user avatar
3 votes
1 answer
186 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: ...
user avatar
3 votes
0 answers
94 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-...
user avatar
  • 131
2 votes
1 answer
892 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 ...
user avatar
1 vote
1 answer
198 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 ...
user avatar
  • 121
0 votes
1 answer
1k 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 ...
user avatar
  • 2,496
0 votes
1 answer
24 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 ...
user avatar
  • 109
1 vote
1 answer
223 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 ...
user avatar
  • 7,295
0 votes
3 answers
241 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, ...
user avatar
-1 votes
1 answer
142 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 ...
user avatar
  • 119
-2 votes
1 answer
58 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 ...
user avatar
  • 215
6 votes
2 answers
600 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 ...
user avatar
1 vote
1 answer
120 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 ...
user avatar
  • 19
2 votes
1 answer
181 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 (...
user avatar
  • 129
0 votes
2 answers
301 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, ...
user avatar
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 ...
user avatar
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'...
user avatar
0 votes
2 answers
4k 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. ...
user avatar
  • 111
1 vote
1 answer
52 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 ...
user avatar
  • 19
2 votes
3 answers
3k 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() ...
user avatar
3 votes
0 answers
165 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 ...
user avatar
1 vote
0 answers
310 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 ...
user avatar
2 votes
1 answer
131 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 ...
user avatar
  • 2,400
1 vote
1 answer
840 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 ...
user avatar
-5 votes
1 answer
98 views

How was memory allocated in Windows 9x compared to Windows 10 ?

I heard rumours that when a new program is executed in Windows 9x, that app had to specify how much memory it needs to allocate beforehand. How is this different in Windows 10 ?
user avatar
  • 1,110
3 votes
0 answers
1k views

How has Windows maintained binary compatibility for over 20 years? [closed]

Modern Windows 10 can run binaries that were compiled on 20 years ago for Windows 95 or NT4, however I imagine that the libraries that the code is calling would have changed massively since then. I ...
user avatar
0 votes
2 answers
776 views

Should i be using My own MVVM implementation?

Hi there i've been into MvvM and modular design the last few days, i find it really nice design principle that be scaled and maintained really well. But here is the thing, i see there are multiple ...
user avatar
6 votes
3 answers
8k views

Easy Licensing enforcement techniques for C++ Program in Windows

I am developing software in Window 10 and Visual Studio in C++. I would like to restrict the use of the software to a set of computers, by implementing a license control. My thought is to query a ...
user avatar
  • 225
3 votes
4 answers
3k views

Windows compatibility with Unix/Linux newline "\n"

A follow-up to Difference between '\n' and '\r\n'. It's been few decades since the schism was introduced. Nowadays, when documents are being exchanged over the internet, typically ...
user avatar

1
2 3 4 5
7