Microsoft's well-known operating system. Use this tag for code reviews where the code is targeted specifically for this platform, when no other more specific tags exist.

learn more… | top users | synonyms

5
votes
1answer
56 views

IP Range Port Scanner

I've been working on this project to learn networking and concurrency as well as C++11 practices. I'm just looking for a general code review. ...
13
votes
2answers
412 views

Full C++ Snake game

I managed to finish my approach on the legendary Snake game. You move around with the WASD keys. I would like to hear your opinion and maybe ideas on how I can improve frame rate because now it sort ...
2
votes
2answers
83 views

Hangman game school project

This is a school project and took me a while to write the code. Any help to improve my code is welcome! ...
6
votes
1answer
49 views

ANSI colors cross platform

I am trying to write for both NT and POSIX (my two usual platforms) and have come up with the code below. The clrs code I refer to is apparently from blender build ...
5
votes
2answers
69 views

Scanning for open ports

I made what started out as a web browser but now is a scanner for open ports. I wanted to know if you think this is a realistic or a unreliable tool for port testing. I found some open ports on my ...
4
votes
1answer
76 views

File deletion takes a long time to delete files

I have a script I need to "duplicate" and modify to allow it to delete certain images based on properties I give this app/script. Currently the script just moves/sorts the images into folders based on ...
3
votes
1answer
50 views

Tic Tac Toe dynamically changing board position and score board position

Here is my game logic: Tic Tac Toe - player Vs player Player A (first player to enter his name) is getting 'O' and is starting Players choose the desired spot to put their sign(X or O) using the ...
8
votes
1answer
79 views

Snake game for Windows console

I would apreciate any suggestions on how to make my code better and more efficient. ...
1
vote
0answers
15 views

Server framework

I decided to abstract out some of the code I use in personal projects into a library. In particular, it'd be used primarily for server-side programs, but I don't see any reason it wouldn't work fine ...
0
votes
0answers
49 views

Thread function for server-client connection

edit: This section has not thrown segmentation faults so lets focus on it please. I am working on multithreading a data server application. I am new to multithreading in general. I wrote a version a ...
1
vote
0answers
41 views

Populating a property grid in MFC

We have some code to populate a CMFCPropertyGridCtrl grid with controls that is based on copied samples. We are currently using Visual Studio 2012 but intend to upgrade to VS2015 soon. A typical ...
6
votes
1answer
68 views

Windows CLI locks killer in Python

Some coworkers and I sometimes want to delete folders, only to get the very informative: "Permission Denied" message. I had discovered Handle.exe and Process Explorer to help with this, but the method ...
2
votes
1answer
94 views

DirectX Window Class

After figuring out DXGI, I wrote a class that combines the act of creating a window and its associated swap chain (as well as an OOP approach to messages). The class supports different window modes ...
4
votes
2answers
176 views

Python wrapper for Windows pipes

This is done in the style of a single class, that should work like any other io-based object in Python. Help is much appreciated with anything regarding performance, documentation, or anything else. ...
2
votes
1answer
74 views

C++ class for capturing broadcast window messages

In the Windows operating system, some system events are notified via broadcast window messages. DBT_DEVICEARRIVAL and ...
4
votes
1answer
97 views

Move and rename images into separate folders

Basically, we came up with this task at work. I was wondering if there's a shorter and cleaner way of doing the following in some other language (or even improving what I did with Ruby). We have a ...
4
votes
1answer
88 views

Batch file command looper

Just a fun batch file I have made. I wanted an easy way to loop any arbitrary command several times: loopme.bat ...
1
vote
0answers
58 views

Windows AppLocker extension - Owner rule

I am trying to extend Windows AppLocker behavior to add custom rule which checks owner of executables in Program Files and Windows folders. This would help us patch folders that are writable by ...
1
vote
0answers
62 views

Local branch update script using Git and PHP

I'm using Git and PHP to create an update script which is sync local branch and the master. It checks about new updates, and if yes, it proceeds to the Git pull request and any response got from the ...
6
votes
1answer
74 views

Wormhole - a Windows shim app written in C with no stdlib

My application compiles and seems to work correctly, but this is my first C project so I welcome any criticism. I developed this in Pelles C with no standard lib. Efficiency and optimizations are more ...
4
votes
1answer
102 views

Render/Update game loop

I've just "finished" my second attempt a core game loop, which is a heavily refactored version of my first attempt. My perceived benefits are: Using functors means that the actual loops themselves ...
2
votes
1answer
93 views

Population of bitmap from file to memory

I'm working on simple a 16/24/32-bit bitmap reader for fun, however, the method I am using to go about reading the DIB header seems odd. All this does is read a simple Windows Compatible Bitmap from a ...
4
votes
1answer
97 views

Multipurpose command-line utility to manage a web application

I'm creating a command-line tool which is supposed to work on both Windows and Linux OS. It will be used to manage our application - start, stop, deploy etc. We have it in bash scripts now (and it ...
3
votes
1answer
45 views

MemoryWriter Helper class

I have created this memory writer helper to ease the write into memory process and I want your suggestions regarding it. I am very new to C++ but have 6 years knowledge of .NET languages like VB and ...
6
votes
2answers
380 views

