Original Post
I've been working on an Installer and need to get the End User License Agreement for DirectX. So I wrote a little program to call the DirectXSetupGetEULA, but I don't recieve anything into my buffer. I've tried both char and wchar buffers. Here is the program. #include <stdio.h> #include "dsetup.h" #pragma comment(lib, "dsetup") int main() { WORD Lang = MAKELANGID(LANG_ENGLISH, SUBLANG_NEUTRAL); char szBuffer[20000]="Test\0"; WCHAR szwBuffer[20000]={0}; int nLen = MultiByteToWideChar(CP_ACP, 0, szBuffer, -1, NULL, NULL); MultiByteToWideChar(CP_ACP, 0, szBuffer, -1, szwBuffer, nLen); DirectXSetupGetEULA(szwBuffer,20000,Lang); if(DirectXSetupGetEULAA(szBuffer, 20000,Lang)==0) { if(ERROR_INVALID_PARAMETER==GetLastError()) printf("%s","Invalid Parameter\n"); } printf("%s\n",szBuffer); printf("%ls\n",szwBuffer); system("pause"); return 0; }