vb .net private declaration

i want to use the following code to get the time in microseconds,
i am using it from

http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q172/3/38.asp&NoWebContent=1


but when i declare the below following lines in my module console application,

      Declare Function QueryPerformanceCounter Lib "Kernel32" _
                                 (X As Currency) As Boolean
      Declare Function QueryPerformanceFrequency Lib "Kernel32" _
                                 (X As Currency) As Boolean


it gives the following error
Module1.vb(9): 'System.Currency' is not accessible in this context because it is 'Private'.

can anyone please help

let me post my code below for convinience
________________________________________________________-
Imports System
Imports System.Net
Imports System.Net.Sockets
Imports System.Text
Imports System.Threading
Imports System.management
Module Module1

/////i want to declare here

    Declare Function GetTickCount Lib "kernel32" () As Integer

    Dim sendtime As Integer
    Dim temp As Integer
    Dim t As New Thread(AddressOf sendform)
    'Declare Another Thread and assign it to Bye
    Dim b As New Thread(AddressOf receiveform)
    Dim BeginTime As DateTime

blah blah blah
blah blah blah
blah blah blah
.
.
.
.
.
.



End Module


__________________________________________________________

thanx,
prashanth
prashanth_gurijalaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KarcOriginCommented:
Hi,
The Currency datatype is not supported by VB.NET. Use Decimal or Long in VB.NET. I hope that will solve your problem.

Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
prashanth_gurijalaAuthor Commented:
Thanx,
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q172/3/38.asp&NoWebContent=1
 but the above example in the windows msdn is in visual basic
i am not sure hows that possible,
thanx in advance,
prashanth
0
Mike TomlinsonMiddle School Assistant TeacherCommented:
The example you are referencing is for VB6 and below, not VB.Net.

~IM
0
prashanth_gurijalaAuthor Commented:
thanx guys...
--prashanth
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

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.