Force to use RichEdit 2.0

Hello,
Can someone tell me how to force compiler to use RichEdit 2.0+ for unicode
app?
I used a CHARFORMAT struct with unicode, it turns out the CHARFORMAT is
still map to CHARFORMATA because

#define _RICHEDIT_VER 0x0100

is defined in AFXWIN.H. and in RichEdit.h, it has

#ifndef _RICHEDIT_VER
#define _RICHEDIT_VER 0x0210
#endif

Thus, RichEdit1.0 is used really. I tried to redef _RICHEDIT_VER to 0x0210,
but it causes other problem. I would like to have rich edit to be able to
display Asian characters. What is the proper way to make use of
RichEdit2.0+? Please help.
Thanks,

XL



0
xuelong (8)
1/9/2004 8:43:23 PM
vc.mfc 33608 articles. 0 followers. Follow

1 Replies
1836 Views

Similar Articles

[PageSpeed] 25

Hello

You have to modify your stdafx.h file
Just after the "#include <afxwin.h>" line, insert "#undef _RICHEDIT_VER"

example:

#include <afxwin.h>         // MFC core and standard components
#undef _RICHEDIT_VER  // <RICHEDIT.H> will define_RICHEDIT_VER from
0x100->0x0210 (MFC 6) and from 0x0210->0x0300 (MFC 7)
#include <afxext.h>         // MFC extensions
#include <afxcview.h>
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>  // MFC support for Internet Explorer 4 Common
Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>   // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

Rebuild All
Marc.


"XL Zhou" <xuelong@pvtprop.com> a �crit dans le message de
news:O5BmFGv1DHA.2408@tk2msftngp13.phx.gbl...
> Hello,
> Can someone tell me how to force compiler to use RichEdit 2.0+ for unicode
> app?
> I used a CHARFORMAT struct with unicode, it turns out the CHARFORMAT is
> still map to CHARFORMATA because
>
> #define _RICHEDIT_VER 0x0100
>
> is defined in AFXWIN.H. and in RichEdit.h, it has
>
> #ifndef _RICHEDIT_VER
> #define _RICHEDIT_VER 0x0210
> #endif
>
> Thus, RichEdit1.0 is used really. I tried to redef _RICHEDIT_VER to
0x0210,
> but it causes other problem. I would like to have rich edit to be able to
> display Asian characters. What is the proper way to make use of
> RichEdit2.0+? Please help.
> Thanks,
>
> XL
>
>
>


0
1/10/2004 12:20:20 PM
Reply:

Similar Artilces:

CRM 1.2 Spanish -> CRM 3.0 English HOWTO ??
Hi, I have MSCRM 1.2 in spanish. I want to upgrade to 3.0 in english. I already un-installed the 1.2 in spanish and installed on english so it allows the upgrade. But on the checklist pre-installation when checking the database, it complains about the language of the product even if the binaries installed are from the 1.2 english. I need a way to change the language and install 3.0 in english. Thanks Gabrie Don't think there is a "supported" path, but check the OrganizationBase table. I know there is a lanuage code stored in there. Try changing it to 1033 and see what happ...

MSN Bill Pay -- why use it?
For the first time since installing Money 2004 about six weeks ago, I was prompted to view a web-based "demo" of MSN Bill Pay. I went through the entire demo, but it's still not clear to me what it is, how it differs from Money itself, and why I'd want to use it. I've been using electronic payments in Money for a number of years; my bank does not charge me to use this feature. Why would I want to use MSN Bill Pay? Why use ANY bill pay service? I've used automatic payment for almost everything for 20 years now with no problems. Electric+, phones, mortgage, car pay...

