vo_to_net:pcall
This is an old revision of the document!
PCall vs PCallNative
PCall
is not supported anymore, so this code will not work:
PCall( ptrFunction, @strWinOsVersionInfo )
You need to know the return type of the called function and change it do PCallNative:
PCallNative<int>( ptrFunction, @strWinOsVersionInfo )
If you need source code compatibility to VO, use #ifdef
:
#ifdef __XSHARP__ PCallNative<int>( ptrFunction, @strWinOsVersionInfo ) #else PCall( ptrFunction, @strWinOsVersionInfo ) #endif
vo_to_net/pcall.1520055975.txt.gz · Last modified: 2018/03/03 05:46 by wolfgangriedmann