Makefile for C++ OpenGL with GLFW and glad

This is a makefile I wrote to compile a simple OpenGL test project which is going to use the libraries GLFW and the C library glad.c. ...
4
votes
1answer
205 views

Snake console game

I made a simple C++ snake game, and I want some advice from you: what is good, what I have to improve. One main problem is that flipping (which you'll notice if you play it). ...
5
votes
2answers
142 views

Text-based Snake game on Window

How can I improve this game? ...
3
votes
5answers
356 views

Function “between” for “Everything in One Line” library

This is a function to determine if a number is between x and y. It is part of a library of mine called EOL or "Everything in One ...
5
votes
2answers
246 views

Bresenhams line algorithm optimization

Based on these guidelines I optimised Bresenhams line algorithm, it now fits for all kinds of line cases like images a, b, c, d, e, f, g, h show in those guidelines. This is my test.txt input file ...
4
votes
2answers
135 views

Allow certain IP addresses to run a C++ program

I coded an executable program (.exe) that I only want run either from my home computer, our main server, or people in our development team. I have coded logic that will only allow the program to be ...
5
votes
1answer
165 views

Windows Batch Tech Tool

I made this to help new techs be more proficient while they are learning. I know most of it is common knowledge around here. I would also like to point out that I don't really know batch but I am ...
3
votes
0answers
41 views

Recycling Internet Explorer

Is there anything I can do to this code to optimize it to use less resources? ...
2
votes
2answers
257 views

Refactorings on a Win32 Screenshot saving program

Earlier this academic year I had an assignment to take a project I had written outside the context of University and apply a number of refactorings to it. I chose a program I had written a while ago ...
0
votes
1answer
80 views

Program to create list of all English Wikipedia articles

This program will scrape Wikipedia to create a list of all English Wikipedia articles. How can I improve this program as it currently performs very badly performance-wise? On my Internet connection ...
3
votes
1answer
65 views

Virtual Slots Implementation

What I can do to make this code more efficient? It is supposed to be like one of those slot machines where you gamble on it and stuff (like at a casino). ...
3
votes
3answers
253 views

Reading and printing sudoku input

I have seen programs to solve sudoku puzzles but to be honest.. They were badly written. First of all, readability of the program itself was horrible and the code was really long and confusing. So I ...
5
votes
1answer
88 views

Haskell program to turn off computer

This a program I wrote to execute various power-related function on my computer. It accepts one command-line argument that describes what action to take and then performs that action. Usage looks like ...
6
votes
3answers
89 views

Two implementations of file-reading

I work quite a lot with file reading and writing in C/Win32 and I started wondering if my code is completely ugly and how I can improve it. I wrote two simple examples of reading a file, and I wonder ...
1
vote
2answers
107 views

Launching links to a chat room - Invitation Program

This is a program you can compile on Windows. The program is an invitation of a chat system for programmers. Once you press enter, you will open the link with your default Internet browser. You can ...
7
votes
3answers
700 views

“Silly program” for moving the mouse and doing other things

I've made a simple program that moves the mouse and do other silly stuff. I want you to look at it and tell me what can I do better/less space and also what can I add. I want to prank my friends. ...
5
votes
1answer
191 views

Using a TSV text file and map for a Q&A program

The program outputs a menu asking for a new question or to ask a question. If you ask a question, it will search a .tsv text file for the question and return the answer. It will then check a map that ...
6
votes
3answers
764 views

Lemonade stand menu program

This is an assignment given in my C++ programming class. I have one main menu with four other menus branching out from it. I would like to make my code as clutter-free as I can, so please review ...
3
votes
1answer
454 views

Creation of a temp file on Windows

I implemented a test that reads data from temp file on Windows. I originally had an issue that I solved with the help of this answer ...
5
votes
3answers
604 views

“Jolly Jumper” challenge

I'm a C#/Java full-time developer who is trying to pick up C++ purely for educational reasons. I've tried to solve a pretty simple ACM ICPC problem and would love to hear all kinds of criticisms on ...
6
votes
1answer
92 views

File validator configured using XML

I am making an application to check for any files that does not follow a specific pattern defined in a XML file. The application works well, but the source code is not the greatest, and memory ...
7
votes
2answers
232 views

Movie-making script

The purpose of making this code is to copy/paste and run it (and it should run). I'm open to all feedback. ...
3
votes
1answer
210 views

Usage of Interlocked.CompareExchange for deciding whether a property has been changed by another thread

I'm developing a Windows Service that receives data from somewhere and saves it to DB one time per 5 minutes. The Service is multithreaded and I actually got problems when several threads saved data ...
4
votes
1answer
110 views

Recursively searching the Windows Registry

This function is part of a the Registry class that can be found on Google Drive. The class was originally written by Steve McMahon for VB6, but I ported it to VBA ...
3
votes
3answers
329 views

Getting computer info

I was trying to get my computer information and I came up with this code. It is working but I need opinions on how I am doing it. It is my first time to using ...
7
votes
2answers
662 views

How random is this password-generating algorithm?

This code's sole purpose is to create a very random password, using letters and numbers. I think that it fulfills its purpose, but I wonder, could it be done better? I'm not talking about ...