views:

309

answers:

1

Hi, I have web service in my MFC Application and I want to write something like:

WebService * ws = new WebService(); ws->Credentials = new NetworkCredentials(user, pass);

I could not find Credentials class in MFC. Is there such class in MFC?

+1  A: 

MFC does not have a NetworkCredential class, but if you use .Net (CLR), then you can find NetworkCredential in the System.Net namespace (link is to a pertinent MSDN article).

Brian