Results 1 to 8 of 8

Thread: Two little things...

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Arrow

    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

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    1. I'll let someone who knows where to get this from answer.

    2. GetTickCount.

    3. Why is your website about camels?
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    put a winsock control on your form
    Code:
    msgbox winsock1.localip

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    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

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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:
    Code:
    Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
    To use it:

    A=Gettickcount
    as you use a function
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Ok, now about the IP...

    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. )

  8. #8
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    there's some api here on this thread,
    http://forums.vb-world.net/showthrea...threadid=35171
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width