Sumif Function #2
Here is my formula: =IF(E2<>E1,(SUMIF($E$2:$E$1000,E2,$BU$2:$BU$1000)+SUMIF ($E$2:$E$1000,E2,$CD$2:$CD$1000)+SUMIF ($E$2:$E$1000,E2,$DA$2:$DA$1000)),0) Is there any way to have add a second criteria for the sumif to function with? Thanks for the help this is gonna work great. >-----Original Message----- >Josh, > >This seems to work. > >First change your formula to >=IF(E2<>E1,SUMPRODUCT(($E$2:$E$1000=E2)*(($BU$2:$BU$1000)+ ($CD$2:$CD$1000)+( >$DA$2:$DA$1000))),0) >make sure everything is still okay at this point. > >Then add second condition >...

Outlook express 6.0
Got message "do you want to compact files". I hit yes, it started, then froze. File folder's are still intact, but most emails are no longer saved. Any idea how to retrieve? The two most common reasons for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More on that below. Why does OE insist on compacting folders when I close it?: http://www.insideoe.com/faqs/why.htm#compact Why Mail Disappears: http://www.insideoe.com/problems/bugs.htm#mailgone About File Corruption: http://...

Force Uninstall
All, A coupla questions . . . Suppose I just want to forcefully uninstall Exchange 2000 from a server, and an org. Currently the uninstall fails because (as mentioned in a previous post) I have users that still show as being on that server, however the store that those users were on is no longer there (because of a disaster). Is there some way to force the uninstall? Another question. I have two healthy clustered machines running currently. Suppose I just remove the object for the old exchange server from the ESM? Assuming I have performed all of the other steps steps (like moving o...

How to print label by using Report Writer?
Hi; Is there any ways to print label by using Report Writer? I want to print some product registration card with serial number on it. I want to print 6 to 8 registration cards on a letter size paper, different serial number printed on each card. Something like the address lable. Can it be done in Report Writer? Kane You can use the Divider tool in the Report Writer to create columns a size the body section to be the height of one label. Use the Page Header and Page Footer sections to set the non-printable areas at the top and bottom of the page. It will take a little trial and e...

Error when migrating data from csv file to crm 3 using scribe
I have been trying to migrate data from a .csv file into MS CRM 3 using scribe. When I test the job after doing my connecting and datalinks it executes properly, however, when I run the job it only does on average 12 successful inserts and 11 failed inserts then gives me an error. The error is :"fatal error. Execution terminated - failuere fetching source rows" when I click on the error info button I get a database error " Error 1005. [22018] SQL call failed. Invalid character value" the details of the message :"source[DataDirect][ODBC Driver]" Could someone...

using validation to autofill cell
hi.. i have an excel sheet that i use validation to choose what i want to fill cell with. what i'd like to do is to autofill another cell based on what i pick from the validation drop down list. i have 2 lists e.g. list1 list2 x 1 y 2 z 3 if from my drop down box i pick x i'd like cell B5 (for example) to show 1 and so on. thanks in advance for any help You can use a VLookup formula to return the matching value when an item is selected. There's information in Excel's Help, and here: http://www.con...

Using a previous version of Money file
After searching through the previous postings and responses, I was unable to find a posting that addressed my issue so here's my posting: After upgrading from 2003 Deluxe to 2004 Deluxe, I did an on-line sync of my accounts, which has been working great for me under 2003 Deluxe. During my first sync, 2004 Deluxe downloaded approx 350 'new' transactions that had already been reconciled, approx 7 months prior. The dates and transaction data matched perfectly, but 2004 viewed them as 'new' and bolded them. This also happened for several other accounts. After tredging thro...

2 Guns 01-05.exe (7/7)
=ybegin part=7 line=128 size=1593914 name=2 Guns 01-05.exe =ypart begin=1497601 end=1593914 �C[=@a=}�/��`�5Ҵ�b��,�'���r�?������/��3NV���q���w�3x��`A���7,$D2=J_SOfu�4p�"��Z&N�褜#-n���̷�@��r�/��5�QҬу��� I͠)?{7@�%��[�ym�z��^�~�:���ڑYdkŝ��� Dx���@3��8�p+�"y��$E�ޓeْ2�b<=}STTY]�=@T9W�6����P�%��C��^o�x+1��c�5[O|N�I�KD xb��1Œ�bz$Ӭk�#⺶H���C:��h��,E�?�\?���~��0볈�j�+���T���ay�$���Y%��-��5���<=}�i+�?O�7�#�m�%V�d��9Bc>Qv_;=}�V��w� ��&�S�F6����3���/;^�n�x��=J���>�$��H���WK�\�-�v�+:dyw�=J��A���n���J-����J�haak�]w���e��Z�f~��O�...

HOW DO I USE A CUSTOM LISTS
i have created a custom lists and now i want to use it in a worksheet. how do i get the cutom list onto the worksheet Type the first item in the list and then copy using the fill handle -- Regards, Peo Sjoblom (No private emails please, for everyone's benefit keep the discussion in the newsgroup/forum) "barry" <barry@discussions.microsoft.com> wrote in message news:E9D6C899-A9FA-425B-BB96-7AF2A77F719A@microsoft.com... >i have created a custom lists and now i want to use it in a worksheet. > how do i get the cutom list onto the worksheet ...

using office scrapbook
I have been using the Scrapbook tool in Word to complete my school reports. I have multiple clips that I've organised, and it is working well. However, I now want to work on these reports on my laptop too. Is there anyway to export, save, transfer the scrapbook on my desktop to my laptop? Maree ...

how to properly create new profile to use with existing pst file
OL 2002 SP3 Win XP HE SP1 *Follow-up to: microsoft.public.outlook* hi, it is possible that my current (default) OL profile has become corrupted. i need to create a NEW profile for troubleshooting purposes and see if it resolves current problems. the most important issue is: how do i create this new profile so that it uses my *current* pst file so that i can have a seamless process and continue where i "left off" in terms of all of the items contained in the *current* pst file, emails, appointments, addresses, etc.? do i just create new profile and tell it to "use *curr...

Using modells
Hello everybody! I would like to change or clear the list of latest used models. The reason is that the list contains modells that dont exist any more. The list arrives every time you are going to create a new workbook. greathings from Harry in Finland -- Novisprogrammerare ...

Generating a schema for a derived class using xsd.exe
I have a class B, defined in B.dll. It derives from class A, defined in A.dll. I want to generate a schema for B using the xsd.exe tool, but xsd.exe complains that it can't find the base class. When I run xsd.exe, passing B.dll as argument, I get the following error: xsd B.dll /type:B Error: There was an error processing 'B.dll'. - There was an error reflecting type 'B'. - File or assembly name A, or one of its dependencies, was not found. The assembly containing the base class (A.dll) is present in the current directory. How can I tell xsd.exe where to fin...

Permanent Failure: Other address status #2
Howdy, I have a customer whose customers are receiving the following email randomly... > The following addresses had delivery problems: > > <user@domain.com> > Permanent Failure: Other address status > Delivery last attempted at Mon, 12 Mar 2007 19:42:42 -0000 My customer server is SBS 2003 Standard, latest Service Packs. How do I troubleshoot this? There is nothing the App/Sys logs near this time line. I have Symantec Mail Security for Microsoft Exchange Server installed as well and that doesnt have any log entries either. Also this response isnt a symantec respo...

forcing user input into cells
howdy all... i'm new to doing stuff with excel have a bit of a background in javascript programming what i'm trying to do is force a user to enter something, anything int a specific cell if the user tries to tab past the cell and leave it blank, i want a error to come up, telling them that they have to enter something befor they can continue on with entry into other cells any help would be much appreciated -Thank -- georgi ----------------------------------------------------------------------- georgio's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=164...

Possibility of use of the Microsoft CRM UI Controls in Customization
There are many dll files in wwwroot/bin directory. Is microsoft planing to expose dlls i.e UI controls for ISV customization later? they have not been exposed yet janet. also no word of any plans to do so "Janet" <jzou@menlogroup.com> wrote in message news:08d701c361ff$84c73b70$a301280a@phx.gbl... > There are many dll files in wwwroot/bin directory. Is > microsoft planing to expose dlls i.e UI controls for ISV > customization later? ...

why? form couldn't refresh when using split form
Dear I got a problem with split form. I am not sure if it's a bug of access 2007. I added a label in my form named "lblFEType" and a section of code like this: Private Sub Form_Current() lblFEType.Caption = IIf(isHandler(Me![PayerNo]), "Import", "Export") End Sub It totally work when I use "Record Navigator Botton"(I am sure if it's the correct call in English version). But it wouldn't work when I jump the record by clicking the datasheet part of the split form. The bindedfield works fine and the data will show correctly, but the label co...

Use Contact List in To: Field
Simple question (but I cannot locate a menu item that gives it to me) ... in Outlook, how do I select an option whereby as I type a name in the To: field of a message the system shows me the entries in my contact list that match? Thanks. Assuming you have OL2003, there are two separate features that nearly do what you want: Auto completion: Go to Tools>Options>E-mail Options>advanced e-mail options, and check "Suggest names while completing to, cc and bcc fields". That will suggest recently used names as you type (NOT all names from your contacts list). To accep...

What can we use as an equivalent to "Sleep()" in vb?
I searched through the archives and there were a few messages discussing this but no actual syntax could be found (at least during 2 searches). Is there any vb equivalent to "Sleep()"? Thanks. :oD On Mon, 17 Dec 2007 07:54:53 -0500, StargateFan <IDon'tAcceptSpam@IDon'tAcceptSpam.com> wrote: >I searched through the archives and there were a few messages >discussing this but no actual syntax could be found (at least during 2 >searches). > >Is there any vb equivalent to "Sleep()"? > >Thanks. :oD Oops, sorry. Accidentally posted to wr...

Setting font properties using function
I want to be able to set the properties of a cell font using a function. I have tried the below but it errors in the function with Error Number: 91 Error Description: Object variable or With block variable not set Anyone not on holiday out there who can help me please! happy new year Rod ------------------------ 'Calling code xlSht.Cells(1, 1).Font = NameFormatType1(255) Private Function NameFormatType1(NmCol As Long) As Excel.Font NameFormatType1.Color = RGB(NmCol, 0, 0) NameFormatType1.Bold = True End Function Try these changes Sub...

Bitmap button question #2
I'm trying to create a bitmap button. Here's what I've done: 1. Added a CStatic control to my dialog. 2. Set it's ID to IDC_BMPBUTTON 3. In the classwizzard, member varialbes tab, created a member variable m_Button, of type CBitmapButton (I had to manually change this from CStatic). 4. In the OnInitDialog(), I've added: m_BitmapButton.LoadBitmaps(IDB_BITMAP1, IDB_BITMAP2, IDB_BITMAP3, IDB_BITMAP4); m_BitmapButton.SizeToContent(); m_BitmapButton.ShowWindow(SW_SHOW); When I run my dialog, the bitmap appears grey. And which ...

Force quit
Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel Closing Word get error message &quot;A file error has occurred. Check your network connections or make sure the disk is properly inserted&quot; Am then required to use force quit. Anybody have solution? Make sure Office & OS X are fully updated. If they are & you still encounter the problem, crashing on Quit is usually the result of one of theses causes: Need to repair disk permissions Damaged preference files Corrupt Normal.dotm template See this page for the respective links in t...

Anyone use MrExcel.com? Just a comment...
Hello all, I'm in and out of this newsgroup from time to time, but occasionally I visit the MrExcel message board. I've been a member for about two years now, and at least 95% of my posts are in response to someone who needs help. Maybe 2 or 3 times I've actually had to ask something, and I've been using Excel since the mid 90's or so (about when it first came out I think). If I HAVE to ask a question, it's generally pretty intense as there aren't that many things I cannot figure out on my own or with the Help files. So, a couple of weeks ago I ran across a po...