Common Gateway Interface is a way to call a program and
return data to the Web-Server. It has really nothing to do
with what language your CGI program is written in.
If you want to write CGI programs in c++ or VB you'll need
to compile them so they can be executed in your operating
environment and they must conform to the CGI standards to
be able to read input and return data to the Web-server.