• Forum
  • Windows Programming

Windows Programming

by admin
Welcome to this board!
Welcome to the Windows forum in C++.com! In this forum, users can to talk about any topic related t...
[no replies]
by jdmic
Hi, I'm trying to do something like this... LPVOID pClassObj; if (condition 1) { ...
[1 reply] : But it can't compile ( pClassObj is not a class type ) It won't work ... (by kbw)
CryptUnprotectData append LMEM to plain string
hi, i'm using CryptUnprotectData to decrypt a value in a sqlite3's column crypted with CryptProtect...
[6 replies] Last: like so: tmp.assign(reinterpret_cast<char*>(out.pbData), out.cbData)... (by coder777)
by ruimac
Access a username/password protected url through C++
I'm an individual developer (not a professional developer. I'm a graphic designer who likes to code ...
[3 replies] Last: I have nothing against Curl, it is probably the better solution. but a... (by Computergeek01)
How To Tell When A NIC Has Received An Address
Hi Everyone, What I need is a function\method\process\hook to tell when a specific network inter...
[2 replies] Last: That looks like it might do it. Baring and unforeseen race conditions ... (by Computergeek01)
SYSTEM_POWER_STATUS, BatteryFlag returns 9 when charging.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa373232(v=vs.85).aspx if(msg->message == ...
[3 replies] Last: No... Check if charging: if (pwr.BatteryFlag & 8) { // chargin... (by knn9)
by tec23
Filling structs question
Hi all. This is how I initialize the WNDCLASSEX struct and every other struct WNDCLASSEX wc; wc.cb...
[3 replies] Last: I wouldn't worry too much. In the case of WNDCLASSEX you got WNDCLASSE... (by plexus)
by sambos
replace \ with \\ in string
Hi, I have a file's location stored in a System::String. E.g. String^ str = "C:\Test Folder\Test....
[1 reply] : You shouldn't need to do anything. \\ is just the way you express t... (by kbw)
by tec23
Can't open file with CreateFile function
Hi. I'm using windows xp, and I tried to open the pfirewall.log file in C:\WINDOWS directory, but it...
[2 replies] Last: Thanks Disch now I was able to open the file (by tec23)
new to GTK
Anyone know if it is possible to get GTK running on VS2013? I am new and wanted to learn it H...
[no replies]
GetAsyncKeyState uses all CPU
Hello! I'm a beginner in C++ programming and I want to program a simulator for a little car on a ...
[4 replies] Last: The code I posted is inside of a while-loop that runs all the time. ... (by Disch)
GUI Panels
Hey so for a GUI I'm designing I came up with an idea of having the main window then sort of a conta...
[4 replies] Last: you might want to give ''qt'' a try. especially the things you plan t... (by Darkmaster)
by ntran
Renaming a process
Hi everyone, So I have my application --> myapp.exe As it is running, in the Windows Task Mana...
[1 reply] : IIRC its going to be whatever the name of the process already is. that... (by Little Bobby Tables)
why the static control is 'hided'?
by several reasons i drawed the static control using WM_PAINT at least i can change the textcolor, t...
[2 replies] Last: by some reason, i can't use that message... that msdn doc make me more... (by Cambalinho)
error in message WM_PAINT
i'm trying doing a double buffer in WM_PAINT message for avoid the flickers: case WM_PAINT: ...
[2 replies] Last: you have right.. thanks for correct me (by Cambalinho)
by ntran
GUI Library for windows
Hi, I'm looking for a free GUI library to create proprietary applications. So I cannot use Qt...
[2 replies] Last: Thanks, it's a good option. (by ntran)
EnumDisplayMonitors from HDC
HDC monitorDC = (CreateDC(displayDevices .DeviceName, displayDevices .DeviceName, NULL, NULL)); ...
[no replies]
by tec23
How to detect a UTF-8 file without bom?
I need to open UTF-8 files in a text editor, but don't know how to detect UTF-8 without bom. The WIN...
[1 reply] : bool IsUTF8(const void* pBuffer, long size) { bool IsUTF8 = true;... (by Lyrus)
by tec23
TCHAR array initialization
If I have this TCHAR lpString = TEXT("MainMenu"); Will lpString be null terminated?...
[9 replies] Last: Me and Disch are talking about different things. What's confusing abou... (by knn9)
Work around for using C++ class with extern "C" DLL, class, function overloading, templates
Hello, I've been betting my head against the wall trying to figure out how to be able to use all ...
[8 replies] Last: Thank you kbw for your various answers to my question. -Andrew (by supracharger)
Pages: 123... 7
  Archived months: [aug2014]