| || |
I am trying to use the QueryPerformanceCounter function of kernel32 dll. The declaration is :
Declare Function QueryPerformanceCounter Lib "kernel32" Alias "QueryPerformanceCounter" (lpPerformanceCount As Currency) As Long
How do I use Extern.Declare equivalent to the above declaration. The issue that I am facing is that the function uses Currency as Argument, and I could not find any equivalent in QTP for this (eg. we have micLong for Long, micDouble for Double, but nothing for Currency)
How do I tackle this problem?
Re: Extern.Declare Issue
I got the solution:
I just replaced the currency argument with long and it works just fine.
Also, during the function call, I need to use the Extern Keyword.