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

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top