All Questions

128
votes
11answers
177620 views

How to provide user name and password when connecting to a network share

When connecting to a network share for which the current user (in my case, a network enabled service user) has no rights, name and password have to be provided. I know how to do this with Win32 funct...
94
votes
7answers
183811 views

Adding external library into Qt Creator project

How can I add external library into a project built by Qt Creator RC1 (version 0.9.2)? For example, the win32 function EnumProcesses() requires Psapi.lib to be added in the project to build.
122
votes
16answers
82150 views

Windows threading: _beginthread vs _beginthreadex vs CreateThread C++

What's a better way to start a thread, _beginthread, _beginthreadx or CreateThread? I'm trying to determine what are the advantages/disadvantages of _beginthread, _beginthreadex and CreateThread. Al...
91
votes
14answers
81967 views

Generating a unique machine id

I need to write a function that generates an id that is unique for a given machine running a Windows OS. Currently, I'm using WMI to query various hardware parameters and concatenate them together an...
16
votes
3answers
80878 views

How do I link to a library with Code::Blocks?

C++ GUI Tutorial: undefined reference to TextOut I have the same problem, but I'm new to programming and Code::Blocks, and I want to use the GDI32 library. How can I install it? I'm very confused bec...
78
votes
8answers
38008 views

How to make an OpenGL rendering context with transparent background?

Rendering contexts usually have a solid color on the background (black or whatever, see the image below): I'm wondering if it's possible to setup a window, with no decorations AND with the transpar...
43
votes
18answers
66217 views

How to make thread sleep less than a millisecond on Windows

On Windows I have a problem I never encountered on Unix. That is how to get a thread to sleep for less than one millisecond. On Unix you typically have a number of choices (sleep, usleep and nanosleep...
222
votes
13answers
193943 views

Objective C for Windows

What would be the best way to write Objective-C on the Windows platform? Cygwin and gcc? Is there a way I can somehow integrate this into Visual Studio? Along those lines - are there any suggestions...
41
votes
9answers
72867 views

How can a Windows service execute a GUI application?

I have written a Windows service that allows me to remotely run and stop applications. These applications are run using CreateProcess, and this works for me because most of them only perform backend p...
19
votes
3answers
21314 views

How to change menu hover color

How to change the Hover (mouse over) color of a Windows application menu? Any method in C# ? OR Any way by using Windows API (DllImport) ? See image :

Previous Next