|
Then removing the WS_TABSTOP property wasn't enough?
|
|
|
|
|
I want the focus on combobox also, when user presses the tab key on the control previous to the ComboBox. So, problem was that if the focus is on Combobox and user presses the tab key, then it should move to the next control.
Thanks
|
|
|
|
|
Hi
In my system not installed languagepack.when i paste chinese characters in rtf ..
In sending i wrote this code...
m_chattext.GetWindowText(m_Text);
AfxMessageBox(m_Text);
here m_chattext is rtf object.
in messagebox the chinese characters are not displaying..its coming ???? how i can solve this problem ...plz tell...
#sanroop#
|
|
|
|
|
There is no one thing, hence your difficulty in getting this question answered.
Do you understand about Unicode I wonder? You need to compile your application with UNICODE and _UNICODE defined so that AfxMessageBox maps to AfxMessageBoxW, which is capable of displaying Chinese characters if and only if the default system font that it uses, (depends on XP or Vista etc) contains those characters.
Then you need to make sure that you are using wide character variables (wchar_t, TCHAR if UNICODE is defined) to both get the data form the clipboard and pass it to the message box so that you don't loose data along the way. That's if the clipboard is giving you wide character data in the first place. You might have to request a different format, or do conversion from a specific Chinese code page. Do you know about Code pages?
You can see that there is rather a lot going on here already and this may not be the end of the story as you're involving RTF as well. To get a more definitive answer you'll need to give better information on what you already understand and what you're actually doing, a few lines of code would be good, and be prepared to ask a series of smaller questions to get all the info you need.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
A non-Unicode program can display Chinese text in MBCS way. But two premises are required:
1. The system should be Chinese character set installed (for viewing with IE and other text applications).
2. The text buffer to output or to input in the source code should not contain a second character set (for example a mix of Chinese and Japanese). Otherwise when you are about to save the .cpp file to compile, VC++ prompts and forces you to save the file in Unicode.
Maxwell Chen
|
|
|
|
|
Indeed but I think in this case 1. is scuppered by the lack of a language pack and 2. can't be gaurenteed because the data is external input form the clipboard. It could contain anything.
Also MBCS is a minefield if you don't already understand Unicode and Code Pages. It's pretty treacherous even if you do
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
The lines last far too long, but the horizontal scroll bar does not show up. I can not reach the "Edit" button to modify the post.
Maxwell Chen
|
|
|
|
|
A non-Unicode program can display Chinese text in MBCS way. But two premises are required:
1. The system should be Chinese character set installed (for viewing with IE and other text applications).
2. The text buffer to output or to input in the source code should not contain a second character set (for example a mix of Chinese and Japanese). Otherwise when you are about to save the .cpp file to compile, VC++ prompts and forces you to save the file in Unicode.
Maxwell Chen
|
|
|
|
|
Hi friends,
I need to put two small buttons in the caption bar of file open dialog whenever the user invokes open dialog from any application ... Please tell me how can i do it?
Thanks in advance,
John.
|
|
|
|
|
The technique you need is called 'global subclassing', you'll need to look it up and proabably go through a couple of articles to get the hang of it. The file open dialog is designed to let you do this. The technique has different caveats and gotcha's on different Windows versions as well so you need to know what you're targetting. The good news it can definitely be done
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
How can I get the scaleline of the bitmap Image
Trioum
|
|
|
|
|
trioum wrote: How can I get the scaleline of the bitmap Image
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.
[my articles]
|
|
|
|
|
Assume you have a CBitmap object, pBmp. Follow these steps:
1) Declare a BITMAP structure, btmp.
2) Call pBmp->GetBitmap(&btmp) to fill in the BITMAP structure.
3) btmp.bmHeight should be the scan lines (height of the bitmap).
4) BTW, m_bitmap.bmWidthBytes should be the width of the bitmap times the color depth in bytes.
Best,
Jun
|
|
|
|
|
i created a static lib under vc++6, i included this file in cpp file, setting is also right? set active.so what happened? thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
It seems that compiler is not able to find the header file.
Specify the path of folder containing the header file in the VC++ include directories.
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.
[my articles]
|
|
|
|
|
after i set include path,and then compiled project, output showed below:
Linking...
LINK : fatal error LNK1104: cannot open file "psosta.lib"
Error executing link.exe.
what happened?
thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
Hence you need to perform a similar task for VC++ Library Directories (add the path of the folder containing psosta.lib ).
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.
[my articles]
|
|
|
|
|
how to add? my way is right to add it below? first go to tool->option..choose library..and then add a path cotaining this folder..for include path..i did with same way..right? thanks a lot.
my msn is lizhiyuan16@hotmail.com, can we talk in msn,thanks.
Li Zhiyuan
5/10/2006
|
|
|
|
|
Yes. I guess that now you've already done. Does it work?
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.
[my articles]
|
|
|
|
|
not yet, still this problem below:
LINK : fatal error LNK1104: cannot open file "psosta.lib"
Error executing link.exe.
Li Zhiyuan
5/10/2006
|
|
|
|
|
the direcotry of all folders are below:
folder name is pso which contains my project folder and my static folder..is this right? thanks.
after set....build-> set active configration..output showed below:
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs; use /NODEFAULTLIB:library
psoproject.exe - 0 error(s), 1 warning(s)
what is problem, thanks
Li Zhiyuan
5/10/2006
modified on Monday, January 07, 2008 6:46:12 AM
|
|
|
|
|
This usually happens when your project is linked to the C runtime both statically and dynamically. Statically linked with the debug LIBCD.lib and dynamically linked to MSVCRTD.dll. You can do either one or the other but both is a bad idea, 2 copies of the C library code, 2 copies of all the global data is a receipe for . Change your project settings to use one or the other consistently.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
i tried to do following what u said..but problem is still there,,,..what is detail to set..i go to project -> setting...general->..set MFC as DLL....?it is right? thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
It's not the link to MFC that's the issue directly it's the link to the C Runtime, a separate Dll or Lib from MFC which you may not be aware that you are using but everybody does. To know which setting to look at I'd need to know which Visual Studio version you're using?
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
Hi all,
I've use a CStringArray to store some CStrings in my application. Now I want to use another CStringArray on the same application. So I add another CStringArray instance on the class view, VC++ .Net 2003.
When I add and compile it don't give any error message. But when I run the code it gives the following error.
Unhandled exception at 0x00414ff3 in TimeZone.exe: 0xC0000005: Access violation writing location 0x00000020.
On the following line of code.
m_pMainWnd = &dlg;
Why is that.
I appreciate your help all the time...
Eranga
|
|
|
|