Re: DirectX error
@MrWick108 since your'e on Win10 there's a thread for BF4 no launching after the Win10 Anniversary Update that has some good fixes: https://forums.battlefield.com/en-us/discussion/13592/bf4-not-launching-windows-10-anniversery-update-causing-bf4-not-to-launch-disappear/p1?new=1
There's another solution for BF4 Direct X error (you may have done this one already, but if you didn't do every step suck as deleting the cab files try it again): https://www.youtube.com/watch?v=aD6j3xTH-vg&index=75&list=WL
And just in case you fix the Direct X error but still are perpetually joining the server in Battlelog here's the solution for the infinite joining server bug: http://answers.ea.com/t5/Battlefield-4/Infinite-Joining-Server-issue/m-p/5148750#U5148750