Either the constructor of Connection, or the Query() method throws an exception of type const char *. You can catch it, by enclosing the calls with try, and adding a catch block, like:
Say in unix (AIX) m/c, I am logged in with s1 user and want to start process p1 with user credentials of s2.
I can do manually in this way:
#su - s2
#enter password for s2> somePassword
$ p1
But all this I have to do through a java program. How to pass the password through program.
One... (1 Reply)
Hi all,
I tried writing an .ec program connecting to informix database
from solaris platform Sun 5.7
informix version that i had to used when i compiled the program was 9.21.UC3
the binary when i ported solaris box with informix version 9.40.UC5 i am unable to run that
i am encountering... (0 Replies)
Hi guys
I tried to convert this c++ code to c shell script but there are some bugs and I don't know how to solve it.
This code prints the three variables in decreasing order:
int main()
{
int x,y,z;
cin >> x >> y >>z;
if ( x < y )
if ( x < z )
if ( y < z )
cout << x <<" " <<... (2 Replies)
hey everybody,
i am currently working on solaris 10 os on a m5000 server. my problem is when i want the exact size of a program in execution, i am unable to do it. earlier i thought the RSS field of prstat but because of its large size it cant be the size. pmap -x shows some output but it includes... (2 Replies)
I am entirely new to shell scripting and would like to create a script to execute a java program called Main. I've already compiled it and placed the .java and .class files at /root/javaTest. Next I made a shell script that simply contained: java /root/javaTest/Main . I made the script... (2 Replies)
Hello,
Please help me out to execute this perl program:
#!/usr/bin/perl -w
use strict;
use Win32::OLE qw(in with);
use Win32::OLE::Const 'Microsoft Excel';
$Win32::OLE::Warn = 3; # die on errors...
# get already active Excel application or open new
my... (6 Replies)
Hello,
Met a problem when compiling a C++ program from source code without error, but when ran it there was always an error message:
./Ray: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directoryAs the error points to openmpi which was... (0 Replies)
Hello Friends,
I have written a code for the unisex bathroom which makes a policy that when a woman is in the bathroom only other women may enter, but not men, and vice versa. This program consists of four functions which a user defines but these functions are not properly working while... (4 Replies)
Discussion started by: Ravi Tej
4 Replies
LEARN ABOUT DEBIAN
zipios_gzipoutputstream
zipios::GZIPOutputStream(3) Library Functions Manual zipios::GZIPOutputStream(3)NAME
zipios::GZIPOutputStream -
SYNOPSIS
#include <gzipoutputstream.h>
Public Member Functions
GZIPOutputStream (std::ostream &os)
GZIPOutputStream constructor.
GZIPOutputStream (const std::string &filename)
GZIPOutputStream constructor.
void setFilename (const string &filename)
void setComment (const string &comment)
void close ()
Calls finish and closes the stream.
void finish ()
Finishes the stream.
virtual ~GZIPOutputStream ()
Destructor.
Detailed Description
GZIPOutputStream is an ostream that writes the output to a gz file. The interface approximates the interface of the Java GZIPOutputStream.
Definition at line 17 of file gzipoutputstream.h.
Constructor & Destructor Documentation
zipios::GZIPOutputStream::GZIPOutputStream (std::ostream &os) [explicit]
GZIPOutputStream constructor. Parameters:
os ostream to which the compressed zip archive is written.
Definition at line 13 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::GZIPOutputStream (const std::string &filename) [explicit]
GZIPOutputStream constructor. filename to write the gzip archive to.
Definition at line 22 of file gzipoutputstream.cpp.
zipios::GZIPOutputStream::~GZIPOutputStream () [virtual]
Destructor.
Definition at line 51 of file gzipoutputstream.cpp.
Member Function Documentation
void zipios::GZIPOutputStream::close ()
Calls finish and closes the stream.
Definition at line 39 of file gzipoutputstream.cpp.
void zipios::GZIPOutputStream::finish ()
Finishes the stream.
Definition at line 46 of file gzipoutputstream.cpp.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::GZIPOutputStream(3)