PDA

Click to See Complete Forum and Search --> : Two little things...


Arie
Oct 12th, 2000, 05:57 AM
Hi!

I want to know two simple things:
1) How do I get my own IP address?
2) What is better than a timer?

Thank you anyway,
Arie.

Visit: http://www.nip.to/camel2000

HarryW
Oct 12th, 2000, 09:39 AM
1. I'll let someone who knows where to get this from answer.

2. GetTickCount.

3. Why is your website about camels?

SteveCRM
Oct 12th, 2000, 03:14 PM
put a winsock control on your form

msgbox winsock1.localip

:)

kedaman
Oct 12th, 2000, 03:17 PM
depends what timer you refer to
1. the function timer, gettickcount is more exact, but well it doesn't do the same thing either, gettickcount returns uptime and timer, the time since startup. alternatively querryperformance for very exact time.

2. timer control, the alternative is a better activeX timer, can be found somewhere, or you could use the settimer and killtimer api and create your own event

Arie
Oct 12th, 2000, 03:41 PM
1. When I do this message there is no IP in the message!
2. What is that GetTickCount?
3. This website isn't about camels at all. not even close!

Thank you,
Arie.

Visit: http://www.nip.to/camel2000

kedaman
Oct 12th, 2000, 04:43 PM
Gettickcount is an api call to user32.dll which returns the amount of milliseconds after startup, almost similar to the timer function, except it returns amount of seconds since midnight.
to use, declare the api in a module public or in a form private:

Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long


To use it:

A=Gettickcount
as you use a function

Arie
Oct 13th, 2000, 01:23 PM
About the IP....
There is another way to get my own IP?
Maybe a function? with API?

I don't know, but if you know, tell me!

Thank you, anyway
Arie.

Visit: http://www.nip.to/camel2000
(Cool site. the camel is just
a symbul for the site. )

kedaman
Oct 13th, 2000, 01:42 PM
there's some api here on this thread,
http://forums.vb-world.net/showthread.php?threadid=35171