I had the problem too with this direcx error.
I fixed it with these steps:
- Download and install the last Beta drivers:
Radeon 13.10 Beta Drivers
Geforce 331.40 Beta Drivers
- Go to the folder "My Dokuments/Battlefield 4/settings" and put these 4 files in there. When the folder *settings" doesnt exists, create them.
- Go to the BF4 folder, open "_installer/vc/vc2012update3/redist" and launch the "vcredist_x64.exe" and repair them.
- Restart your PC and try to join the server.