GDI+ and the new operator in MFC

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hi guys, <br/>   I have a few questions concerning GDI+ and MFC 9. First of all, as many of you have come to realize by now, use of the new operator for GDI+ classes in MFC will cause debug build to fail. it will pass in Release build. Yes, i understand its due to the DEBUG_NEW macro. I have tried to use the workaround recommended by Microsoft for overriding the "new" and "delete" operator in GDI+ to overcome it. However, I realize that it simply does not work for VC2008 SP1 ! I already have an MFC program that uses GDI+, and i can use GDI+ without including the header file, <gdiplus.h>, merely by declaring the namespace, as in "using namespace GdiPlus". So even when I created a new header file for overriding the GDI+ "new" and "delete", it simply wont work. Im still getting the same compile error of "new" cant take 3 parameters. Can someone using VS2008 SP1 and MFC/GDI+ pls enlighten me on how to do it?<br/> <br/> 2nd, I have been trying to use the new fancy controls which came with VS2008 SP1. I would like to know, if there any licensing cost for using the new Office 2003/7 controls such as ribbon bars, OneNote tab etc?<br/> <br/> 3rd, I wrote a simple dialog program and used the OneNote look for the propertypage, I realize that if I linked to MFC as a static library, It would not be able to work. What appears would be the outlook bar look. The OneNote look can only be achieved if i link to MFC as a shared library. has anyone encountered that? can someone pls advice me on what I did not do write? Im trying to have an MFC ap which can run independently without having to install the MFC redist. Is this possible if I use the fancy Office look?<br/> <br/> Thank you so much for enlightening me. :)

View the full article
 
Back
Top