Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [windows]

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

0
votes
0answers
33 views

What is the best way to get directX (2d and/or 3d) to draw in a XAML C++ class?

I'm trying to figure out the best way to draw some plots and I don't even know if I'm asking the correct question. So if I'm not please let me know if I'm not even on the right path. I'm building a ...
-2
votes
1answer
41 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
2answers
421 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
1answer
86 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
1answer
124 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
2answers
177 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, ...
1
vote
3answers
173 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
2answers
223 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
2answers
579 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
1answer
45 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
3answers
540 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() ...
2
votes
0answers
107 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 ...
0
votes
0answers
39 views

First DSP project: Amplify digital audio input on Windows 7 on real-time

I want to learn bit about digital signal processing (DSP) with software. As the introduction to the field, I want to make simple real-time PC microphone amplifier, which amplifies the digital ...
1
vote
0answers
290 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 ...
0
votes
0answers
86 views

How to translate from managed to native class definitions

I have an input file, being the DLL of a C# piece of code, containing managed class definitions. I also have a *.json file, who determines how the conversion should be done. As an example, this is ...
2
votes
1answer
118 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
1answer
168 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 ...
-4
votes
1answer
78 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 ?
2
votes
0answers
668 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 ...
-1
votes
2answers
253 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 ...
5
votes
2answers
2k 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 ...
1
vote
4answers
787 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 ...
0
votes
1answer
224 views

Using A XML as a Directory File To support A file Managing Application

Second Year Software Engineering student here. I want to make a file managing system for a C# notetaking app, every note will be represented by a file and will display a small preview of it, ...
0
votes
1answer
140 views

When working in a multi operating system team, what are some of the pitfalls to bear in mind?

I'm working in a team where there are several different OS present (windows, various linux distributions (Ubuntu, Mint) as well as Macintosh). Projects are passed around and we have already come ...
-5
votes
2answers
117 views

Which applications are developer environments and operating systems coded in?

I have been wondering about this for a while. What applications is programs like visual studio programmed in? But also, where is operating systems like android, ios and windows written in? I just ...
4
votes
3answers
252 views

What happens to multiple parallel tasks running on a server when CPU hits 100% usage?

I am running 10 instances of the same executable where each executable is accessing a different 1/10 chunk of the total data that needs to be processed on a Windows Server 2012 R2. (Intel(R) Xeon(R) 2....
6
votes
2answers
436 views

What is the “yield” functionality in Windows 3.11?

I have read that Windows 3.11 uses cooperative multitasking, which means that the OS does not do process scheduling whenever it wants, but rather the currently running process "yield" the execution to ...
0
votes
1answer
51 views

If I'm explicitly using WCHAR strings in my Windows application, should I use the -W functions rather than the TCHAR #defines?

Basically, TCHAR and the associated macros (_T/TEXT) are only really necessary if you're targeting both ANSI and Unicode, and, like 99.9% of developers out there, the possibility that someone might be ...
1
vote
1answer
391 views

Architecture for Windows 7 Embedded and Windows 10 IoT

I am in the process of refactoring a large application originally written in .NET 2.0, running on an old version of Microsoft's Compact Framework. The idea is to refactor and rewrite the code so that ...
0
votes
1answer
94 views

Windows Services - one Service to rule them all or multiple smaller services?

In our software, we have a windows service that performs all our background processing from sending scheduled SMS to performing backups, (maybe 10 different functions). I am questioning as to what ...
0
votes
0answers
119 views

Is this a reasonable case for increasing my process priority?

I've written a piece of software which uses a keyboard filter to process low level key-presses. Each key event gets analysed, during which time the key is "blocked" - after my code runs, it's then "...
1
vote
3answers
157 views

How can I wait on multiple processes across users?

I have some code in process A that needs to wait until work completes in other processes that can be running simultaneously under multiple users. I'm uncertain what is the appropriate ...
1
vote
1answer
154 views

What's a good robust way to query processes for their help or framework origin especially in Windows?

What's a good robust way to query processes for their help or framework origin, especially in Windows? I've got an automated testing module that queries binaries that fit a special name pattern with -...
1
vote
2answers
156 views

Extracting data from third party program i.e. craft an unofficial API

If got a native application which adds value by for instance analyzing measurement data from measurement programs. Some of them have an API, so I can get their data via IPC. But how can I achieve this ...
3
votes
3answers
629 views

Is it a bad idea to use ProgramData to allow non-admin users to update our program?

I'm working on a Desktop application, and to allow frequent updates without too much hassle, I want to install a simple "bootstrap" application to the "Program Files" directory, and the actual ...
6
votes
1answer
455 views

Low latency TCP sockets in .NET

Is it possible to optimize a .NET application running on a server version of Windows for near-zero latency TCP communication? Or will there always be unpredictable/unavoidable delays? For example, ...
1
vote
1answer
148 views

Secure delete a registry key

On a regular Hard Drive a secure delete of a file is possible by overwriting it, does simply overwriting the registry key is enough to secure delete the key ? If not how I can proceed to secure ...
1
vote
0answers
55 views

Create a Replica of an old PDA from screenshots (windows app) [closed]

I am a junior developer. I want to replicate an old PDA. My goal is to create the same menu in an app so my colleagues and me can go through the menus of the pda from a simulation in the PC. I ...
2
votes
1answer
641 views

How do I build a Linux C project on windows?

I recently completed a C project that uses GTK and OpenSSL. I have native binaries in linux and they run just great. However my new goal is to make as close to native as I can with a build for windows....
2
votes
3answers
152 views

Automatic package distribution system Windows [closed]

I have built a Windows-only desktop application which is composed of two main executables and various configuration files. The two applications are developed in different languages (JS and C++, ...
1
vote
1answer
50 views

Synchronize a Device without Directly Setting Date/Time?

Setup: I have a number of biometric devices, each of which records 24hr-48hr chunks of data that need to be correctly time-stamped with start date of each recording. Each device needs to be connected ...
1
vote
0answers
76 views

Creating an autoupdate for my program and its database

I've already an offline updater as a download but I want to make it automatically. It's a client/server software and a ms sql database. 3 parts have to be updated: update of a proprietary software (...
1
vote
2answers
454 views

Lots of typedefs in windows.h

I am new to programming in the Windows environment. The language I use is C. More specifically, I try to manipulate COM-ports on Windows manually (without special libraries, only WinAPI functions). ...
0
votes
1answer
61 views

Windows Console App vs Service, Part II

Windows Console App vs Service I would like to extend the question at the above post, as the previous answers did a great job of helping me understand the difference between a service and not a ...
0
votes
2answers
112 views

How to wait for a certain amount of time if time functions are not reliable [closed]

How can I manage my code to exactly wait for a certain amount of time (say 10s), if all * time functions on the system are not reliable and return immediately ? Sleep(10000); // Do not sleep for 10s ...
1
vote
1answer
85 views

What would be a decent practice to get unique id for each MACHINE

I'm focusing my question on Windows OS, desktop applications. What would be a decent way to get a unique identification for every machine? obviously there many ways to do that, such as concatenating ...
1
vote
3answers
718 views

Processing queued tasks in parallel?

We have a system that publishes requests for processing into a database table. We also have a scheduled task that runs every minute and looks for pending requests in that table. If a request is found, ...
1
vote
2answers
46 views

Can packet sizes be relied upon in TCP/IP, at least for the first read() call on a connection?

Assume you have a client application which is known to connect to a given IP, and send a fixed size message (of size X = ~dozen bytes) upon connection, and wait for a reply. If you're writing a ...
3
votes
2answers
2k views

Windows batch files (.bat) coding style standard

Is there any standard/encouraged Windows batch file coding style? I would think that if I want my batch files to be easy to read/mantain, I should care about this, but searching the web I found very ...
0
votes
0answers
265 views

Is there a cross-platform way to execute a Python3 script fullscreen?

I'm currently developing a small CLI game in Python for practice. While I can set the shell width and height quite easily, there are lots of different screen sizes in use right now, and I would like ...