|
in Windows, Control Panel > Regional and Language Options > Advanced > Language for non-Unicode programs
It says that 'It does not affect Unicode programs'
But as to my program, if I choose English as the 'Language for non-Unicode programs', everything is fine. my program can show Chinese or Korean both in menus and dialogs. but if I choose Chinese as the 'Language for non-Unicode programs', My program can't display Korean, if I choose Korean, my program can't display Chinese.
So it seems that my program is affected by this setting.
Maybe my program is not a unicode program? I used UNICODE _UNICODE, and I set wWinMainCRTStartup as the entry point. everything seems working.
So where shall I check? I don't want my program to be affected by this Windows setting.
|
|
|
|
|
If you're using Windows CE up to 5.0 then you've simply run up against the 'can't use more than one east asian language' (Chinese, Japanese, Korean) limitation which is built into CE.
It sounds more like XP in which case your problem would likely be with the default code page as I think that's what's being set in the dialog you mention. Somewhere in your code the default code page is being referenced in a conversion from UNICODE to ANSI characters and setting it to non English is messing up one set of characters or the other. I suspect that when the default code page is English Windows can detect Chinese and Korean characters because they're all 'invalid' in the old ASCII range but when it's Chinese the Korean character values look valid. (Beause of CJK shared characters some of them probably are ). To be safe accross Windows systems that default to all 3 languages you'll need to find the conversion that's failing and preferably avoid it altogether. Remember to separate what you see (glyphs from a font) from the code points that are being represented. I find it helps to try and think in code points but that's really difficult if you're looking at your native language. I18n is hard, good luck.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi.
I am trying to create a folder programatically in the all programs of start menu with a dot(.) at the end. But it is ignoring the (.) at the end, and creating the folder without the (.) at the end.
I also observed that the windows itself not allowing to create the folder with (.) at the end.
Pls. help me.
Kishore
|
|
|
|
|
I don't think you can do this, Windows will assumes you have missed off the extension and will simply remove the '.'
Why do yo want to do this ?
|
|
|
|
|
I have a project. The name of the package includes the '.' at the end. For example "A.B.C." . But it is creating the folder "A.B.C" in the all programs of Start menu. The client wants the dot (.) at the end also.
Kishore
|
|
|
|
|
The client may very will want it, but you can't do it unless you have some 'special' non-visible character added to the end of the name.
I don't think you'll be able to do this, also why does the client care if the (.) is there or not ?
Who is going to notice ?
regards,
|
|
|
|
|
The dot is a special character as far as the file system is concerned. It cannot be used in the fashion you desire.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i want to convert WTL coding in to MFC..
is there any way?
please tell...
thanks in advance..
rokini.k
|
|
|
|
|
Rokini wrote: is there any way?
No.
Kevin
|
|
|
|
|
you can basically generate the outer framework like views, dialogs etc using mfc wizard and then incrementally transplant the code.
if you know WTL I think you this process should be easily and pretty straight forward and you should be able to understand the MFC stuff!!! ... I don't think there is any such tool to do this for you!
btw, welcome to MFC you made the smart choice ... ok this is an inside joke someone else who loves WTL and hate MFC...I am sure he will find his way to this page and be horrified!!!
Yours Truly, The One and Only!
|
|
|
|
|
Is the VC++ application multitasking?
If some message comes from outside to application while any function is running, what will happen?
The message processed first or it processed after completion of current function?
Best Regards,
Suman
|
|
|
|
|
A newly created application is single threaded. It means that if you call a lenghty function, no windows messages will be processed (which means that your GUI will not respond until the function finishes). You need to start a new thread yourself to handle that situation.
|
|
|
|
|
Hi
I need some trick/code to perform this operation (Copy all files from a folder to another folder, recursively) in C++.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
SHFILEOPSTRUCT s = { 0 };
s.hwnd = m_hWnd;
s.wFunc = FO_COPY;
s.pTo = "C:\\destinationn\0";
s.pFrom = "C:\\source\\*\0";
s.fFlags = FOF_SILENT;
SHFileOperation( &s );
The key to this api is that the source and destination strings need to be double null terminated.
|
|
|
|
|
hi i have to download file from an url using mfc program. my codeing is downloading fine. but when there is no file in that url, it hangs(url is valid only). how to know if the file exist or not? pls help me.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
What function are you using to do the downloading?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
For download you can use of URLDownloadToFile function did you use of it?
|
|
|
|
|
Hi,
I have capture the handle of running application.How can i minimise the application through application handle.
I used EnumProcesses(),EnumProcessModules() function.
|
|
|
|
|
pther wrote: through application handle.
What do you mean by this ? Do you mean window handle ?
If yes, what is problem using ShowWindow ?
Prasad
MS MVP - VC++
|
|
|
|
|
Send WS_MINIMIZE to that program.
|
|
|
|
|
I created a procedure:
procedure MyProc1(v_Ref_Comp_Id out abc.REF_COMP_ID%type)
is
begin
select ref_comp_id into v_Ref_Comp_Id from abc where ATTRIBUTE_ID = 1;
DBMS_OUTPUT.PUT_LINE('The value is::'||to_char(v_Ref_Comp_Id));
end myproc1;
Now i want to execute this procedure using ADO connection in VC++.I am trying like this-
::CoInitialize(NULL);
HRESULT hRes = pConn.CreateInstance((__uuidof(ADODB::Connection)));
HRESULT hResult;
try
{
if( TRUE != pConn->State == ADODB::adStateOpen )
{
strConn = "Provider=OraOLEDB.Oracle;User ID=ct;Password=matakali;Data Source=rcctrl;";
hResult = pConn->Open(strConn.AllocSysString (),"","",ADODB::adConnectUnspecified);
if(hResult != 0)
return false;
pComm.CreateInstance((__uuidof(ADODB::Command)));
pComm->ActiveConnection=pConn;
ADODB::_RecordsetPtr pRs;
pRs.CreateInstance((__uuidof(ADODB::Recordset)));
int nVal;
pComm->CommandText = "EXECUTE MYPROC1(nVal)";
pComm->Execute();//How can i retrive value in nVal
}
}
catch(_com_error &e)
{
_bstr_t bstrSource(e.Source());
_bstr_t bstrDescription(e.Description());
_bstr_t bstrError(e.Error());
CString err_msg;
err_msg.Format("Error : %ld\nDescription : %s\nSource : %s",
(LPCSTR)bstrError,(LPCSTR)bstrDescription,(LPCSTR)bstrSource );
AfxMessageBox(err_msg);
if(hResult != 0)
return false;
}
catch(CMemoryException *e)
{
e->ReportError(MB_OK);
e->Delete();
return false;
}
Regards,
Pankaj Sachdeva
|
|
|
|
|
dear friends,
what is the difference between WTL and MFC?
when we use MFC?
when we use WTL?
please tell me...
rokini.k
|
|
|
|
|
A quick search gave me this link[^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
use mfc most of the time as in always ... it's pointless to use wtl because of the lack of documentation and support.. you will find a lot more developers who will know mfc vs a few who know wtl
you can walk into any book store and find books on mfc
you can spend all your time developing in wtl only to find out you wasted time and effort when you need to bring new developer up to speed on wtl
this is my personal opinion there is nothing to stop you from using wtl for your own personal projects, but if there are going to be others working on a project pick mfc and forget about it!
the only virtues of wtl is your binary will be smaller...big deal with todays mass storage PCs and mega ram and faster CPUs!
Yours Truly, The One and Only!
|
|
|
|
|
I use MFC all the time and it sucks. I would never use it by choice in any application of substance. I like WTL much better.
Steve
|
|
|
|