Hi All, I want to create a window project, which has a vertical menu like follow: Menu Query Save Delete Form A display data area form A(B..) Form B Form C Could you help me? Thank you very much
Papais
Hi All, I want to create a window project, which has a vertical menu like follow: Menu Query Save Delete Form A display data area form A(B..) Form B Form C Could you help me? Thank you very much
Papais
How can I convert byte[] to string. Plsz help me soon Thanks all.
Papais
I have used SetWindowText()
at OnInitDialog()
function of each pages but it does not success.
Papais
I have a Property Sheet, I add 5 page in to the sheet. I want to change page name at runtime. Please help me. Thanks a lot,
Papais
for (i = 0; i < 8; i++) { if (level == i) { for (j = 0; j < level; j++) { if ((j+1) mode 2 <> 0) cout<<"STAGE ", j," :"<Papais
Hi, I need to change menu caption while the app is running. Please help me. Thanks
Papais
I have one sheet which is inherited CPropertySheet, I have added 3 page (inherit CPropertyPage) in to the sheet. How to set caption text in each sheet? I used SetWindowText and SetDlgItemText but not success Thanks.
Papais
in older program, I used resource dll to load resource French. but now, I don't want to use dll. I want to use string table to support multilingual. use "String Tables" instead of creating a new set of Dialogs for each supported language. String Tables are to support multiple languages. Ex: I have created 2 stringtables (French and English): // 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 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_CREATE "Create" END #endif // English (U.S.) resources // French (France) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) #ifdef _WIN32 LANGUAGE LANG_FRENCH, SUBLANG_FRENCH #pragma code_page(1252) #endif //_WIN32 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_CREATE "Crée" END #endif // French (France) resources InitDialog function: CButton *pButtonName = (CButton *)GetDlgItem(IDC_CREATE); //create a button with ID: IDC_CREATE m_LoadString.LoadString(IDS_STRING104); //Load stringtable pButtonName->SetWindowText(m_LoadString); // Set button text When I compile, button name is Create (Load English Stringtable) Could you tell me how do I load button name is Crée (Load French Stringtable) Please show me a solution to solve it. Thanks a lot
Papais
This is my solution but I don't know how to implement this solution. Please send me a example about it Thanks a lot
Papais
brahmma wrote:
What have you done till now and what is that you are unable to do?
Former my program, I used dll to load resource French. but now, I don't want to use dll. I want to use string table to support multilingual. use "String Tables" instead of creating a new set of Dialogs for each supported language. String Tables are to support multiple languages. I have created 2 stringtables (French and English): // 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 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_ABOUTBOX "&About TestStringTable..." IDS_TEST "This is test about dialog load string table" IDS_CREATE "Create" END #endif // English (U.S.) resources //French: // French (France) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA) #ifdef _WIN32 LANGUAGE LANG_FRENCH, SUBLANG_FRENCH #pragma code_page(1252) #endif //_WIN32 // String Table // STRINGTABLE DISCARDABLE BEGIN IDS_ABOUTBOX "&About TestStringTable..." IDS_TEST "C'est essai au sujet de table de corde de charge de dialogue" IDS_CREATE "Crée" END #endif // French (France) resources In InitDialog function, I load button text is IDS_CREATE. If English is selected, button text is Create and if French is selected, button text is Crée. Please show me a solution to solve it. Thanks a lot
Papais
In my program, I have 2 string table (1 string table is French, 1 is English). Texts of dialogs are loaded from string table. When I select French, my program will load French string table in to dialogs interface (texts of dialogs are French) and when I select English interface, it will load remaining string table (English String Table) - Texts of dialogs are English. How can I do it?
Papais
I am supporting French for my project (MFC). I have to use "String Tables" instead of creating a new set of Dialogs for each supported language. String Tables are to support multiple languages. Could you tell me more about this, please. Please send me an example Thanks a lot!
Papais
Thanks and Best Regards - Prasad
Papais
prasad_som wrote:
But you can add all project from B to workspace A, isn't it ?
If I add all projects from B to A then A is not clearly by have very many project in A. So I want to compile B through compile a project of A. OR How do you add a workspace (include it's projects) in to another workspace (not add each project). Or How can I compile a workspace from compile another workspace? Thank you all!
Papais
Sorry about my message not clearly. I have 2 workspace: A & B A contain 20 projects (.dsp) B contain 10 projects (10 .dsp) I want to integrate projects of B in to A, when I compile A will compile B. But B is a workspace (.dsw) so I can not insert a workspace in to a workspace. My solution is: Add a new project (.dsp) in to A. When I select compile this new project, compiler will go to compile B (or all projects of B). Folder B is child of folder A Do you have a suggest? Thanks
Papais
I have a workspace A and have many projects (about 25) in this workspace A. I have created 10 new projects (dll project) and want to add in to A but I think workspace is not clearly. So , I don't add 10 new project but add a new project B in to this workspace A and when I compile B, compiler will jump to compile 10 new projects and I receive 10 dlls correlative. please help me!
Papais
`
I have to support French for an application. All the resources of my application are stored in a DLL for French. when select default language, main resource is loaded and if select french, french dll of resource is loaded. Everything is fine as long as no custom controls are used. I get a problem with custom control when load resource dll: In old version, there is a control which managed by ActiveX Control, when i load resource dll (french) -> DONE: CONTROL "",IDC_PREF_DIALOG_HIST, "{E41EAFC4-F536-11CF-93A1-0000C0A61E5A}",WS_TABSTOP,7,7, 397,114 But in new version, this control is edit to Custom Control and manage by a new class (CHistogramCtl). when I use default language (English) => OK. But when I use french language (resource DLL), I could not load dialog which contain this control. CONTROL "Custom2",IDC_PREF_DIALOG_HIST,"Histogram_Ctrl_Class", WS_TABSTOP,7,7,397,118,WS_EX_CLIENTEDGE Any suggestion will be helpful. Thanks in advance, Papais
Papais
I have to support French for an application. All the resources of my application are stored in a DLL for French. when select default language, main resource is loaded and if select french, french dll of resource is loaded. Everything is fine as long as no custom controls are used. I get a problem with custom control when load resource dll: In old version, there is a control which managed by ActiveX Control, when i load resource dll (french) -> DONE: CONTROL "",IDC_PREF_DIALOG_HIST, "{E41EAFC4-F536-11CF-93A1-0000C0A61E5A}",WS_TABSTOP,7,7, 397,114 But in new version, this control is edit to Custom Control and manage by a new class (CHistogramCtl). when I use default language (English) => OK. But when I use french language (resource DLL), I could not load dialog which contain this control. CONTROL "Custom2",IDC_PREF_DIALOG_HIST,"Histogram_Ctrl_Class", WS_TABSTOP,7,7,397,118,WS_EX_CLIENTEDGE Any suggestion will be helpful. Thanks in advance,
Papais
I have a problem when add a string into string table with ID bigger than 61446. For example: in resource.h: #define IDS_STRING_TEST 61446 When I build WIN32 Dynamic Link Library (VC++ 6.0), I get the following error: C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.rc (120): error RC2151 : cannot reuse string constants, 61446(0xF006) - "Test" already defined. Cannot add 61446(0xF006) - "an unnamed file". But when I build a Dialog-Based Application, it's ok Could any one tell me why? Thank in advance.
Papais
Thank you for your idea. I will try coding with it. Please send to me if you have any good ideas. Thank you very much!
Software Engineer