|
From: George R. <gr...@us...> - 2005-05-31 18:38:44
|
Can you provide more information about which line creates that error?=20 Usually a compiler error will provide a line number for which line is=20 causing the problem. I presume this problem is in an MFC header some=20 where. ICU overrides the new and delete operators, and a similar definition would = have to be added to UMemory in unicode/uobject.h. George Rhoten IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA http://www.icu-project.org/ http://icu.sourceforge.net/ Ahmed Mugheera <amu...@gm...>=20 Sent by: icu...@li... 05/31/2005 11:10 AM Please respond to icu-support To icu...@li... cc Subject [icu-support] Problem with ICU "new" operator in MFC application Hi All, Im working with ICU 3.2, on Windows XP, using MS VC++ 7. In an MFC application, I've made a LEFontInstance-derived class: class FSFontInstance : public LEFontInstance { public: // Constructor FSFontInstance(FontService* fserv, FSFont* afont, int=20 size); =20 .... }; When i write: LEFontInstance* fsfi =3D new FSFontInstance(fs, f, fsize); I get the following compiler error: error C2661: 'icu=5F3=5F2::UMemory::operator new' : no overloaded function takes 3 arguments When i use the same code in a console application, it builds and works just fine... Can you please help? Thanks, Mugheera ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q22005 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F icu-support mailing list - icu...@li... To Un/Subscribe: https://lists.sourceforge.net/lists/listinfo/icu-support |