Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to capture computer name of web users?
Message
 
To
01/03/2004 22:25:24
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
00881978
Message ID:
00882280
Views:
28
Sim,
I put the test online so you or anybody can try it out at:
http://www.activevfp.com/avfpdemo2/default.aspx?action=test2
try the following:
CASE oProp.Action=='test2'
 SET LIBRARY TO "C:\Program Files\Microsoft Visual FoxPro 7\Foxtools.fll"
 lcSearchIP=oRequest.servervariables("REMOTE_HOST") && or REMOTE_ADDR
 store 0 to buff1,buff2,buff3,buff4,buff5,buff6
 _wsockstartup(256 * 1 + 1,@buff1,@buff2,@buff3,@buff4,@buff5,@buff6)
 _wsockgethostbyaddr(lcSearchIP,@buff1)
 _wsockCleanup()
 lcHTMLout = [The name for IP address ]+lcSearchIP+[ is ]+buff1 
>Hi Claude,
>I'm quite confused with the notes that you provided. Can you explain how to build these functions to the activevfp app? Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform