Hi guys,
i've a problem with a C++ header file !
Is there someone who's can help me, to port this code to PB?
My knowledge about C++ is not great enough to do this... :-(
(The DLL i must use is called VOCTB3.DLL)
How must i call the "VOCWav2AlawInit" procedure ?
Cheers an thank you !
Klaus
------------------
[This message has been edited by Klaus Mucke (edited January 02, 2003).]
i've a problem with a C++ header file !
Is there someone who's can help me, to port this code to PB?
My knowledge about C++ is not great enough to do this... :-(
(The DLL i must use is called VOCTB3.DLL)
Code:
#ifndef __VOCTB_H #define __VOCTB_H #include <windows.h> #ifdef __cplusplus extern "C" { #endif #define VOCEXPORT __stdcall typedef enum tagConverterError { VOC_Ok = 0 , VOC_Aborted = 1 , VOC_CantOpenInfile = 2 , VOC_CantOpenOutfile = 3 , VOC_CantReadInfile = 4 , VOC_CantWriteOutfile = 5 , VOC_Unknown = 6 , VOC_BadFormat = 7 }ConverterError; typedef struct {char dummy[512]; } VOCAlaw2WavStruct; void VOCEXPORT VOCAlaw2Wav (VOCAlaw2WavStruct *p); void VOCEXPORT VOCAlaw2WavInit (VOCAlaw2WavStruct *p, const char * src, const char *dest, short Loudness); void VOCEXPORT VOCAlaw2WavAbort (VOCAlaw2WavStruct *p); void VOCEXPORT VOCAlaw2WavPolling (VOCAlaw2WavStruct *p, short bytes); short VOCEXPORT VOCAlaw2WavGetPercent(VOCAlaw2WavStruct *p); BOOL VOCEXPORT VOCAlaw2WavReady (VOCAlaw2WavStruct *p); ConverterError VOCEXPORT VOCAlaw2WavGetError (VOCAlaw2WavStruct *p); #ifdef __cplusplus } #endif #endif
Cheers an thank you !
Klaus
------------------
[This message has been edited by Klaus Mucke (edited January 02, 2003).]
Comment