Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Accessing current user in Managed C++ Web Service?

Reply
Thread Tools

Accessing current user in Managed C++ Web Service?

 
 
Sharon McCarty
Guest
Posts: n/a
 
      11-01-2004
Hi Everyone,

I created a managed c++ web service and I would like to access the
current user. For instance, in a C# web service, you would normally
type in: HttpContext.Current.User.Identity.Name;

to get the user name. Can someone tell me how I would achieve this in
managed c++ web service?

Thanks

Sharon
 
Reply With Quote
 
 
 
 
DM McGowan II
Guest
Posts: n/a
 
      11-02-2004
Hi,

This should work:

HttpContext::Current->User->Identity->Name

Dilton

"Sharon McCarty" <> wrote in message
news: m...
> Hi Everyone,
>
> I created a managed c++ web service and I would like to access the
> current user. For instance, in a C# web service, you would normally
> type in: HttpContext.Current.User.Identity.Name;
>
> to get the user name. Can someone tell me how I would achieve this in
> managed c++ web service?
>
> Thanks
>
> Sharon


 
Reply With Quote
 
 
 
 
DM McGowan II
Guest
Posts: n/a
 
      11-06-2004
PS Sharon,

Unless you just love the challenge of mangled (I mean Managed) C++; I'd
heartily recommend using C# for your Web Service, and if you must access
some native code, then create a thin managed layer that can "talk" both
C/C++ and C#.

Dilton

"DM McGowan II" <> wrote in message
news:QuKdnU1jf_PKjBrcRVn-...
> Hi,
>
> This should work:
>
> HttpContext::Current->User->Identity->Name
>
> Dilton
>
> "Sharon McCarty" <> wrote in message
> news: m...
>> Hi Everyone,
>>
>> I created a managed c++ web service and I would like to access the
>> current user. For instance, in a C# web service, you would normally
>> type in: HttpContext.Current.User.Identity.Name;
>>
>> to get the user name. Can someone tell me how I would achieve this in
>> managed c++ web service?
>>
>> Thanks
>>
>> Sharon

>


 
Reply With Quote
 
Sharon McCarty
Guest
Posts: n/a
 
      11-09-2004
Thanks Guys for both your input!

Sharon

"DM McGowan II" <> wrote in message news:<4rCdnV1CpbNB8xHcRVn->...
> PS Sharon,
>
> Unless you just love the challenge of mangled (I mean Managed) C++; I'd
> heartily recommend using C# for your Web Service, and if you must access
> some native code, then create a thin managed layer that can "talk" both
> C/C++ and C#.
>
> Dilton
>
> "DM McGowan II" <> wrote in message
> news:QuKdnU1jf_PKjBrcRVn-...
> > Hi,
> >
> > This should work:
> >
> > HttpContext::Current->User->Identity->Name
> >
> > Dilton
> >
> > "Sharon McCarty" <> wrote in message
> > news: m...
> >> Hi Everyone,
> >>
> >> I created a managed c++ web service and I would like to access the
> >> current user. For instance, in a C# web service, you would normally
> >> type in: HttpContext.Current.User.Identity.Name;
> >>
> >> to get the user name. Can someone tell me how I would achieve this in
> >> managed c++ web service?
> >>
> >> Thanks
> >>
> >> Sharon

> >

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to update the current web page? (delete current web page + rewrite the page) laryten@yahoo.com Javascript 3 10-12-2006 07:33 PM
Hi I have one web application and i want to get the number of users who are currently accessing the application. Also I want to get the user details of each user, which is stored in a database. How can I do this? Pls help. Getting No: and anu Java 11 05-12-2005 03:25 PM
accessing the web user control's control from a web page and set a value from another web page Reny J Joseph Thuthikattu ASP .Net 1 12-30-2004 12:21 PM
Accessing current user in Managed C++ Web Service? Sharon McCarty ASP .Net 0 11-01-2004 11:30 PM
Re: How to get user's full name using HttpContext.Current.User Mike Newton ASP .Net 0 07-23-2004 03:56 PM



Advertisments