🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1332

Re: CGI Web server Application

#1332
From: Hans Galema
Date: Sun, 27 Mar 2005 11:52
26 lines
2023 bytes
Butch McLeod wrote:
> I created a CGI web server app using C++ Builder 5 Pro with 1 web action 
> item: Response->Content = "<p>HELLO</p>";
> Built the project and opened it with IE 6 and was rewarded with a page that 
> has "HELLO" on it. I'm using the Internet Information Server that comes with 
> XP Pro
> If I add a database component to the webmodule and connect to a database, 
> I'm rewarded with page cannot be displayed .

What is further in that page ? Is the connection successfule ?
What do you do after a succesfull connection ?
What do you do after an unsuccesfulle connection ?

> If I connect to a database and then disconnect right away. Page cannot be 
> displayed

But what kind of responce content are you filling in then ?

> If I don't connect to a database it works. Any ideas as to why I can't 
> create a web server app that uses a database?

Please be more specific about what and how you are doing ?
A cgi app can do all kinds of things. But you have to
care for it that it does not AV. And catch exceptions.

Hans.
Technical Details
Message-ID: <42469f0f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424613ab@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,af8465d282730681
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 27 Mar 2005 13:52:47 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: CGI Web server Application
References: <424613ab@newsgroups.borland.com>
In-Reply-To: <424613ab@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <42469f0f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111924495 129.125.201.248 (27 Mar 2005 03:54:55 -0800)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail