Thread View: borland.public.cppbuilder.internet.web
7 messages
7 total messages
Started by Lua Kim Teng
Tue, 06 Jul 2004 12:18
Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Lua Kim Teng
Date: Tue, 06 Jul 2004 12:18
Date: Tue, 06 Jul 2004 12:18
9 lines
1095 bytes
1095 bytes
Dear All, I was told last time that CGI written in BCB6 cannot be used in Windows 2003 Server. Has this problem been solved? Thanks. Lua KT.
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Hans Galema
Date: Tue, 06 Jul 2004 12:54
Date: Tue, 06 Jul 2004 12:54
18 lines
1447 bytes
1447 bytes
Lua Kim Teng wrote: > I was told last time that CGI written in BCB6 cannot be used in Windows 2003 > Server. Who told you when and where ? > Has this problem been solved? Aren't you forgetting to mention the components or techniques that would cause for that ? I'm very sure that my cgiprograms developed under bcb3 would run on any Windows OS if I compiled them with bcb6. But Windows 2003 Server ? Hans.
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Lua Kim Teng
Date: Wed, 07 Jul 2004 09:58
Date: Wed, 07 Jul 2004 09:58
54 lines
2384 bytes
2384 bytes
Dear Hans, My program is a simplest one, one line only: Response->Content="Hello"; I am using Stand alone CGI. I transfer the program called bcb6cgi1.exe to my Windows 2003 server. I set the IIS to allow execution of http://www.colips.org/cgi-bin/testcgi/bcb6cgi1.exe and I received: HTTP 500 - Internal server error Internet Explorer If you do not believe, please run the above URL. I am sure you will get the same result. Please give me your CGI and let me run on my machine. You may also try my other CGIs compiled using BCB5 under exacting the same conditions. http://www.colips.org/cgi-bin/testcgi/bcb5cgi1.exe This program works. I was told by the Singapore support person that CGIs compiled by BCB6 will not run under Windows 2003. Regards, Lua KT. "Hans Galema" <dontusethis@dontusethis.nl> wrote in message news:40eaa096$1@newsgroups.borland.com... > Lua Kim Teng wrote: > > > I was told last time that CGI written in BCB6 cannot be used in Windows 2003 > > Server. > > Who told you when and where ? > > > Has this problem been solved? > > Aren't you forgetting to mention the components or techniques that > would cause for that ? > > I'm very sure that my cgiprograms developed under bcb3 would > run on any Windows OS if I compiled them with bcb6. > > But Windows 2003 Server ? > > Hans.
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Hans Galema
Date: Wed, 07 Jul 2004 11:48
Date: Wed, 07 Jul 2004 11:48
87 lines
3535 bytes
3535 bytes
Lua Kim Teng wrote:
> My program is a simplest one, one line only:
>
> Response->Content="Hello";
That is not the simplest one. Moreover I asked you if you used
special components or techniques. So you are using a special
component that has a property Response.
Which component is that ? It is not TIdHTTP is it ? As you
would not need IIS at all then.
> I am using Stand alone CGI. I transfer the program called bcb6cgi1.exe to my
> Windows 2003 server. I set the IIS to allow execution of
>
> http://www.colips.org/cgi-bin/testcgi/bcb6cgi1.exe
>
> and I received:
> HTTP 500 - Internal server error
> Internet Explorer
> If you do not believe, please run the above URL. I am sure you will get the
> same result.
I did. I got a specific errorreport:
Internal Server Error 500
Exception: EAccessViolation
Message: Access violation at address 77F4831D in module 'ntdll.dll'. Write of
address 40006D09
So are you using a NT dll on Windows 2003 Server ?
> Please give me your CGI and let me run on my machine.
helloworld.cpp:
#pragma hdrstop
#include <condefs.h>
#include <stdio.h>
//---------------------------------------------------------------------------
#pragma argsused
int main(int argc, char **argv)
{
// no headers
printf ("Content-Type: text/html\n\n");
printf ( "<html>\n" );
printf ( "<head>\n" );
printf ( "<title>hello world</title>\n" );
printf ( "</head>\n" );
printf ( "<body bgcolor=\"yellow\">\n" );
printf ( "<hr>\n" );
printf ( "<h1><font color=\"blue\">\n" );
printf ( "<center>\n" );
printf ( "Hello World" );
printf ( "</font></h1>\n" );
printf ( "</center>\n" );
printf ( "<hr>\n" );
printf ( "</body>\n" );
printf ( "<html>\n" );
return 0;
}
Please compile with bcb6. If that does not run you can get helloworld.exe
compiled and linked with bcb3 from me. If the latter then does run I will
consider eating my hat.
> You may also try my other CGIs compiled using BCB5 under exacting the same
> conditions.
> http://www.colips.org/cgi-bin/testcgi/bcb5cgi1.exe
>
> This program works.
Indeed.
> I was told by the Singapore support person that CGIs compiled by BCB6 will
> not run under Windows 2003.
The Support person of which software/company ? Did you ask for the reason too ?
Hans.
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Lua Kim Teng
Date: Thu, 08 Jul 2004 16:16
Date: Thu, 08 Jul 2004 16:16
110 lines
3891 bytes
3891 bytes
Dear Hans,
Sorry, forget to mention that I began my project as a New Web Server
Application, under Standard alone executable CGI. I am using WebModules
components.
Regards,
Lua KT.
"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:40ebe2cd@newsgroups.borland.com...
> Lua Kim Teng wrote:
>
> > My program is a simplest one, one line only:
> >
> > Response->Content="Hello";
>
> That is not the simplest one. Moreover I asked you if you used
> special components or techniques. So you are using a special
> component that has a property Response.
>
> Which component is that ? It is not TIdHTTP is it ? As you
> would not need IIS at all then.
>
> > I am using Stand alone CGI. I transfer the program called bcb6cgi1.exe
to my
> > Windows 2003 server. I set the IIS to allow execution of
> >
> > http://www.colips.org/cgi-bin/testcgi/bcb6cgi1.exe
> >
> > and I received:
> > HTTP 500 - Internal server error
> > Internet Explorer
> > If you do not believe, please run the above URL. I am sure you will get
the
> > same result.
>
> I did. I got a specific errorreport:
> Internal Server Error 500
> Exception: EAccessViolation
> Message: Access violation at address 77F4831D in module 'ntdll.dll'. Write
of
> address 40006D09
>
> So are you using a NT dll on Windows 2003 Server ?
>
> > Please give me your CGI and let me run on my machine.
>
> helloworld.cpp:
>
> #pragma hdrstop
> #include <condefs.h>
> #include <stdio.h>
>
>
>
//--------------------------------------------------------------------------
-
> #pragma argsused
> int main(int argc, char **argv)
> {
> // no headers
> printf ("Content-Type: text/html\n\n");
> printf ( "<html>\n" );
> printf ( "<head>\n" );
> printf ( "<title>hello world</title>\n" );
> printf ( "</head>\n" );
> printf ( "<body bgcolor=\"yellow\">\n" );
> printf ( "<hr>\n" );
>
> printf ( "<h1><font color=\"blue\">\n" );
> printf ( "<center>\n" );
>
> printf ( "Hello World" );
>
> printf ( "</font></h1>\n" );
>
> printf ( "</center>\n" );
> printf ( "<hr>\n" );
> printf ( "</body>\n" );
> printf ( "<html>\n" );
>
> return 0;
> }
>
> Please compile with bcb6. If that does not run you can get helloworld.exe
> compiled and linked with bcb3 from me. If the latter then does run I will
> consider eating my hat.
>
> > You may also try my other CGIs compiled using BCB5 under exacting the
same
> > conditions.
> > http://www.colips.org/cgi-bin/testcgi/bcb5cgi1.exe
> >
> > This program works.
>
> Indeed.
>
> > I was told by the Singapore support person that CGIs compiled by BCB6
will
> > not run under Windows 2003.
>
> The Support person of which software/company ? Did you ask for the reason
too ?
>
> Hans.
>
>
>
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Hans Galema
Date: Thu, 08 Jul 2004 19:04
Date: Thu, 08 Jul 2004 19:04
11 lines
1475 bytes
1475 bytes
Lua Kim Teng wrote: > Sorry, forget to mention that I began my project as a New Web Server > Application, under Standard alone executable CGI. I am using WebModules > components. Never heard of "New Web Server". But ... ? Does helloword.exe run ? Hans.
Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
Author: Lua Kim Teng
Date: Fri, 09 Jul 2004 16:18
Date: Fri, 09 Jul 2004 16:18
28 lines
2023 bytes
2023 bytes
Your program is compiled and run successfully. The problem is with the project created under New Web Server Application. Please take these steps: 1. start BCB6 2. select File|New|Other 3. click Web Server Application 4. select cgi standalone executivable and continue to create CGI program using TWebModule components as guided by IDE. Lua "Hans Galema" <dontusethis@dontusethis.nl> wrote in message news:40ed9a81$1@newsgroups.borland.com... > Lua Kim Teng wrote: > > > Sorry, forget to mention that I began my project as a New Web Server > > Application, under Standard alone executable CGI. I am using WebModules > > components. > > Never heard of "New Web Server". > > But ... ? Does helloword.exe run ? > > Hans.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads