A silly question from a newcomer :) [Archive] - Quintessential Forum

PDA

View Full Version : A silly question from a newcomer :)


Elledan
12-09-2004, 10:05 PM
Hello everyone, I'm new to this forum and the QCD player (only discovered it today), so as I'm bound to ask stupid questions, please bear with me :)

My question is regarding the encoder dll source (QCDEncodeDLL.cpp), in specific the mentioning of certain types which I assume are defined elsewhere, namely LPCSTR, LPSTR and WAVEFORMATEX.

E.g., in the definition of Open():

BOOL Open(LPCSTR outFile, LPCSTR srcFile, WAVEFORMATEX *wf, LPSTR openedFilename, int openedFilenameSize)

how am I supposed to know the format of *wf and whether LP(C)STR is char*, string, UTF-8/Unicode or something entirely different?

I already checked the header files for definitions/typedefs of these types, and looked at some of the encoder plug-ins listed on this site in case source code was distributed with them, without success.

In other words, which obvious piece of information/reference did I miss? :)

madjo
12-09-2004, 11:22 PM
oops sorry, never mind me...

Tokelil
12-10-2004, 12:04 AM
All those variables/structs are defined in the QCDModDefs.h or are part of the Win32 API. (All of them you mention are part of windows)

Where to strings, you can represent them how ever you want internally, but if QCDCallbacks.version = PLUGIN_API_VERSION you get and should send native encoding to QCD.
If QCDCallbacks.version = PLUGIN_API_VERSION_WANTUTF8 you get:
all returned text in UTF8 encoding on WinNT/2K/XP (native encoding on Win9x)
according to the QCD SDK.