Groups | Blog | Home
all groups > vb.net upgrade > february 2004 >

vb.net upgrade : QueryPerformanceFrequency and QueryPerformance counter, different in VB .NET than in V B6


Howard Kaikow
2/12/2004 12:48:24 AM
MSFT KB article 172338 gives an example of how to use the Query* API to use
a high resolution timer.

Alas, such code fails when upgraded to VB.NET because VB .NET does not seem
to like to pass the Currency data type of VB 6 to the API the same way as
was done in VB 6.

When imported, the Currency data type gets changed to Decimal and I have to
manually change that to Long for the critter to work.

Is there a list of other such differences?

--
http://www.standards.com/; See Howard Kaikow's web site.

Howard Kaikow
2/12/2004 9:27:20 AM
Thanx.

The KB article is a conversion of the corresponding VB 6 article I
referenced.
Uses Long type.

--
http://www.standards.com/; See Howard Kaikow's web site.
[quoted text, click to view]
<http://msdn.microsoft.com/library/en-us/vbcon/html/vboriUpgradingFromVisual
Basic60.asp>
[quoted text, click to view]

hirf-spam-me-here NO[at]SPAM gmx.at
2/12/2004 1:26:41 PM
* "Howard Kaikow" <kaikow@standards.com> scripsit:
[quoted text, click to view]

<http://support.microsoft.com/?kbid=306979>

[quoted text, click to view]

<http://msdn.microsoft.com/library/en-us/vbcon/html/vboriUpgradingFromVisualBasic60.asp>

--
Herfried K. Wagner [MVP]
AddThis Social Bookmark Button