|
The best way is to draw each dialog for each language due to the diferent length of words in different languages (it will be easier to move), and to have string table for each language for specific messages.
to load string:
CString columnName;
columnName.LoadString(DESKDELIVERY_IDS_PAPERPORT_FOLDERS);
--
DESKDELIVERY_IDS_PAPERPORT_FOLDERS - is ID of string in string table(For Each Language must be the same)
--
After this you will have dlls with different languages and same dlls names, better to place them in separate directories, and depending on selected languge copy them to program folder and load.
--
I have done this way in my project.
|
|
|
|
|
Thank u so much for your guidence, Iam also loading the strings like u told, LoadString.
But, here why dont we take same Dialog screen for all languages and only Static text as String_ID ?
Practical problems in text string length in Different languages really needs new DialogBoxes ? ( I have very little knowledge regarding this concept )
|
|
|
|
|
Ofcourse you can use one dialog for all languages, but it is more comfortable to edit form in designer, than you will write case statements for each language calculating size of label, button etc... - its horror if you have big project. Imagine that one of your strings will not fit in one line what would you do? Or imagine that you will need to change some text, in designer it's simply, while with one form you will need to find it in code and set new coordinastes, so if your project is not too big you can use one form, but if big I advice you to use separate forms.
|
|
|
|
|
Krishnatv wrote: 1. how do i get similarly equal meaning string in Japanese or chinese ?
Ask a japanese or chinise persion - E.G. a professional translator.
Krishnatv wrote: iam thinking that i have to take some resource dlls and loading that dlls to client after language selection is made.
That is definitely possible, but your dialog design might not fit one or the other language (e.g. right-to-left issues, the lenght of textes differ and so on).
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: Ask a japanese or chinise persion - E.G. a professional translator.
My Intention is to know any translater tool or software available for language translation .
|
|
|
|
|
We tried different approaches, and decided to make our life easier by using http://www.apptranslator.com[^] from CP's Serge Wautier.
We only translated from english to french, and it worked well.
|
|
|
|
|
|
|
I have been given the following example code but I have no idea how to call from Visual C.
NB I am the Scotweave end of the process.
Essentially I need to know how to post the HTTP request ?
Many thanks for any help.
dave
-------------
Example (ASP)
Example (ASP)
<%@language=Jscript%>
<%
var objSrvHTTP;
var objXMLSend;
objSrvHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP");
objXMLSend = Server.CreateObject("Msxml2.DOMDocument.3.0");
objXMLSend.async = false;
objXMLSend.loadXML ("<request>" +
"<xbnr>001" +
"<xplt>01" +
"<name>StockItem" +
"<type>getStockItemList" +
"StockItem" +
"<stockitem>" +
" <list>XANR" +
" <list>XARTBZ" +
"" +
"");
objSrvHTTP.open ("POST","http://{IP}/{APP}/jsiapi.jsp",false);
objSrvHTTP.send (objXMLSend);
Response.ContentType = "text/xml";
Response.Write (objSrvHTTP.responseText);
%>
The above example will call an existing Jomar process (StockItem.getStockItemList) passing a request XML (blow left). The JSIAPI interface will return a response XML (below right).
<request>
<xbnr>001
<xplt>01
<name>StockItem
<type>getStockItemList
StockItem
<stockitem>
<list>XANR
<list>XARTBZ
<response>
<stockitem>
<row>
<xanr>AGK1
<xartbz>Cashmere Scarf
<row>
<xanr>AGK2
<xartbz>Cashmere Scarf
<row>
<xanr>AGK3
<xartbz>Cashmere Scarf
<xbnr>001
<xplt>01
|
|
|
|
|
Dear all
I write one DLL program which creates one thread.
but when I call AfxBeginThread routine, I find that AfxBeginThread hangs and dont return.
When I trace the code , I find that , in THRDCORE.CPP at following line, my program hangs.
// start the thread just for MFC initialization
VERIFY(ResumeThread() != (DWORD)-1);
VERIFY(::WaitForSingleObject(startup.hEvent, INFINITE) == WAIT_OBJECT_0);
::CloseHandle(startup.hEvent);
at second VERIFY routine my program hangs up and waits for infinite.
I dont know the reason. but if you know please let me know.
Regards
Monhi
|
|
|
|
|
can you show me the code of your AfxBeginThread calling and hte thread function definition(sample is sufficient).
then i can suggest you something.
|
|
|
|
|
this is the line which I call in my program.
m_pMonitorThread_L = AfxBeginThread((AFX_THREADPROC) _LineEventProc, (void*)this);
|
|
|
|
|
how about the thread definition and declaration.
|
|
|
|
|
This Thread is created in one static library file.
static library file is included in one dll.
dll in loaded into another DLL.
DLL is loaded in one application.
I think that because of this consequence of dll loading, I get this error.
I use another scheme and dont get hang problem.
It is :
This Thread is created in one static library file.
static library file is used by one dll.
The dll is used by one application.
I think that MFC setting is not correct.
Regards
|
|
|
|
|
Is this DLL a valid MFC extension DLL?
If not, then you probably shouldn't be using MFC thread creation functions
and instead use the appropriate method:
If the DLL is linked to the multithreaded CRT, use _beginthread()/_beginthreadex()
else use the Windows CreateThread() API.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I have a dll which uses a static library in it . this dll is compiled with MFC support by static library.
A second DLL loads first dll. this second DLL is compiled with MFC support by dynamic link library.
I dont know this settings of MFC is the reason of Thread hang up.
Regards
Monhi
|
|
|
|
|
mahdi_monhi wrote: I dont know this settings of MFC is the reason of Thread hang up.
It's possible. With MFC extension DLLs, you have to use the DLL version of MFC.
It's also possible to mix like you're doing but only with restrictions.
You also need to make sure you've initialized MFC properly in the DLLs.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
i developed a com addin for msword in MFC
i have done the registration issues for it ,and i added a menu item for invoking the addin functionality , so it is registered and working properly for a NEW word document.
the problem occurs when i OPEN an already saved word document, when i click the menu item the famous error message appears "Microsoft office word has encountered a problem and needs to close, we are sorry for the inconvience"
when i work on a new word document i can attach to the word process and debug, but when i work on an opened word document i can attach but the break points are not active
can anyone give me any hint??
thanks alot
|
|
|
|
|
one simple golden rule:
but iam not sure weather it suits for ur application.
if break points are getting disabled, then use some message boxes to localise the problem.
just try it.
you can even redirect the log to a file and observe it offline.
|
|
|
|
|
Dear All
How we can disable task manager for all the users of the system.
I know that we can do it for current user of system by registry. But I want a way to disable task manager for all the users of windows 2000 or windows XP system.
Regards
Monhi
|
|
|
|
|
i think Operating Systems / SysAdmin is the best place, where, this question can be put.
|
|
|
|
|
He wants to do this programmically using C++, not a scripting language. Is that something that is beyond this forum?
Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke
|
|
|
|
|
mahdi_monhi wrote: How we can disable task manager for all the users of the system
why?
Russell
|
|
|
|
|
Is it possible to get hwnd of the running program?
What i need is when someone triggers my app I need to known hvnd of the window from where he called my app!
Thanks
|
|
|
|
|
Will GetNextWindow or GetWindow help you?
- NS -
|
|
|
|