有没有办法在Android NDK中加载kernel32.dll库?Android NDK LoadLibrary(“KERNEL32.DLL”)
我想提取的GetTickCount和GetTickCount64功能出来,我在尝试运行调用LoadLibrary(“KERNEL32.DLL”)时,这个错误:
Function 'LoadLibrary' could not be resolved
任何建议,以获得GetTickCount和GetTickCount64?
有没有办法在Android NDK中加载kernel32.dll库?Android NDK LoadLibrary(“KERNEL32.DLL”)
我想提取的GetTickCount和GetTickCount64功能出来,我在尝试运行调用LoadLibrary(“KERNEL32.DLL”)时,这个错误:
Function 'LoadLibrary' could not be resolved
任何建议,以获得GetTickCount和GetTickCount64?
Android是Linux,而不是Windows。您需要使用Linux API。使用clock_gettime
而不是GetTickCount
(example)。
我知道Android不是Windows或OSX ...我会尝试clock_gettime函数,看看哪里我结束了。谢谢 – TooManyEduardos 2015-02-09 19:42:36
正如* Windows *内核中那样?这似乎不太可能在Android上 – 2015-02-09 17:22:02
那么有没有另一种方式来获得相同的功能?或者在没有库的情况下在C++中创建函数? – TooManyEduardos 2015-02-09 17:23:19
[这是Android/Java的相应方法,以C#/ C++方法GetTickCount()?](http://stackoverflow.com/questions/3590089/which-is-android-java-corresponding-method-to-the-cc -method-gettickcount) – 2015-02-09 17:24:25