Originally posted by: notfred
This is really easy, don't let anyone tell you to do a million things combining Visual Basic and compiling new exes and such.
You say that your installation of apache wont run the perl test script it came with. Do you have perl installed?
You can test by opening up a command prompt and typing "perl -v". If it says "This is perl, v.5.8.x..." then it's installed. If it says "bad command or file name", then it's not installed. You can get perl for windows from
Activestate.
Once you have your test perl script working, then you're going to create a new perl script. This will be the content of your new script:
#!C:\perl\bin\perl
print "Content-Type: text/html\n\n";
print `C:\path\to\my\file.exe`;
That's all. "C:\perl\bin\perl" should be the path to the perl executable that you installed. "C:\path\to\my\file.exe" should be the path to your quickbasic exe.
Now, save the perl script as something like "myfile.pl" and put it in your cgi-bin directory with your test script. Then go to your website, and run "myfile.pl". You'll see the output of your quickbasic program.