F
Frank Luker
Hello,
I want to build a stopwatch class (high resolution timer) that runs with
compact framework 2.0 and also with a windows application.
I found a suitable class
(http://weblogs.asp.net/pwelter34/archive/2005/07/01/416999.aspx) but the
problem is that it imports "kernel32.dll" wich runs perfect in a windows
application but not in a windows mobile application. When I change the
DLLImport to "coredll.dll" then it runs perfectly with compact framework but
not with a windows application.
Is there a way of using the DLLImport dynamically at runtime depending on
the current platform?
Thanks in advance!
Frank
I want to build a stopwatch class (high resolution timer) that runs with
compact framework 2.0 and also with a windows application.
I found a suitable class
(http://weblogs.asp.net/pwelter34/archive/2005/07/01/416999.aspx) but the
problem is that it imports "kernel32.dll" wich runs perfect in a windows
application but not in a windows mobile application. When I change the
DLLImport to "coredll.dll" then it runs perfectly with compact framework but
not with a windows application.
Is there a way of using the DLLImport dynamically at runtime depending on
the current platform?
Thanks in advance!
Frank