OBD2 in VB6

hi I'd like to have help please I am now a project that consists of a graphical interface to a system of automotive diagnostic my problem is how to program codes OBD2 Do not ask a lot but be an example for "the speed of a car"