Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

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?
0
Subramanya
Asked:
Subramanya
1 Solution
 
nonubikCommented:
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now