Windows Programming (Page 3)

[Win32 API] Drawing screen to client area & draw something on screen
so I have this code to draw screen to client area every 100ms HDC hDC = GetDC(hWnd); Se...
[no replies]
Why does EnumDisplayDevices not output the monitor name?
The if statement prints out "Monitor Name: " but then blank where the name should be. So it appears ...
[no replies]
by Erhy
Shell_NotifyIcon - how to implement timeout
Hello! Normally if I click on an icon in the notification are. The window for the notification clo...
[no replies]
i want to make a program in c++ that automatically copy files to usb
hello friends, i want to make a program in C++, that i can install in my flash drive. only thing tha...
[1 reply] : Do you have anything so far? The code is as simple as "FindFirstFile()... (by Computergeek01)
[C++11 - win32] - about WM_MENUCOMMAND message
if: wParam: The zero-based index of the item selected. lParam: A handle to the menu for the item...
[2 replies] Last: thanks for all. you have right. but i was doing more errors too: case... (by Cambalinho)
Using OLE instead of the standard message loop.
I have recently been forced to learn - mainly copy-and-paste type learning! - a little OLE and windo...
[7 replies] Last: This works for x64 (the ones above do too)... //cl main.cpp /O1 /Os... (by freddie1)
by Erhy
how to initialize one char as TCHAR
hello, I'm confused about characters if TCHAR x = 'รค'; //ae umlaut in German the result x is...
[3 replies] Last: If you use the L your char will always be wide, thus rendering TCHAR()... (by Jaybob66)
Compiler says "error: assignment of read-only location"
I have made a program that uses 3 classes that each do a specific task. The base class is used to de...
[2 replies] Last: looks like you need to guard your headers.... #ifndef FILEFILER_CLA... (by Jaybob66)
USB Flash drive Partitioning
I want to make 2 partitions in usb flash drive. How can a usb can be partitioned using c++, even if ...
[no replies]
Buttons and bad code
I am teaching myself how to program and I was hoping you can help me with the use of buttons and cor...
[6 replies] Last: Easier version of above with standard switch ... //Form3.cpp #inclu... (by freddie1)
by gnerpo
PDCurses Win32a
Hi all, i have a problem with the win32a implementation of pdcurses. I've compiled win32a with code...
[no replies]
Why my simple bector produces the wrong result ?
Hello, I'm a C++ beginner and I'm trying to my program (I copied the code from the book : programmin...
[1 reply] : Note that you sort the vector so I guess 1.4 will be at index 0 and 6.... (by Peter87)
Questions about VC++ 6.0
I've had the CD for this for a while (along with VB 6.0), but have mainly used VB. I know it's old, ...
[7 replies] Last: VB6 isn't really used anymore IIRC. Your best option is to just move a... (by Avilius)
Can you make a button respond differently to right click?
The question was pretty simple but I really couldn't find anything about it. I'm trying to make a ga...
[1 reply] : Are you familiar with Window Subclassing? You can pretty much subvert... (by freddie1)
Asterisks Shapes
I need to make this this shape out (or similar) of asterisks: * * * * ...
[1 reply] : I fixed your code. try it btw you should move this ... (by zoran404)
by Erhy
How to retrieve the name of a resource?
Hello! Have many .WAV files, which I included into the C++ resources. The defines in Resource.h ...
[2 replies] Last: so I created the specific text for .rc and resource.h with own softwar... (by Erhy)
Define a window to be hProcess?
Hello, im having a bit of trouble im working on a simple program that should get a process called: "...
[1 reply] : How about this? #include <iostream> #include <windows.h> using names... (by zoran404)
Makeing a server for a game
I'm making a server for a real-time multiplayer game and need some tips on how to make it as good as...
[4 replies] Last: Ok thanks (by zoran404)
[c/c++ 11 - win32] - how can i detect if the caps lock is activated?
how can i detect if the caps\scrool\num lock is activated?
[2 replies] Last: finally the code works fine: const int AnyKey=257; const int NoKey=25... (by Cambalinho)
[C/C++ 11 - win32] - how can i send a mouse message to another program\window?
i'm doing a program that must simulate a mouse event, but i'm having problems for send the message :...
[3 replies] Last: thanks for all tath ;) (by Cambalinho)
Pages: 12345... 7
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.