From: SourceForge.net <no...@so...> - 2006-04-05 14:20:15
|
Bugs item #825438, was opened at 2003-10-17 13:18 Message generated for change (Comment added) made by papadopo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=825438&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: w32api Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Gabriel Radu (linuxgabbe) Assigned to: Nobody/Anonymous (nobody) Summary: In winuser.h BLENDFUNCTION not found. Initial Comment: I am using MinGW-3.1.0-1 which has gcc 3.2.3. Trying to compile CPPUNIT I got an error message saying that BLENDFUNCTION is undefined. I have investigated the problem, and I found the error to be in the win32 heater files, and I also found the following solution to the problem. In the file winuser.h the function mentioned below must be encapsulated in the precompiler directive if as shown below. Other ways the BLENDFUNCTION structure will appear as undefined in the winuser.h file. #if !(defined NOGDI || defined _WINGDI_H) BOOL WINAPI UpdateLayeredWindow(HWND,HDC,POINT*,SIZE*,HDC,POINT*,COLORREF,BLENDFUNCTION*,DWORD); #endif The structure BLENDFUNCTION is declared in the wingdi.h. When you write a win32 program you include the windows.h file which includes both wingdi.h and winuser.h, with wingdi.h being include firs. However wingdi.h is only included in windows.h if "#if !(defined NOGDI || defined _WINGDI_H)" is true, and hence the same precompiler directive is needed for the UpdateLayeredWindow() function form winuser.h. ---------------------------------------------------------------------- >Comment By: Dimitri Papadopoulos (papadopo) Date: 2006-04-05 16:20 Message: Logged In: YES user_id=52414 This seems to have been fixed in current CVS sources. Please reopen if that's not the case. ---------------------------------------------------------------------- Comment By: Dimitri Papadopoulos (papadopo) Date: 2006-04-05 16:20 Message: Logged In: YES user_id=52414 The problem you report has caused modification in some fashion in the official CVS for the given package. The w32api and mingw-runtime official CVS reside in the winsup CVS directory tree for Cygwin. Those package CVS trees are periodically merged into the MinGW CVS tree. If you still find problems then please open a new report. ---------------------------------------------------------------------- Comment By: Gabriel Radu (linuxgabbe) Date: 2003-10-17 13:30 Message: Logged In: YES user_id=495415 Sorry! It seams that this has all ready been reported in bug: 807508. However the bug 807508 dose not contain the solution. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=825438&group_id=2435 |