Visual C++ cgi fails with exception error only when running as cgi
Posted on 2002-05-15
I have written a custom Visual C++ cgi currently running under Apache in Windows 2000 that takes some form data and puts it into an access database. If I double click the executable file from the desktop and enter some data into it, it works fine. However, if the program is launched via the web server hit connecting to the database causes an unhandled exception error.
Does anyone have any experience with this? If so I can email you the visual C++ project. This is very frustrating as the program works fine but I wonder if when launched as a CGI from the web server maybe the program needs to do something special to initialize the standard ODBC32.lib functions.
My direct email is firstname.lastname@example.org if you can answer this question.
Jordan Pinsker, MD