need help doing cgi with ORBit
- From: "Wrinkled Shirt" <wrinkledshirt hotmail com>
- To: orbit-list gnome org
- Subject: need help doing cgi with ORBit
- Date: Wed, 15 Aug 2001 01:24:19 -0700
Hi,
I'm trying to incorporate CGI and ORBit together using C. I've created a
program that outputs the following in a bash shell:
Content-type:text/html
<html><head><title>Hello!</title></head><body>
Testing the server...
Hello World!
</body>
But only outputs the following once it hits the web browser...
<html><head><title>Hello!</title></head><body>
Testing the server...
@
</body></html>
The c code in question which spouts the "Hello World!" phrase within the
client program is this...
res = helloworld_helloworld(server, &ev);
printf("%s\n", res);
The helloworld_helloworld code is as follows:
static CORBA_wchar *
impl_helloworld_helloworld(impl_POA_helloworld * servant,
CORBA_Environment * ev)
{
CORBA_wchar *retval;
retval = CORBA_string_dup("Hello World!");
return retval;
}
So I'm at a loss. Has anybody encountered this sort of thing? I've tried
changing from wchar to char, all sorts of things, but I'm getting no love
here. Is there something obvious I'm doing wrong here?
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]