Ionut,
It's probably easier to convert the VB code. If you post a small fragment several of us here can give you some suggestions on the translation.
>I've downloaded the DirectX sdk and it seems that they only show sample with the VB and the documentation is only for C++. Did anyone tryed to convert some code written in C to VFp. I'm not asking for DLL's just some tips for converting C++ code to VFP. It's also very dificult to convert the variable types used there in the VB sample code to VFP. Any tips?