|
I can't see the menu image.....i'm using visual c++ 6.0.
|
|
|
|
|
ok... can you just show me the caption of the MSDEV?
eg..MyDlgTestApp - Microsoft Visual C++ - [MyDlgTestApp.rc - IDR_MAINFRAME (Icon)]
- NS -
|
|
|
|
|
MyApp - Microsoft Visual C++ - [MyApp.rc - IDR_MYAPP [Italian (Italy)](Bitmap)]
This is the caption
|
|
|
|
|
I undestand what you mean, but in this way i only import an Icon under Icon folder. I want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours. or i do something wrong?
|
|
|
|
|
vasmvr wrote: want this icon to the toolbar but if i copy to the toolbar it will change in 16 colours.
I am not sure about how to directly use it...
But you can show higher color resolution icons in the toolbar by using an imagelist.
Sorry, I dont have a code sample to show you.
- NS -
|
|
|
|
|
Thanks, you mean to create a bitmap with all my icon and then extract each icon from it?
|
|
|
|
|
You can add icons directly to imagelist
- NS -
|
|
|
|
|
Thank u NS, finally i did. Thank you very much for your help.
-- modified at 3:09 Tuesday 4th September, 2007
|
|
|
|
|
Hi All,
1. We have created a dialog with unicode compilation. In this we have some text boxes or other controls where we don't want to allow to enter any non-english charaters.
Can there is some easy way to set the flag for CEdit, so that it won't allow to enter any non english characters. I don't want to override (MaskEdit) the CEdit. In MBCS build we are able to type only English chars. Non english is converted to ????.
How Windows is managing this Non unicode and unicode windows?
2. Is the support for _MBCS is removed from the Visual Studio 2005.
In non unicode (MBCS) build, in Visual Studio 98, we were able to type the unicode characters, but this seems not to be working with VS 2005
Indian Idol
|
|
|
|
|
You can filter all unwanted input out. You got to handle ENCHANGE Message of the EDIT Box.
Greetings from Germany
|
|
|
|
|
By default VS2005 new projects are set to UNICODE, you need to change this in the project settings for MBCS. The reason for you not being able to see non english characters is probably due to a local setting. Without seeing any code there is not much else I can say to help you.
|
|
|
|
|
I want a unicode version and in same dialog Some Edit Boxes shd be unicode enabled
and some edit boxed shd be unicode disabled
|
|
|
|
|
Hi,
I'm using VC++ and ODBC Connection.
I've an exe and related folders in the Machine1.
The exe will be run as a service using srvany.exe in Machine2 and Machine3.
Based on the availablity of network connection I need to stop or proceed the application. I'm getting unhadled exception instead of catching the exception.
if the exe is run from the system where the exe and dlls are, the exception will be caught properly.
Why do this happen?
Just before opening a recordset, i disable and enable the network connection.
While opening, it throws an exception which is not getting caught, though i've given CDBException, CException, default exception block.
In the dbcore.cpp, it goes to the catch block of Open() from where TROW_LAST is called and writes these trace messages.
State:08S01,Native:11,Origin:[Microsoft][ODBC SQL Server Driver][DBNETLIB]
State:01000,Native:10054,Origin:[Microsoft][ODBC SQL Server Driver][DBNETLIB]
General network error. Check your network documentation.
ConnectionWrite (send())
The hierarchy is like this CRecordset->CMyRecordset->CTableRec.
The CMyRecordset::Open() will check for network availability before calling CRecordset::Open().
The network availablity is checked using:
SQLRETURN nReturnVal = ::SQLGetConnectAttr(m_hdbc,SQL_ATTR_CONNECTION_DEAD,
(SQLPOINTER&nConnectionStatus,sizeof(SQLINTEGER),NULL);
switch (nReturnVal)
{
case SQL_SUCCESS:
case SQL_SUCCESS_WITH_INFO:
bStatus = (BOOL) ((nConnectionStatus == SQL_CD_TRUE) ? FALSE : TRUE);
break;
default:
bStatus = FALSE;
break;
}
bStatus is always 1, irrespective of network connection.
How do i check it or how do i handle the unhandled exception?
Thanks & Regards,
Sanju
|
|
|
|
|
Hi,
we want to give multi language support to our product.
Any best suggestions and guidelines please,
iam thinking that i have to take some resource dlls and loading that dlls to client after language selection is made.
help me in these cases
1. how do i get similarly equal meaning string in Japanese or chinese ?
|
|
|
|
|
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.
|
|
|
|