Quantcast
Channel: CodeGuru Forums - C++ and WinAPI
Browsing all 583 articles
Browse latest View live

Prevent VK_RETURN from being processed in subclassed edit control.

I have subclassed an Edit control for the purpose of detecting the enter key being pressed then calling a function accordingly. All that part seems to work just fine so far. The problem I am having is...

View Article


hardware ID for PC

i have got hardware id for physic machine by CPU info but when code run on virtual machine , result is same hardware id . My solution by combine UUID and CPU info ,but UUID may be same . because in...

View Article


0xC0000005: Access violation at location 0x00000000f41b1a6e on calling...

I am migrating my WIN32 application to WIN64 application. I have compiled the code for x64 platform. While running this application in debug mode I am getting the error message as "First-chance...

View Article

How to click an item in listview(Win32/C++)

Dear Experts, I am developing an automation tool(C++) for which I need to write program to Click,Doubleclick on the Listview item by using the Handle of the listview control and index of the item....

View Article

[RESOLVED] A little help! WM_PAINT + BMP

Hiho, I just want to put a background image in my app, apparently works well but not, after a few clicks to resize it, my pc slow down, and I do not see the problem or may be my code wrong...accept...

View Article


How to add data by Using Function CreateFile(...)

I try to Create one text File By Using CreateFile(..) Function, I want to add data ( x,y,x) coordinate to file By This way : X Y Z 1 3 8 0 13 11 But when I write code I see Data Like this :...

View Article

winhttp authentication with api key

attempting to program an application that interfaces with an e-commerce site that has a restful api. from what I understand winhttp can do this. but I have no idea where I'm supposed to put the api key...

View Article

ListView_GetItemRect Help

I am new to Windows programming and I am trying to click an item in listview control for that I need to take the rect size of the listview.Can anyone help me regarding ListView_GetItemRect macro. I...

View Article


Microsoft Windows Debug API: enumerating PDB files

*nvm, please delete* :(

View Article


Identify a client in a UDP server

I'm new to UDP so please correct me if I'm wrong. A UDP server doesn't use client SOCKET's (which are unique to every client) in order to receive or send information, but a sockaddr structure (that can...

View Article

Wrong IID_IExtractIcon

Hi, I've implemented IShellFolder and IExtractIcon. In IShellFolder I have the following code Code: STDMETHODIMP CILCShellFolder::GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl,...

View Article

help with winUSB

Hi all, I would really really appreciate some help with winUSB. I wasn't sure where else to post this. I wasn't able to find much help on this topic elsewhere. So, if you know of a better place for me...

View Article

WM_GETMINMAXINFO problem when window is maximized

I want to reduce (by 1 only pixel) the height of a window when it is show maximized. In my window procedure I have the following code in C++: case WM_GETMINMAXINFO: LPMINMAXINFO minmaxinfopunt =...

View Article


Trackbar Position OnClick

Hello, I'd just like to take a few moments to say how surprised I was to find a "semi"-active forum regarding WinAPI, I got interested in it by reading theForger's WinProg tutorial but I was left...

View Article

Identifying physcal USB slot an USB device is attached to

Hi, I have an applicattion in Windows 7 that uses two USB handsets plugged to specific physical external USB slots in a PC (eg: the left side USB slot and the right-side USB slot in a tablet). The...

View Article


reading .pdb debug data

Hi, I am trying to read debug data from a pdb file, specifically the debug data for windows system libraries such as kernel32.dll, where the .pdb was provided by the microsoft symbol store. I have set...

View Article

Overlapped serial loopback

Hi, I have loopback on my serial port and I am trying to send byte via this port and receive it immediately on the same computer. It has to be done overlapped (asynchronously) to send and receive in...

View Article


window on center of screen and fullscreen(on\off)

i have these code for put the window on center of screen: Code: HWND hwndScreen;     RECT rectScreen;     hwndScreen=GetDesktopWindow ();     GetWindowRect(hwndScreen,rectScreen);...

View Article

timers with 1ms of precision

i don't belive that there isn't timers with 1ms of precision, but i can't get any help. and i try search and nothing. please can anyone give me something for start dooing a timer with 1ms of precision?

View Article

web browser compact 7

hey guys, im trying to develop a webbrowser for my windows embedded compact 7 module. my problem is to embed a browser object to a window. i tried using the iwebbrowser2 interface, but probably im doin...

View Article
Browsing all 583 articles
Browse latest View live