Accessing current user in Managed C++ Web Service?

S

Sharon McCarty

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
 
D

DM McGowan II

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
 
S

Sharon McCarty

Thanks Guys for both your input!

Sharon

DM McGowan II said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top