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

how use the printer?

i'm trying print a window DC, but seems that i mistake on scale mode between HDC(pixels) and printer(?):( Code: void print()         {             //getting the default printer name             char...

View Article


Does WM_ERASEBKGND validate the area it erases?

When I does something like resizing my Window, a WM_ERASEBKGND message is sent followed by a WM_PAINT message. The WM_ERASEBKGND (default) handler will erase the background, and the WM_PAINT handler...

View Article


Debugging problem

Hi Im trying to debug a Win32 visual program because I have a "invalid pointer crash" but I cannot find it where because stepping over with F10 at a certain point debugging just stops and I cant step...

View Article

Can read REG_SZ but not REG_DWORD value

Hi, I can read REG_SZ values but not REG_DWORD values from the registry. Do I need another type than char* as 5th parameter of the RegQueryValueEx() function if I want to read REG_DWORD value or...

View Article

error LNK2038: mismatch detected for '_MSC_VER'

Error 8 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1800' in EndianConverter.obj C:\Tellumat\ Test Bench\Test Bench Qt\ Test Bench Qt\qtmaind.lib(qtmain_win.obj)...

View Article


Want to show Tool Tips on the buttons that I have placed on title bar

There are two files tester.c and captionButton.c.Please help me. Also please let me know how can I change the image from monochrome to color in it. Thanks in advance. Vineet

View Article

Calculating the real lfWidth value of LOGFONT when lfWidth = 0

Hi, I'm wondering how to calculate what the real value of lfWidth in the LOGFONT structure when it is set to 0. MSDN says that if the value is zero, the digitization aspect ratio is used to determine...

View Article

Are there any Unix Compatible API libraries available for windows 7 x64?

I want to call on the header like #include <sys/wait.h> fork, getpid() etc I am wondering how I can substitute those calls under windows 7 x64. I've a got a library which is called Festival which...

View Article


How load an rtf file into RichEdit

I have been trying to streamin an rtf file that contains an image into RichEdit control. I have implemented the necessary streamin Callback and was able to load the file, but the image have refused to...

View Article


Taskbar not appearing in auto-hide mode when cursor is placed over deskband...

Hi everybody I recently have written a deskband object using this tutorial http://www.codeproject.com/Articles/...nd-Tray-Notifi The problem is that taskbar not appearing in auto-hide mode when cursor...

View Article

How to create deskband objects for taskbar using Delphi XE2?

Hi How to create deskband controls using Delphi XE2? Has anyone tutorial about it?

View Article

How create child window?

I create main window by CreateWindowEx() but I want child window like button. Child window should automatically move when parent window moves. How create it?

View Article

How compute windows size with and without border?

I am working under Windows 8.1; I test window size with border and without border. Horizontal difference is 16, vertical 39. 39 = cyCaption+16; Frame has 8 on all sides? Why cySizeFrame = 4 and...

View Article


[RESOLVED] How init new window with color

One solution is Code: wincl.hbrBackground = CreateSolidBrush(RGB(202, 238, 255)); where WNDCLASSEX wincl is class. This solution is improvident because for each window must be one class. Better is one...

View Article

Sending a string to a window

I would like send a string to a window from a worker thread. i e to display it on it. I got no better idea than sending the pointer and using ::SendMessage, to make sure the pointer wouldn't rot before...

View Article


Binary representation of the character value

We want to create a table in such a way that each character value is represented by a 6 bit binary value if i enter a character it should represent in binary.Can any one help me out in finding logic in...

View Article

How can I bend WndProc of a control?

Hi, the background of my current problem is that I get the standard popupmenu when working with the grid-control from devexpress. If the inline editor is active my own popup-menu is ignored and instead...

View Article


DirectInput8Create

Greetings, we recently had to move away from Legacy JoyPosEx to using DirectInput when we upgraded to Win8. The game controller interface is working well except the first run after a reboot. The call...

View Article

Overwritting in a file

We are having a file. In a file content is. file.txt Voltage 1000 current 100 power 600 amplitude 10 We have opened the file in r+ mode and trying to change the data in 3rd line power 1000 in a file...

View Article

windows c++ noob : builder, make

OK so I'm used to general c++ and java for a a year or 2... now I'm learning visual c++ or winapi programming...just got used to all that typedef redefining done by windows.. some I believe not...

View Article
Browsing all 583 articles
Browse latest View live