|
Hi mukesh,
I used that one but it is not working properly.it is giving error.in tha ensumer file is missing.so please help me out.I am searching for this at commands from so many days.Reply me..
Thanku,
Savitri
|
|
|
|
|
savitri wrote: it is giving error.in tha ensumer file is missing.
what is "ensumer" ???
Mukesh Kumar
Software Engineer
|
|
|
|
|
hi mukesh,
sorry it is not enumser.in that project send and receive options are not there.please give some hints.really i am fed up of searching these things.please reply me.
thanks in advance,
savitri
|
|
|
|
|
really i am fed up of searching these things
So, you want someone else to do the detail work for you...nice. Good luck.
|
|
|
|
|
1. NO bold print.
2. NO 'urgent.'
3. NO text speak (as I saw in some other responses.)
|
|
|
|
|
Hi all,
I have designed a dialog with a tab contorl with tab property "vertical" set to true. Now if I set windows xp as the backgroud theme, then caption of the tab disappears. Is there any way to have the tab caption with tabs at vertical alignment.
Note: This issue occurs only in windows xp using Visual Studio 2005. If Windows Classic theme was set then the tab caption appears. While using Visual Studio 2003 this issue does not occur.
Expecting quick response......
Thanx in advance
tsgd84
modified on Wednesday, May 7, 2008 10:46 AM
|
|
|
|
|
"TCS_VERTICAL
Version 4.70. Tabs appear at the left side of the control, with tab text
displayed vertically. This style is valid only when used with the TCS_MULTILINE
style. To make tabs appear on the right side of the control, also use the
TCS_RIGHT style. This style is not supported if you use ComCtl32.dll version 6."
Anything there that applies to your situation?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Mark,
Thanx for your reply. But the tab text [tab caption] does not appear on the tabs, this is the actual problem. Yes, both TCS_VERTICAL and TCS_MULTILINE styles were used and the tabs are appearing on the left side of the dialog.
Thanx
tsgd84
|
|
|
|
|
I've a string variable. I've to check whether it contains the character '+'. If it contains I've to replace it with the string "%2b". But the remaining contents of the string should not be altered. Can any body help?
|
|
|
|
|
what type is your string ? char* ? std::string ? CString ?
have you tried to use a "replace()" function ?
|
|
|
|
|
It's a BSTR(unsigned short*) string.
|
|
|
|
|
"find" and "replace" keyword.
For more information Click Here [^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
I tried that. Here is the code.
typedef typename Allocator::size_type size_type;
size_type found;
if (m_EditWnd.GetWindowTextLength())
{
BSTR bstrTickers = NULL;
m_EditWnd.GetWindowText(&bstrTickers);
found = bstrTickers.find('+');
bsSite = "http://www.google.com/search?hl=en&q=";
bsSite += bstrTickers;
SysFreeString(bstrTickers);
}
It gives me error C2228. left of '.find' must have class/struct/union type
It's a toolbar(for web browser)project. If I enter "C++" in the text field it takes only C. But I want entire string("C++") in the text field.
How to do?
|
|
|
|
|
GetWindowText() doesn't it supports CString or LPTSTR.
|
|
|
|
|
What might be the alternative?
|
|
|
|
|
you can use CString Class, if not may be convert it and back.
CString strIThink(_T("I think BSTR has Replace member"));
int n = strIThink.Replace(_T("BSTR"), _T("CString"));
_ASSERT(n == 1);
|
|
|
|
|
T.RATHA KRISHNAN wrote: BSTR bstrTickers = NULL;
m_EditWnd.GetWindowText(&bstrTickers);
found = bstrTickers.find('+');
bsSite = "http://www.google.com/search?hl=en&q=";
bsSite += bstrTickers;
SysFreeString(bstrTickers);
Are you sure the above approach is correct? I mean how is m_EditWnd declared?
BTW of course BSTR has no find method (has no methods at all).
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
My requirement is this:
I've a string variable. I've to check whether it contains the character '+'. If it contains I've to replace it with the string "%2b". But the remaining contents of the string should not be altered.
If BSTR has no find and replace methods, how can I do this?
Declaration of m_EditWnd is:
CEditQuote m_EditWnd;
and the code is,
typedef typename Allocator::size_type size_type;
size_type found;
// if the user has entered stock quotes then append them to the url
if (m_EditWnd.GetWindowTextLength())
{
BSTR bstrTickers = NULL;
m_EditWnd.GetWindowText(&bstrTickers);
found = bstrTickers.find('+');
bsSite = "http://www.google.com/search?hl=en&q=";
bsSite += bstrTickers;
SysFreeString(bstrTickers);
}
|
|
|
|
|
Are you sure CEditQuote class provides such a misleading method, i.e. a method named GetWindowText and returning a newly allocated BSTR ?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I don't know. It's developed by someone else. It's not that we've to use find and replace methods. In normal C/C++ How to find a character in a string and replace it with a sequence of characters provided the remaining characters should not be altered.
|
|
|
|
|
IF you're using MFC then you may construct a CString object with you BSTR . CString provides such features.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
because that string is BSTR.
I suggest you first you convert BSTR to basic_string and than use this find and replace function and than reconvert it into BSTR.
It is very easy to convert BSTR to basic_string. you may google it.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
Can u tell me how to convert a BSTR to simple String?
|
|
|
|
|
MSDN will help you for this ->[^]
But it is wrong solution for your requirement. you convert the whole string to UTF8 .When you convert c++ to utf8 than it is automatically converted to whatever you want.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
It's a toolbar(for web browser)project. If I enter "C++" in the text field it takes only C. But I want entire string("C++") in the text field.
How to do?
No need to convert + sign to %2b.
just convert the string into utf8.
actually when you search any string than that string is converted to UTF8 data.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|