How to get the codebaseUrl from server?

I have an Internet application developed using jsp.In one of the Jsp I will
download one activeX control and run int the client machine.I am writting the activex code
written in VC++ and in there I want the BaseUrl of the server. how to get it?
SubramanyaAsked:
Who is Participating?
 
nonubikConnect With a Mentor Commented:
If you use managed code, call Dns::GetHostName();
If you use unmanaged code, call gethostname(name, namelen);
0
 
SubramanyaAuthor Commented:
What I am asking is the URL of the server from which the Activex component gets downloaded.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.