libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_GetError Function

Get description of last error. (ANSI version)

C++
__stdcall __declspec(dllimport) char * zplay_GetError(ZPLAY_HANDLE handle);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay

Pointer to ANSI null terminated string with error message.

Memory for error message is allocated by libZPlay interface and always is available.  

Warning: Don't mess with this memory, don't free this memory, don't write into this memory. 

ZPlay C++ Class interface

MessageBoxA(0, instance->GetError(), "ANSI error message", 0);

 

C Style interface

MessageBoxA(0, zplay_GetError(instance), "ANSI error message", 0);
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr