The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
29 views

x64 assembly clearmem / zeromem

I just started learning assembly yesterday, and the first useful thing I've written is a clearmem function. I'm looking for general feedback regarding my coding of this function, whether there any ...
1
vote
1answer
53 views

std::string/std::wstring template wrapper for Win32 API

I have not completed this but want to make my own template library for wrapping the Win32 API to make it compatible with std::string/std::wstring... Here's a sample of what I've worked with so far. ...
0
votes
2answers
76 views

Speed up SVN backup

The following batch script runs on a Scheduled Task on Windows 7 with a quad core 2.5GHz and 16GB of DDR3. It makes the svn server unavailable for about 10 minutes, so it can produce a 500MB file, ...
1
vote
2answers
90 views

Improving my game code

I made this simple game code. Can you please give me some advice about how can I improve it ? I thought about making the screen blue and the letters yellow can someone explain me how to do that ? ...
3
votes
1answer
39 views

Aid in making a clock code more modular

Can someone help in making this clock code more modular so I will be able to use it in other bigger projects for example: turn into a c function. Here is the code: #include <stdio.h> #include ...
2
votes
1answer
58 views

Would this code cause memoryleaks?

My question is really simple. Does this code cause memoryleaks? If so, where/how/why? HDC hDC, memDC = 0; HBITMAP hBMP = 0; HBITMAP hOldBMP = 0; PAINTSTRUCT PS; HBRUSH hb212121, hb141414, hb070707, ...
0
votes
2answers
98 views

Correct way of using HBRUSHes..?

If I create a brush like so HBRUSH hBrush = CreateSolidBrush(RGB(33, 33, 33)); and then later on, I want to change the color of the brush, how would I do this? I googled a bit and found out that ...
2
votes
3answers
166 views

Is there a faster way to clear the screen?

I'm currently clearing my console window with this piece of code: void clrScr() { COORD cMap = { 0, 3 }; if(!FillConsoleOutputAttribute(hCon, 0, 2030, cMap, &count)) { ...
2
votes
2answers
150 views

C++ code to launch a Windows 8 app

This is my first C++ in many years. It's based on some stuff I found on the internet, including a Microsoft article on a similar topic. But I'm sure there are C++ idioms that might make this better or ...
4
votes
1answer
160 views

Review my file-searching program

It's my first window program. It simply searches for a specified file in the whole computer. File Search.h (header file that contains the prototypes of fileSearcher class methods.) #ifndef UNICODE ...
2
votes
3answers
128 views

Windows DLL Module Class

I am doing a project where I use DLL's as run-time modules or plugins. To do this, I use the Windows LoadLibrary() and FreeLibrary() API calls to call two functions exported by the DLL. I decided to ...
2
votes
3answers
155 views

can this code be any better?

well, I have written a small program that builds an windows application and draws India's flag in the window. I am very new to using Visual C++ and I want to understand if my code can be improved ...
1
vote
2answers
152 views

WriteConsole, Is my solution correct?

Here is the book question: Modify the CatFile function in the program so that it uses WriteConsole rather than WriteFile when the standard output handle is associated with a console. And ...
1
vote
1answer
140 views

Any Suggestions for my C++?

I have the following C++ that I wrote today, it converts a couple of bash commands into windows cmd commands, as well as adding some commands too. This is only my second day programming in C++, so any ...
3
votes
3answers
142 views

Win7 atomic access class

I have a simple atomic access class designed to work with Windows threads. class ScopedLock { CRITICAL_SECTION& lock; ScopedLock(ScopedLock const&); public: explicit ...