|
Kiran Satish wrote: when I watch the variable in debug mode, it shows VT_ERROR for CComVariant object.
What is the m_cvRespInput.scode (status code) value? It should be giving you an error code.
Best Wishes,
-David Delaune
|
|
|
|
|
|
...
"Well, we're getting "F"'d at work. WPF, WCF, and WWF... WTF?" --John Simmons
|
|
|
|
|
Would all 5.8 million of you members, plus those few programmers who aren't members yet, please be so kind as to read my excellent article, vote it 5, bookmark it and download the code provided?
TIA
|
|
|
|
|
But 5 of left or right ?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
I wonder why don't you ask also for money...
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 articles]
|
|
|
|
|
[^].
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 articles]
|
|
|
|
|
CPallini wrote:
Advertising the article in the C++ forum is really shameful.
And what about advertising one's own message?
|
|
|
|
|
i have a view i need a function getting called when that view is activated or updated
|
|
|
|
|
CView::OnActivateView looks good for you.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
could you plz any MDIChildWnd function
|
|
|
|
|
Are you using MFC?
If you are using raw windows code, then maybe you could look at WM_SETFOCUS?
Other than that, I don't understand your question.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
ya i am using MFC
i have a scenario i am importing other personalities into the scenario at that time that view is updated
i found one function msdn that is OnMDIActivate it is getting called all the times but it is not getting called when importing personalities
here we are using MDiChildWnd class for that
|
|
|
|
|
Scenario and Personalities are not MFC terms that I know.
Is this data you are loading into your document?
If you are importing things, I guess you have written code there to do the importing? So you already know when this is happening...
If this is in your CDocument class, you can use UpdateAllViews to tell your view class that something interesting has happened.
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
|
Hi all,
If i check the IP address of any machine then it shows the following notation of IP in case of IPv4
"127.0.0.1"
And in case of Ipv6
"fe80::198:8ad2:22fe:2bff8%4"
Is there any API or C function or any logic to convert IPv6 address to IPv4 Address for window and linux.
Thanks
|
|
|
|
|
singh_nav wrote:
Is there any API or C function or any logic to convert IPv6 address to IPv4 Address for window and linux.
Only to a limited degree. See here for more. The operative sentence is, "Obviously, that's impossible, since IPv6 has a larger address space... Your technique will only work on IPv4-mapped IPv6 addresses".
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Hi All,
I have an application which collect data remotly but when connection is made to the machine then it fails either because of Credential error (given username/password is wrong) or Access denied error (user doesn't have enough rights). I want differentiate between these two scenarios. How i can verify whether entered username and password are right. The account gets locked (password is wrong) when attempts match a/c locked out count.
I have used LogonUser and ImpersonateLoggedOnUser API's.(Any WINSDK API to verify Credentials.)
Thanks
Sandy
|
|
|
|
|
Surely LogonUser will fail if the credentials are invalid (bad username or password), but if the user can be logged on, but doesn't have rights to access the object you want to access, it will fail when you try to access the object.
Don't forget that you can only use LogonUser to log on to the local machine.
|
|
|
|
|
GetLastError Solved the problem...
|
|
|
|
|
I want to create SSL connection to WEB server in client using SSPI .There is a session which is bind with the connection. I want to know the My client can share this session( this connection)?
My client is built by ChtmlView.
That is ,after I create a SSL connection to web server, Chtmlview can put the HTTP request to SSL connection , and get the HTTP response from the SSL connection(session). chtmlview communicate with web server in this connection made by SSPI.
Lampa
|
|
|
|
|
Hi all,
if i m using atoi function in Multi Byte than its working fine.
but if i m use it in Unicode than its not working correctly.
here,
CString str=_T("2006");
char * szMyString = (char *) (LPCTSTR) str;
int test=atoi(szMyString);
here the value in integar is 2
please tell me where i m wrong.
thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You might want to read the documentation in MSDN for atoi. It has a table toward the middle that indicates you would use _wtoi when _UNICODE is defined.
|
|
|
|
|
Its also not working same problem exists.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Use _ttoi() function. This will work on both unicode and non unicode environment because it is defined as
#ifdef _UNICODE
#define _ttoi _wtoi
#elseif
#define _ttoi atoi
#endif
"_$h@nky_" wrote: char * szMyString = (char *) (LPCTSTR) str;
This code is wrong when you work in UNICODE environment because in that case, CString internally keeps wchar_t* and not char*. Better if you modify as follows.
CString str=_T("2006");
int test= _ttoi(str);
|
|
|
|