DB2 - ESQL visual c++ problem 
Author Message
 DB2 - ESQL visual c++ problem

I currently support our product on multiple DBs on multiple OSs. Our product
is written in visual c++ on win 98 informix using esql. (all backend jobs,
no GUI). We test and debug using visual c++ and ported to AIX informix and
DB2. I would like to build a project that also supports a visual c++ version
using DB2. The problem I am having is two fold, (1) has anyone found a way
to execute db2 and precompile and bind from inside of VC using custom build
options. I have tried executing the db2 command window and db2.exe passing
it a script file and many other trials. Most of the time it brings up an
empty db2 command window and hangs. (Any expertise in this area would help
out alot)
The (2) problem is when I precompile the source from the db2 command window
(directly in the db2). the precompiler does not seem to ignore C statements
embedded within c preprocessing statements that I use for informix (#if
defined INFOMIX ...) It works just fine on AIX when precompiling the exact
same code. I tried moving the precompiled code from AIX up to visual c++ and
compiled and linked the code just fine but hit the dreaded package/bind time
stamp problem. This would be an option if some one could also tell me a
trick to fool the package time stamp problem.

I know this is long, but need help badly

Thanks for you time upfront.

Ron



Mon, 03 Mar 2003 14:34:53 GMT
 DB2 - ESQL visual c++ problem



Quote:
> I currently support our product on multiple DBs on multiple OSs. Our product
> is written in visual c++ on win 98 informix using esql. (all backend jobs,
> no GUI). We test and debug using visual c++ and ported to AIX informix and
> DB2. I would like to build a project that also supports a visual c++ version
> using DB2. The problem I am having is two fold, (1) has anyone found a way
> to execute db2 and precompile and bind from inside of VC using custom build
> options. I have tried executing the db2 command window and db2.exe passing
> it a script file and many other trials. Most of the time it brings up an
> empty db2 command window and hangs. (Any expertise in this area would help
> out alot)
> The (2) problem is when I precompile the source from the db2 command window
> (directly in the db2). the precompiler does not seem to ignore C statements
> embedded within c preprocessing statements that I use for informix (#if
> defined INFOMIX ...) It works just fine on AIX when precompiling the exact
> same code. I tried moving the precompiled code from AIX up to visual c++ and
> compiled and linked the code just fine but hit the dreaded package/bind time
> stamp problem. This would be an option if some one could also tell me a
> trick to fool the package time stamp problem.

> I know this is long, but need help badly

> Thanks for you time upfront.

> Ron

Hi,

You need to create a bindfile when precompiling and bind this bindfile to
the database.

Hope this helps

Kind regards, Gert



Mon, 03 Mar 2003 03:00:00 GMT
 
 [ 2 post ] 

 Relevant Pages 

1. Fw: Compile and Debug esql/c with Visual C++ 5.0 Or Borland C++ Builder 4.0

2. Problems compiling 32 bit code with ESQL/C, Online V6, Visual C++

3. Using ESQL/C 7.20 with Visual C++ 5.0

4. Visual C++ and ESQL/C

5. ESQL and Visual C++ 4.1 for WindowsNT 3.51

6. Problem with Visual SourceSafe and Visual C++

7. IA-Cedar Rapids Area-263612--DB2-Visual Basic-ORACLE-DB2,Visual Basic and Oracle

8. PowerBuilder, Visual Basic, C++, Oracle, Sybase, UNIX, Cobol, DB2/SQL, CICS, IMS Jobs

9. Informix 6.0 ESQL C++ problem???

10. Problem using c++ with esql

11. Linking problems with ESQL and C++


 
Powered by phpBB® Forum Software