  The cross sections of heavy quark production in $pp$ collision and for their
photo- and electroproduction are calculated in the framework of QCD. The
virtual nature of the interacting gluons as well as their transverse motion and
different polarizations are taken into account. The obtained cross sections
exhibit more rapid growth with the initial energy than the parton model
predictions and the $p_T$ distributions of produced heavy quarks are more
smooth.
