|
you didn't reply to his question.. humm busy with work!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
You can use the MultiByteToWide char to convert the required strings to unicode.
Or you can explicitly use the wide version of the APIs, for example, GetWindowTextW etc.
Use wchar_t instead of char . Use wcscpy instead of strcpy .
Also constant string must be preceded with L (L"hello world")
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
The problem is that I already created the project without setting the Character set and I used declarations such as
CString str = ""; char temp[20]; . In addition to this I also used strcpy, strlen like methods. If I change the Character Set in the Project properties to "Unicode" then I need to change all the above and this is not at all simple. Even though if I change all the strings, some of my classes does not support Unicode char set. Now I am in deep trouble to solve this issue.
The real work for me now is to display the characters such as ►♂↨∟↑•↕ in a text box. Please tell me and help me how can I display these characters without changing the Character set in project properties.
P.S : I already using Character set as "Not Set"
Please help me
Bhanu
|
|
|
|
|
bhanu_8509 wrote: char temp[20];
use TCHAR instead of char!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
I already told that it is not possible to change all the datatypes and string assignments and some of my classes doesn't support Unicode. Please give me a good solution.
|
|
|
|
|
Like I said before use the wide versions of the API only for those strings.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hey Bhanu,,
Y dont you try out this,,
Say you wanna display "↨↔♀☺☻♥♦♣" on the MFC window..
create an array of type unsigend short with the decimal values of these symbols.say,
wchar_t mySymbols[]={8616, 8595, ...., ...., ...., 0000};
//(make sure array ends with 0000);
//this unicode values u can get from MSWord[Menu->Insert->Symbols)
//then
CString symbolText(mySymbols);
M_displaytext=symbolText;
or
M_displaytext=SetWindowText(symbolText);
.. think this will work out...
-regards
aravind sn
|
|
|
|
|
The CEdit control displays only ??. Please advice some other way.
wchar_t mySymbols[]={9664, 9824, 0000};
CString symbolText(mySymbols);
Edit.SetWindowText(symbolText);
|
|
|
|
|
nope i tried it before sending the last post, also make sure u have used the macros _UNICODE and UNICODE, y dont u give it a go for variable of type CString of that EditBox and then m_EditMessage=symbolText;
but the Edit control has to work,,,i wonder,
also check whether it can read the unicodes
if(symbolText.GetAt(0) == 0xFEFF)
{
Edit.SetWindowText(symbolText);
}
else
MessageBox("\nOoops Sorry,, I gave UP..!!! ");
|
|
|
|
|
hi all,
I have a MfcOutlookbar which is fixed at the left side of my application. Is there a way to make this as Auto-hide Bar like CDockablePane.
Thanks in Advance
Regards,
Samir
|
|
|
|
|
I don't know - but looking at the documentation, CMfcOutlookBar inherits a method called "HasAutoHideMode" from CBaseTabbedPane - it also has a method called "SetAutoHideMode". Why not experiment - try calling that method from your application and see if your Outlook bar auto-hides...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
hi ,
i have tried the thing what u have asked but the same does not work!! Is there any alternate way ?
Thanks in Advance
Regards,
Samir
|
|
|
|
|
Not that I'm aware of.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Sir,
So is there any other way i can achieve it?? The the problem is that i have already done all the functionality on the outlook bar.. can i add the full CMFCOutlookBar on CDockablepane?? i have tried that also but it is also not working..
I dont kno if i m wrong but adding all my functionality to individual pCDockablepane and then docking it will help??
Thanks in Advance
Regards
Samir Satardekar
|
|
|
|
|
It may be a little late, but here's how I'm doing it:
1) In the frame-window's OnCreate() method, I add the following code just before the call to CreateOutlookToolbar()
<br />
EnableAutoHidePanes(CBRS_ALIGN_ANY);<br />
2) In the CreateOutlookToolbar() method, I change the call to bar.Create() to include ControlBarStyles as illustrated below:
<br />
if (!bar.Create(strTemp, this, CRect(0, 0, nInitialWidth, 32000), uiID, WS_CHILD | WS_VISIBLE | CBRS_LEFT, AFX_CBRS_AUTOHIDE | AFX_CBRS_RESIZE))<br />
{<br />
return FALSE;
}<br />
Quite simple really, but with one slight draw-back: you don't get to see the stick-pin icon! No, in order to actually have the outlook bar auto-hide, you have to right-click the caption on top... Not a big deal for me - I'm gonna try and fix it later, but for now it will do.
Hope this helps,
Jumpster
Edit: Realized I missed a step... Added it as step 1 above.
|
|
|
|
|
Better late than never.
If found that you can display a pin by adding a gripper to the outlook bar using the following code (notice the additional CBRS_GRIPPER style):
if (!bar.Create(strTemp, this, CRect(0, 0, nInitialWidth, 32000), uiID, WS_CHILD | WS_VISIBLE | CBRS_LEFT | CBRS_GRIPPER, AFX_CBRS_AUTOHIDE | AFX_CBRS_RESIZE))
{
return FALSE;
}
Unfortunately, you do get a duplication of the current name of the pane in the gripper as well as the underlying CMFCOutlookBarTabCtrl.
Regards,
QuiOui
|
|
|
|
|
HI,
i have a string like ..
CString Str="dc.xml,Copy";
how can i check whether the string "Copy" exists in Str..
Please help me...
|
|
|
|
|
|
sorry to being sarcastic! i think you are learning MFC.. Try to search Class reference in MSDN.
This will help in future, if not now. anyways CString::Find can resolve your problem
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
You can use StrStrI function.For using it u need to include "shlwapi.h"
e.g
CString Str="dc.xml,Copy";
LPTSTR pExist = StrStrI(Str, L"Copy");
if(pExist)
printf("Str contains Copy");
else
printf("Str does not contains Copy");
|
|
|
|
|
ankitbtrivedi wrote: You can use StrStrI function.
Why would you not use the find method that's built into CString , if CString is already being used? Not to mention that you will need to explicitly link to shlwapi.lib !
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: if CString is already being used? Not to mention that you will need to explicitly link to shlwapi.lib! Roll eyes
good, talking like a real programmer. some time i think i am quite beginner in programming now
|
|
|
|
|
That feeling, I'm familiar with. We all have aplenty to learn.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
hi!
Since VOIP is prohibited within some area, broadband internet ISPs block VOIP ports or drop VOIP signal and voice packets,so i want to wrapp the VoIP trffic into a package which can not be detected by ISP.
So can any one please help what should i do for wrapping?
Which technology should I use?(may be SSL Tunneling or any other?)
Please help me.
thanx in advance
Note:May be this is not the right forum,but i dont know which technology or programing lang i should use)
|
|
|
|
|
this has to be done using vc++.
but i do not know how to do that..please help.
thanx in advance
|
|
|
|