|
From: Vlada D. <dj...@im...> - 2002-09-24 07:17:15
|
Tied it and it works. Thanks. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of metalseb Sent: ponedeljak, 23. septembar 2002 19:35 To: DevC++ help Subject: Re: [Dev-C++] ANSI problem > hOldPen=SelectObject(hdc,hPen); //this is where I > get error message Well, SelectObject returns an HGIOBJ pointer, just cast the return value like this : hOldPen=(HPEN)SelectObject(hdc,hPen); And it should compile OK. Note that some compilers do the cast by themselves. This is not the case with MingW. And I think this is *really* better. -- Seb ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |