|
Try something like this
CFont *pFont = new CFont();
pFont->Create(..)
m_editcontrol.SetFont(pFont);
make sure that you have access to pFont always so you can delete it at the end.
Regards,
Sandip.
|
|
|
|
|
No way. This discussion is deviating way too much in a wrong direction. See here[^]
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
SandipG wrote: I had done something similar for devnagari font.
We are talking about Unicode.
So, if the application is Unicode aware, then I don't think that he will need to set a particular font to the control in order to use it. If the application cannot handle Unicode, setting the font alone can't change the fate of the app. I still bet that his app is Unicode unaware.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Yes since we are talking about UNICODE so there is no need to set the font.
Can you tell me then what exactly is the problem.
|
|
|
|
|
Dhiraj kumar Saini wrote: Yes since we are talking about UNICODE so there is no need to set the font.
Then why were you discussing on that with Sandip, if you knew that already?
Either ways, answer my questions:
1. Have you installed the Unicode languages that you want your app to support on your computer?
2. If yes, have you confirmed that you are able to type and paste those characters into notepad?
3. If yes, are you doing a Unicode build of your app? Yes/No/You don't know? If you don't know, which version of VS are you using?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Well its installed on my system.
Yes I am able to copy and paste the japanese characters in notepad.
Yes I am doing _UNICODE build.
I am using Microsoft Visual STudio.net 2005
Hope i have answered ur questions.
Now what to do.
|
|
|
|
|
What is under the "Preprocessor definitions"? Is the _MBCS property being inherited automatically?
Under the "Linker" node, click on "Advanced" and say me what's there on the "Entry Point" field. Is that empty?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hi Rajesh,
I installed language pack and prepared a trial UNICODE application.
Even though i have language pack installed i was not able to see japanese font in text box.
When i paste the japanese string it shows some square boxes.
After that i did this
CFont* pFont;
pFont = new CFont();
pFont->CreateFont(
20,
0,
0,
0,
FW_NORMAL,
TRUE,
FALSE,
0,
DEFAULT_CHARSET ,
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_SWISS,
_T("MS Gothic"));
m_Edit.SetFont(pFont);
And now i can paste japanese as well as chinese strings in the text box.
I am not sure why this is the behavior.
Regards,
Sandip.
|
|
|
|
|
Not that I'll be able to guess and "point out" what exactly would cause this. Normally, you don't have to set the font manually as you are using Unicode.
I don't know your version of VS, so I'll take VS 6.
1. Install the Unicode languages on your system that you would like your app to handle.
2. Create a new project, I'll take the simplest MFC dialog.
3. Drag an edit box on the dialog.
4. Go to the project settings and reach the C/C++ tab. Replace _MBCS with _UNICODE .
5. Reach the "Link" tab. Select "Output" in the category combo box. Leave the base address empty and set wWinMainCRTStartup as the Entry-point symbol for your app.
6. Build and run the app. It must now handle any Unicode language that is installed on your machine.
Works?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: I don't know your version of VS, so I'll take VS 6.
Yes it is VS6.0
Rajesh R Subramanian wrote: 2. Create a new project, I'll take the simplest MFC dialog.
3. Drag an edit box on the dialog.
I did same thing.
Rajesh R Subramanian wrote: 4. Go to the project settings and reach the C/C++ tab. Replace _MBCS with _UNICODE.
Done...
Rajesh R Subramanian wrote: 5. Reach the "Link" tab. Select "Output" in the category combo box. Leave the base address empty and set wWinMainCRTStartup as the Entry-point symbol for your app.
This is a must without this you get linker error.
Rajesh R Subramanian wrote: 6. Build and run the app. It must now handle any Unicode language that is installed on your machine.
Tried pasting Japanese string but it shows only square boxes.
One thing i noticed is wordpad / msword will automatically change the font to MS Gothic when you paste the japanese string. And with notepad unless you change it manually to MS Gothic you cant see the Japanese strings..
Regards,
Sandip.
|
|
|
|
|
SandipG wrote: Tried pasting Japanese string but it shows only square boxes.
Japanese characters themselves look like small squares. Are you sure they are not Japanese characters? Nah, just kidding.
Multilingual computing can be a pain at times. I am not sure what causes this behavior, even after doing a Unicode build and having the appropriate languages installed. Never happened to me. If I find a clue, I'll let you know too.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
SandipG wrote: And with notepad unless you change it manually to MS Gothic you cant see the Japanese strings..
Huh? How did I miss this? There's no such thing that you should be doing. I never had to do any such thing. You paste Unicode and that should be pasted and displayed properly right away. Sounds very strange to me.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Rajesh R Subramanian wrote: There's no such thing that you should be doing.
Is it ?? May be i don't know. Didn't try it before??
I saw the behavior in msword and wordpad sp tried in notepad and worked
Regards,
Sandip.
|
|
|
|
|
Under the Preprocessor definitions i had the entries
WIN32;_DEBUG;_WINDOWS;
After that i added on my own _UNICODE
So the new Preprocessor Definitions are
WIN32;_DEBUG;_WINDOWS;_UNICODE
and as far as Entry Point field is having wWinMainCRTStartup
Thats it
|
|
|
|
|
Is that rich edit you are talking about? Which version of rich edit control are you using?
I am sure it must at least work with Normal CEdit control. No luck with CEdit too?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Can you just copy and paste the contents of your RC file here? The entire contents. You must close the project and then you can open the rc file with any standard text editor.
I'm too curious about this case and I'll see how far I can go to solve it.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
The code of rc files is
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#include ""afxres.h""\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
"#define _AFX_NO_OLE_RESOURCES\r\n"
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
"\r\n"
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n"
"#ifdef _WIN32\r\n"
"LANGUAGE 9, 1\r\n"
"#pragma code_page(1252)\r\n"
"#endif //_WIN32\r\n"
"#include ""res\\ChatApp.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
"#include ""afxres.rc"" // Standard components\r\n"
"#endif\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME ICON "res\\online.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOG 0, 0, 235, 55
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About ChatApp"
FONT 8, "MS Shell Dlg"
BEGIN
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
LTEXT "ChatApp Version 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX
LTEXT "Copyright (C) 2004",IDC_STATIC,40,25,119,8
DEFPUSHBUTTON "OK",IDOK,178,7,50,14,WS_GROUP
END
IDD_LOGIN_DLG DIALOGEX 0, 0, 405, 183
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Live2Support Executive Login:"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
CONTROL 189,IDC_STATIC_BACK,"Static",SS_BITMAP,0,1,263,182
EDITTEXT IDC_EDIT_SITEID,146,56,89,14,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_LOGIN,146,73,89,14,ES_AUTOHSCROLL
EDITTEXT IDC_EDIT_PWD,146,90,89,14,ES_PASSWORD | ES_AUTOHSCROLL
CONTROL "",IDC_CHECK_SAVEPWD,"Button",BS_AUTOCHECKBOX | BS_FLAT | WS_TABSTOP,146,109,9,10
CONTROL "",IDC_CHECK_SECURE,"Button",BS_AUTOCHECKBOX | BS_FLAT | WS_TABSTOP,146,120,10,10
DEFPUSHBUTTON "L&ogin",IDC_LOGIN,147,140,52,14,BS_FLAT
CONTROL "",IDC_EXPLORER2,"{8856F961-340A-11D0-A96B-00C04FD705A2}",WS_TABSTOP,264,1,140,181
PUSHBUTTON "&Signup",IDC_SIGNUP,46,164,50,14
PUSHBUTTON "&Contact",IDC_CONTACT,172,164,50,14
END
IDD_MAIN_DLG DIALOGEX 0, 0, 424, 370
STYLE DS_SETFONT | DS_FIXEDSYS | DS_CENTER | WS_MINIMIZEBOX | WS_CAPTION | WS_SYSMENU
CAPTION "Live2Support"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
CONTROL "&Online",IDC_RADIO_ONLINE,"Button",BS_AUTORADIOBUTTON | BS_FLAT,314,3,36,10
CONTROL "O&ffline",IDC_RADIO_OFFLINE,"Button",BS_AUTORADIOBUTTON | BS_FLAT,366,3,37,10
CONTROL "List1",IDC_LIST_VISITORS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,2,34,421,132
PUSHBUTTON "&View Details",IDC_DETAILS,58,173,50,14,BS_FLAT | WS_DISABLED
PUSHBUTTON "A&ccept",IDC_ACCEPT,111,173,50,14,BS_FLAT | WS_DISABLED
PUSHBUTTON "&Busy",IDC_DENY,164,173,50,14,BS_FLAT | WS_DISABLED
PUSHBUTTON "&Invite",IDC_INVITE,217,173,50,14,BS_FLAT | WS_DISABLED
PUSHBUTTON "&Delete",IDC_DELETE,270,173,50,14,BS_FLAT | WS_DISABLED
PUSHBUTTON "&Join",IDC_JOIN,323,173,46,14,BS_FLAT | WS_DISABLED
LTEXT "&Proactive Pop URL :",IDC_STATIC,5,197,70,8
EDITTEXT IDC_EDIT_PROPOPUP,76,194,164,14,ES_AUTOHSCROLL
CONTROL "Op&en in Same Window",IDC_CHECK_NEWWIN,"Button",BS_AUTOCHECKBOX | BS_FLAT | WS_TABSTOP,242,196,85,10
PUSHBUTTON "&Send",IDC_SENDPROPOPUP,330,194,50,14,BS_FLAT | WS_DISABLED
LTEXT "www.nitin.co.in",IDC_STATIC_SITE,21,1,106,10,SS_CENTERIMAGE,WS_EX_RTLREADING
LTEXT "Nitin4040 (3120)",IDC_STATIC_CSR,140,2,108,10,SS_CENTERIMAGE
GROUPBOX "",IDC_STATIC,0,164,423,26
GROUPBOX "",IDC_STATIC,1,187,422,25
LTEXT "Site:",IDC_STATIC,5,2,13,10
GROUPBOX "",IDC_STATIC,1,349,421,20
PUSHBUTTON "&Get FootPrints",IDC_BUTTON_FOOTPRINTS,3,173,52,14,BS_FLAT | WS_DISABLED
CONTROL 183,IDC_STATIC_LOCK,"Static",SS_BITMAP | SS_CENTERIMAGE | NOT WS_VISIBLE,407,355,10,8
LTEXT "",IDC_STATIC_STATUS,7,356,350,9
PUSHBUTTON "I&PBlocking",IDC_BUTTON_IPBLOCKING,372,173,48,14,WS_DISABLED
LTEXT "Online Operator(s)",IDC_STATIC_MAIN,1,314,61,12
COMBOBOX IDC_COMBO_CSRS_MAIN,65,313,81,15,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT_MSGtoCSR_MAIN,156,313,171,14,ES_AUTOHSCROLL
PUSHBUTTON "Send &Message",IDC_SENDMSG_MAIN,332,313,53,15
GROUPBOX "",IDC_BTNS_GRPBOX_MAIN,1,325,421,25
PUSHBUTTON "Preferences",IDC_BUTTON_SOUNDDLG_MAIN,8,336,50,14
PUSHBUTTON "Vie&w Message",IDC_VIEWMSG_MAIN,68,337,50,14
PUSHBUTTON "C&ontrol Panel",IDC_CONTROLPANEL_MAIN,132,340,50,14
PUSHBUTTON "&Transcripts",IDC_TRANSCRIPTS_MAIN,200,338,50,14
PUSHBUTTON "&LogOut",IDC_BUTTON_LOGOUT_MAIN,261,339,50,14
PUSHBUTTON "&All Visitors",IDC_BUTTON_ALL_VISITORS,1,19,47,16
PUSHBUTTON "C&hats Only",IDC_BUTTON_CHATS_ONLY,48,19,47,16
END
IDD_VISITOR_DETAILS_DLG DIALOGEX 0, 0, 425, 95
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
LTEXT "URL :",IDC_STATIC_BACK,8,26,20,8
LTEXT "http://www.nitin.com/chatpage.htm",IDC_STATIC_URL,34,26,153,8
LTEXT "Browser :",IDC_STATIC,296,25,30,8
LTEXT "Netscape 2.3",IDC_STATIC_BROWSER,359,26,53,8
LTEXT "OS : ",IDC_STATIC,295,35,17,8
LTEXT "Windows 2000",IDC_STATIC_OS,323,35,50,8
LTEXT "Refere :",IDC_STATIC,8,35,28,8
LTEXT "Ashok Jhunjhunwaala",IDC_STATIC_REFERE,38,35,151,8
LTEXT "Screen/Colors :",IDC_STATIC,175,44,50,8
LTEXT "True Color 24 bit",IDC_STATIC_SCREEN,228,44,53,8
LTEXT "Java :",IDC_STATIC,295,44,20,8
LTEXT "Yes",IDC_STATIC_JAVA,323,44,13,8
LTEXT "Country :",IDC_STATIC,8,64,36,8
LTEXT "India",IDC_STATIC_COUNTRY,52,64,115,8
LTEXT "Region :",IDC_STATIC,176,64,29,8
LTEXT "Arunchal Pradesh",IDC_STATIC_REGION,211,64,66,8
LTEXT "City :",IDC_STATIC,295,64,17,8
LTEXT "Mexico city",IDC_STATIC_CITY,323,64,56,8
LTEXT "GMT +/- UserTime :",IDC_STATIC,7,45,66,8
LTEXT "05:30",IDC_STATIC_TIME,83,45,74,8
LTEXT "Country Language :",IDC_STATIC,7,54,67,8,SS_CENTERIMAGE
LTEXT "English US",IDC_STATIC_LANGUAGE,384,44,34,8
GROUPBOX "Visitor Details",IDC_STATIC,1,0,422,92
LTEXT "System/Browser Info : ",IDC_STATIC,8,73,75,8
LTEXT "IP Host (ISP) :",IDC_STATIC,8,83,64,8
LTEXT "Spectranet-ISP-11-131.spectranet.com",IDC_STATIC_ISP,93,73,291,8
LTEXT "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.3",IDC_STATIC_SYSBROWSER,78,83,301,8
LTEXT "Visitor Name :-",IDC_TRANSCRIPT,8,8,48,9,SS_ENDELLIPSIS
LTEXT "Dhiraj Kumar Saini",IDC_STATIC_VISITOR_NAME,61,8,97,10
LTEXT "Visitor Email :-",IDC_STATIC_VE,175,8,46,8
LTEXT "dheerajkumar_79@hotmail.com",IDC_STATIC_VISITOR_EMAIL,229,8,115,8
LTEXT "Custom Informations:-",IDC_STATIC_CI,8,17,73,8
LTEXT "Static",IDC_STATIC_CUSTOM_INFORMATION,87,17,327,8
LTEXT "Currency :",IDC_STATIC,175,54,41,8,SS_WORDELLIPSIS
LTEXT "Rupees",IDC_STATIC_CURRENCY,224,54,64,8
LTEXT "Language :",IDC_STATIC,341,44,38,9
LTEXT "Hindi",IDC_STATIC_COUNTRY_LANGUAGE,79,54,28,8
LTEXT "Population :",IDC_STATIC,295,54,39,8
LTEXT "Static",IDC_STATIC_COUNTRY_POPULATION,340,54,77,8
END
IDD_CHAT_DLG DIALOGEX 0, 0, 421, 337
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
CONTROL "Spell C&heck",IDC_SPELL_CHECK,"Button",BS_AUTOCHECKBOX | BS_FLAT | WS_TABSTOP,6,282,54,10
COMBOBOX IDC_COMBO_CRS,110,281,111,140,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
COMBOBOX IDC_COMBO_PUSHURLS,276,281,139,140,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
EDITTEXT IDC_EDIT,5,296,356,21,ES_MULTILINE | WS_VSCROLL
PUSHBUTTON "&Send",ID_SENDMSG,363,296,54,14,BS_FLAT
PUSHBUTTON "Close Chat",IDCLOSECHAT,363,4,54,14,BS_FLAT | NOT WS_TABSTOP
GROUPBOX "",IDC_STATIC,2,149,418,171
CONTROL "",IDC_TRANSCRIPT,"RichEdit20A",ES_MULTILINE | ES_READONLY | WS_BORDER | WS_VSCROLL | WS_TABSTOP,5,154,414,120
LTEXT "&Push URLs:",IDC_STATIC,230,282,38,8
LTEXT "&Responses:",IDC_STATIC,69,282,38,8
LTEXT "",IDC_STATIC_STATUS,1,323,403,11,0,WS_EX_STATICEDGE
GROUPBOX "",IDC_STATIC,2,0,417,19
LTEXT "00:00:00",IDC_STATIC_TIME,325,6,30,8
LTEXT "",IDC_EMAIL_STATIC,179,6,102,8
LTEXT "Email:",IDC_STATIC,159,6,20,8
LTEXT "Visitor's Name:",IDC_STATIC,6,6,47,8
LTEXT "",IDC_STATIC_NAME,53,6,102,8
CONTROL 183,IDC_STATIC_LOCK,"Static",SS_BITMAP | SS_CENTERIMAGE | NOT WS_VISIBLE,406,325,10,8
GROUPBOX "",IDC_STATIC,1,126,418,23
PUSHBUTTON "Vie&w Message",IDC_VIEWMSG_CHAT,104,132,56,15
PUSHBUTTON "&Chat Transfer",IDC_CHATTRANSFER_CHAT,177,132,56,15
PUSHBUTTON "&Transcripts",IDC_TRANSCRIPTS_CHAT,250,132,56,15
LTEXT "Online Operator(s):",IDC_STATIC,3,117,67,11
EDITTEXT IDC_EDIT_MSGtoCSR_CHAT,152,115,205,14,ES_AUTOHSCROLL
PUSHBUTTON "Send Message",IDC_SENDMSG_CHAT,361,114,56,15
COMBOBOX IDC_COMBO_CSRS_CHAT,69,115,78,14,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
END
IDD_POPUPDLG DIALOGEX 0, 0, 182, 40
STYLE DS_SETFONT | WS_POPUP
EXSTYLE WS_EX_TOOLWINDOW | WS_EX_STATICEDGE
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
LTEXT "",IDC_MYSTATIC,42,8,135,23,SS_NOTIFY | NOT WS_GROUP
CONTROL 186,IDC_PICTURE_LOGO,"Static",SS_BITMAP,0,0,37,39
END
IDD_CSRMSG_DLG DIALOGEX 0, 0, 217, 126
STYLE DS_SETFONT | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Message from Support Operator"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,84,107,50,14
EDITTEXT IDC_EDIT1,6,7,204,92,ES_MULTILINE | ES_READONLY | NOT WS_BORDER,WS_EX_STATICEDGE
END
IDD_BROWSERHOSTDLG DIALOG 0, 0, 427, 303
STYLE DS_SETFONT | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Live2Support"
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "",IDC_EXPLORER1,"{8856F961-340A-11D0-A96B-00C04FD705A2}",WS_TABSTOP,7,7,413,289
END
IDD_DLG_SOUNDS DIALOGEX 0, 0, 190, 183
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Live2Support: Preferences"
FONT 8, "MS Shell Dlg", 0, 0, 0x0
BEGIN
CONTROL "&Default",IDC_RADIO_DEFAULT,"Button",BS_AUTORADIOBUTTON | WS_GROUP,8,81,39,10
CONTROL "&None",IDC_RADIO_NONE,"Button",BS_AUTORADIOBUTTON,46,81,33,10
CONTROL "&Custom",IDC_RADIO_CUSTOM,"Button",BS_AUTORADIOBUTTON,84,81,39,10
PUSHBUTTON "&Test",IDC_BUTTONTEST,133,77,50,14
PUSHBUTTON "&Browse",IDC_BUTTON_BROWSE,133,94,50,14
CONTROL "&Automatic Start on Windows Start Up",IDC_CHECK_AUTORUN,
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,122,164,10
CONTROL "&Enable Spell Check",IDC_CHECK_SPELLCHECK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,136,164,10
LISTBOX IDC_LISTEVENTS,6,9,175,65,LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
DEFPUSHBUTTON "OK",IDOK,26,166,50,14
PUSHBUTTON "Cancel",IDCANCEL,114,166,50,14
EDITTEXT IDC_EDIT_FILENAME,8,95,122,14,ES_AUTOHSCROLL | NOT WS_TABSTOP
LTEXT "&Sounds",IDC_STATIC,8,0,99,8
GROUPBOX "Others",IDC_STATIC,7,111,176,53
CONTROL "Al&ways On Top",IDC_CHECK_ONTOP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,13,150,164,10
END
IDD_GET_FOOTPRINTS DIALOGEX 0, 0, 424, 105
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
EXSTYLE WS_EX_RIGHT
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
GROUPBOX "GetFootPrints Details",IDC_STATIC,0,0,419,102
CONTROL "",IDC_LIST_GETFOOTPRINTS,"SysListView32",LVS_REPORT | LVS_SINGLESEL | LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP,3,10,413,81
END
IDD_GETFOOTDLG DIALOG 0, 0, 186, 95
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "OK",IDOK,129,7,50,16
PUSHBUTTON "Cancel",IDCANCEL,129,26,50,16
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "Live2Support Inc."
VALUE "FileDescription", "Live2Support! Hosted Live Chat Service"
VALUE "FileVersion", "1, 0, 0, 1"
VALUE "InternalName", "l2s"
VALUE "LegalCopyright", "Copyright (C) 2007"
VALUE "OriginalFilename", "l2s.EXE"
VALUE "ProductName", "Live2Support Operator"
VALUE "ProductVersion", "1, 0, 0, 5"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 228
TOPMARGIN, 7
BOTTOMMARGIN, 48
END
IDD_LOGIN_DLG, DIALOG
BEGIN
TOPMARGIN, 1
END
IDD_MAIN_DLG, DIALOG
BEGIN
RIGHTMARGIN, 402
BOTTOMMARGIN, 354
END
IDD_VISITOR_DETAILS_DLG, DIALOG
BEGIN
RIGHTMARGIN, 380
BOTTOMMARGIN, 77
END
IDD_CHAT_DLG, DIALOG
BEGIN
RIGHTMARGIN, 394
BOTTOMMARGIN, 332
END
IDD_POPUPDLG, DIALOG
BEGIN
RIGHTMARGIN, 170
VERTGUIDE, 128
BOTTOMMARGIN, 39
END
IDD_BROWSERHOSTDLG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 420
TOPMARGIN, 7
BOTTOMMARGIN, 296
END
IDD_DLG_SOUNDS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 183
TOPMARGIN, 7
BOTTOMMARGIN, 180
END
IDD_GET_FOOTPRINTS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 417
TOPMARGIN, 7
BOTTOMMARGIN, 98
END
IDD_GETFOOTDLG, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 179
TOPMARGIN, 7
BOTTOMMARGIN, 88
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// WAVE
//
IDR_WAVE_CSRMSG WAVE "res\\intcom.wav"
IDR_WAVE2 WAVE "res\\ringcb.wav"
IDR_WAVE_CHATREQUEST WAVE "res\\ringin2.wav"
IDR_WAVE_NEWMSG WAVE "res\\nmes.wav"
IDR_WAVE_NEWVISITOR WAVE "RES\\newvisit.wav"
/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//
IDB_LISTICONS BITMAP "RES\\listicons.bmp"
IDB_BITMAPLOCK BITMAP "RES\\lock_icon_copy.bmp"
IDB_BITMAP1 BITMAP "RES\\BITMAP1.BMP"
IDB_BITMAP_LOGO BITMAP "RES\\Resize-of-penguin1.bmp"
IDB_BITMAP_LOGINBACK BITMAP "RES\\LoginBack.bmp"
/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//
IDC_CURSOR_HAND CURSOR "res\\linkhand.cur"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDR_TRAYMENU MENU
BEGIN
POPUP "Tray"
BEGIN
MENUITEM "Show &Dialog", ID_TRAY_SHOWLDG
MENUITEM "&LogOut", ID_TRAY_LOGOUT
MENUITEM "E&xit", ID_TRAY_EXIT
END
END
IDR_CHATEDIT_MENU MENU
BEGIN
POPUP "ChatRichEdit"
BEGIN
MENUITEM "&Copy", ID_COPY
MENUITEM "&Select All", ID_SELECTALL
END
END
IDR_VLIST_MENU MENU
BEGIN
POPUP "VisitorListMenu"
BEGIN
MENUITEM "&View Details", ID_VLIST_DETAILS
MENUITEM "&Accept", ID_VLIST_ACCEPT
MENUITEM "&Busy", ID_VLIST_BUSY
MENUITEM "&Invite", ID_VLIST_INVITE
MENUITEM "&Delete", ID_VLIST_DELETE
END
END
IDR_SPELLEDIT_MENU MENU
BEGIN
POPUP "SpellEditMenu"
BEGIN
MENUITEM "Undo", ID_SPELLEDITMENU_UNDO
MENUITEM SEPARATOR
MENUITEM "Cut", ID_SPELLEDITMENU_CUT
MENUITEM "Copy", ID_SPELLEDITMENU_COPY
MENUITEM "Paste", ID_SPELLEDITMENU_PASTE
MENUITEM "Delete", ID_SPELLEDITMENU_DELETE
MENUITEM SEPARATOR
MENUITEM "Select All", ID_SPELLEDITMENU_SELECTALL
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//
IDD_BROWSERHOSTDLG DLGINIT
BEGIN
IDC_EXPLORER1, 0x376, 160, 0
0x0000, 0x0000, 0x004c, 0x0000, 0x4014, 0x0000, 0x3093, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x004c, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001,
0x0000, 0xd0e0, 0x0057, 0x3573, 0x11cf, 0x69ae, 0x0008, 0x2e2b, 0x6212,
0x0008, 0x0000, 0x0000, 0x0000, 0x004c, 0x0000, 0x1401, 0x0002, 0x0000,
0x0000, 0x00c0, 0x0000, 0x0000, 0x4600, 0x0080, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0
END
IDD_LOGIN_DLG DLGINIT
BEGIN
IDC_EXPLORER2, 0x376, 160, 0
0x0000, 0x0000, 0x004c, 0x0000, 0x15b4, 0x0000, 0x1e63, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x004c, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001,
0x0000, 0xd0e0, 0x0057, 0x3573, 0x11cf, 0x69ae, 0x0008, 0x2e2b, 0x6212,
0x0008, 0x0000, 0x0000, 0x0000, 0x004c, 0x0000, 0x1401, 0x0002, 0x0000,
0x0000, 0x00c0, 0x0000, 0x0000, 0x4600, 0x0080, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0001, 0x0000,
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_ABOUTBOX "&About ChatApp..."
IDS_FIRSTSERVERNAME "live2support.com"
IDS_LOGIN "/w-login.php?loginid=%s&stid=%s&pwd=%s"
IDS_ALLONLINE "/wn-allonlineu.php?nadminid=%s&nsid=%s&nvar=Y"
IDS_URL_INIT_DETAILS "/w-param.php?stid=%s&nvar=Y"
IDS_CSR_QUERYSTATUS "/w-mrefresh.php?sid=%s&adminid=%s&action"
IDS_CSR_STATUS_ONLINE "/w-mrefresh.php?sid=%s&adminid=%s&action=lgon"
IDS_CSR_STATUS_OFFLINE "/w-mrefresh.php?sid=%s&adminid=%s&action=lgof"
IDS_RESPONSE "2271340b9e32ca0cb0<fld>169.254.143.61<fld>16<fld>Chat Request<fld>0:05:49<fld>Delete<fld>Busy<fld>Invite<fld>Pro-Pop<fld>/<fld>ppc<ln>1242440b9e31d972dd<fld>169.254.143.61<fld>28<fld>In Site<fld>0:06:05<fld>Delete<fld><fld>Invite<fld>Pro-Pop<fld>/<fld><blk>admin<fld>sales<blk>sound1<blk>"
IDS_LOGIN1 "/login.php?stid=3120&loginid=nitin4040&pwd=nitin4040"
IDS_FIRSTVIRDIR "/cpn"
END
STRINGTABLE
BEGIN
IDS_VISITORDETAILS "/wn-lmudets.php?csesid=%s&nvar=Y"
IDS_POPURL "/w-prop.php?csesid=%s&prop=A&popwin=%s&ppurl=%s"
IDS_ACTION "/wn-action.php?action=%s&csesid=%s&sid=%s&adminid=%s"
IDS_SENDMSGTOCSR "/w-admsg.php?adid=%s&action=save&admsg=%s&adminid=%s&sid=%s"
IDS_VIEWMSG "/w-admsg.php?action=dsp&snd=p&adminid=%s&sid=%s"
IDS_VIEWMSG30 "/w-admsg.php?action=dspall&adminid=%s&sid=%s"
IDS_EMPTYLOGIN """Empty Username or password field"""
IDS_L2S "Live2Support"
IDS_REMOVE "remove"
IDS_INVITE "cinvt"
IDS_DENY "refuse"
IDS_GET_PUSHURLS_CRS "/w-amespc.php?adminid=%s&sid=%s"
IDS_ONCHATREQUEST "/w-adc.php?csesid=%s&ipaddr=%s&adminid=%s&sid=%s"
IDS_SEND_CSRMSG "/w-amessub.php?say=%s&csesid=%s&adminid=%s&sid=%s"
IDS_GETCHAT_TEXT "/w-achats.php?uname=&adminid=%s&csesid=%s&ipadd=%s&sid=%s&lastnum=%s"
IDS_VISITOR_TYPING_STATUS "/w-otype.php?csesid=%s&stat=&sid=%s"
END
STRINGTABLE
BEGIN
IDS_BLOCK "blockip"
END
STRINGTABLE
BEGIN
IDS_TRANSCRIPTS_URL "/w-browser.php?loginid=%s&stid=%s&adm=%s&opurl=transcript"
IDS_CONTROLPANEL_URL "/w-browser.php?loginid=%s&stid=%s&adm=%s&opurl=control"
IDS_CHATHISTORY_URL "/w-browser.php?loginid=%s&stid=%s&adm=%s&opurl=vchathist&ipadd=%s"
IDS_TRANSFER_CHAT "/w-ctransf.php?csesid=%s&adid=%s&sid=%s&adminid=%s&action=trans"
IDS_CSR_TYPING_STATUS "/w-otype.php?csesid=%s&stat=otype&sid=%s"
IDS_LOGOUT "/w-adminout.php?adminid=%s&sid=%s"
IDS_VISITORNAMEMAIL "/w-browser.php?csesid=%s&loginid=%s&stid=%s&opurl=namemail"
IDS_STR_MAINDLGSTATUS "Total Visitors: %d Number of Chats: %d"
IDS_STR_MAINDLGSTATUS_ZERO
"Total Visitors: 0 Number of Chats: 0"
IDS_STR_FOOTPRINTS "/w-lmfprint.php?csesid=%s"
END
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\ChatApp.rc2" // non-Microsoft Visual C++ edited resources
#include "afxres.rc" // Standard components
#endif
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
|
|
|
|
|
Dhiraj kumar Saini wrote: GROUPBOX "",IDC_STATIC,2,149,418,171
CONTROL "",IDC_TRANSCRIPT,"RichEdit20A",ES_MULTILINE | ES_READONLY | WS_BORDER | WS_VSCROLL | WS_TABSTOP,5,154,414,120
Save a copy of your RC file for backup and then replace the RichEdit20A with RichEdit20W and try building the app after this. I know it may sound nasty to edit the .RC file manually, but try it. Let me know the results.
BTW, you did not answer my other question. Is your app at least able to handle Unicode as far as normal CEdit control is concerned?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Actually when i copy some japanese text and paste it in a CEdit edit box it gets displayed.
Since my application is a chat application so when I click send button to send it the the client through server and at the same time get diplayed in the chat message window which is a CrichEdit control as u have seen its not showing as japanese in the rich edit control nor at the client end.
Well I will change the RC file wait.
I will tell u the answer
|
|
|
|
|
I have made the change in the rc file. But still it is not displaying.
I am entering ハローすべてのボディをどうすればいいのすべてを管理する。 message in the edit box
but it is showing ???????????????????????????.
On button click of send messagae i am calling a function for encoding into UTF8.
I think this might be an error.
|
|
|
|
|
I have given u the feedback but u have not replied.
|
|
|
|
|
Dhiraj kumar Saini wrote: I have given u the feedback but u have not replied.
So what?! There is a limit to which someone on the internet might try to help you and I believe that you know it too.
As a last measure, you could email me your project and I may give it a try. mfc AT aol DOT in
Please understand that if I choose to look at it, then I may take my own time to analyse it. I am doing this in your interest and do not rely solely on ME to solve your technical problems. You are definitely doing something wrong somewhere and try finding it out to fix it.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
ok Thanks I will try my level best.
|
|
|
|
|
Hello , is there anyway that I can hold an array of structs that have their own arrays other than creating a new class
somewhere in the typedef.h ...
typedef struct mystruct
{
CStringArray aName1;
CStringArray aName2;
CArray <int> aVal1;
CArray <int> aVal2;
}MY_STRUCT;
somewhere in the header of my MyDoc.h...
#include "typedef.h"
CArray<my_struct> m_MyStructs;
somewhere in the header of my MyDoc.cpp...
MY_STRUCT a;
...
m_MyStruct.Add(a);
</my_struct></int></int>
This code returns error that "=" operator is private and can't be accessed!
Thanks
PS-Oh I got that I can'tuse >< around my type specifier because it will be assumed as a tag so I use [] instead
somewhere in the typedef.h ...
typedef struct mystruct
{
CStringArray aName1;
CStringArray aName2;
CArray [int] aVal1;
CArray [int] aVal2;
}MY_STRUCT;
|
|
|
|
|
Could you report the exact (complete) error message?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|