Crashed when GDI32.lib in Service mode

Win32 Programming


  • 1. How to separate real mouse events from ones injected by mouse_even
    Hello! Is there any method for a regular application to separate real mouse events from ones injected by mouse_event()/SendInput()? If you know more then one method, please let me know about all of them. Thanks in Advance, Efim
  • 2. how to use gdi32 and gdi+ on the same picture ?
    Good Morning for all. First i 'm escusing myself for my poor English (i'm french). I have a seriously problem. I do a programm in visual basic 6 which use gdi+ api. However, i need to use a gdi32 function in picture created with gdi+. So, i need use gdi32 api and gdi+ api on the same bitmap loaded in memory. How i can do ? Thanks a lot Lo -- Lo
  • 3. icon problem
    Hello, I'm trying to draw an icon in a view. First I used the simple gdi and I did like this : pDC->DrawIcon(rect_icon.left,, hIcon); and it was ok. Then I changed to used the gdi+ and I do like this : HICON hicon = myIcon; Bitmap bitmap(hicon); graphics->DrawImage(&bitmap, rct.GetRight() , rct.GetTop() , 32, 32); it draw the icon but the quality is really bad, it looks like the AntAliasingMode is on. I've tried to change the option like using SetSmoothingMode and SetPixelOffsetMode but it changed nothing, I can't have the same quality of image as I have with the DrawIcon fonction. Can anyone help me ? Thanks in advance, David
  • 4. Tiff Saving Questions
    Hopefully somebody can point me in the right direction here. I have a scanning application that saves files to Tiff format. Either at compressed or uncompressed settings. It may save multiple files at first. Then it takes all of those files and saves them to a multiple page tiff file. This second save, only saves to compressed format. How do I save it to uncompressed format, but still be able to save it to a multiple page document? Is this done with an array (one for the compression setting, and one for the multiple frame setting) of EncoderParameters? -- Thanks, Clarence Klopfstein PH: 513-528-6660 Fax: 513-528-3470
  • 5. Filled CustomLineCaps don't draw
    Hello, I would like to ask for a help with custom line caps. I create a graphic path with GdipCreatePath(fillModeAlternate, nativePath); than I add a rectange GdipAddPathRectangleI(nativePath, -3, 0, 6, 8); and finally I create a line cap with GdipCreateCustomLineCap(nil, nativePath, LineCapCustom, 0, nativeCap) This way it works fine and creates a stroked rectangular line cap. But if I want to have a filled cap and use GdipCreateCustomLineCap(nativePath, nil, LineCapCustom, 0, nativeCap) then the result is NotImplemented and nothing is drawn. Thanks, Michal

Crashed when GDI32.lib in Service mode

Postby d2lsZGNob2k » Sat, 09 Oct 2004 11:55:02 GMT

I have a program which has been included the GDI32.lib and Comdlg32.lib.
A class in the program uses the function of them. 
When running in normal mode, there is no problem.
But when running in windows Service mode, when opening several instance,
The program crashed. 
After the test we found that when we removed the code about these two 
library, the
program is ok.
Can any body tell me what's the problem? 
We are using VC6.0 and in 2000 and XP platform

Re: Crashed when GDI32.lib in Service mode

Postby Vipin » Sat, 09 Oct 2004 15:05:03 GMT

Could be some object leaks.

Return to Win32 Programming


Who is online

Users browsing this forum: No registered users and 89 guest