You need to create a gwen lib (static or dynamic) plus the directx-9 renderer lib. You then use them in a 3dgs plugin or C/C++ app. You can look into the DX9 sample to see how.