Xref: alice comp.databases.oracle.server:69187 comp.databases.oracle.tools:33407
Path: alice!news-feed.fnsi.net!newsxfer.visi.net!feeder.qis.net!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail
From: Alex Vinokur <alexander.vinokur@telrad.co.il>
Newsgroups: comp.databases.oracle.server,comp.databases.oracle.tools,comp.database.oracle.misc,comp.database.oracle
Subject: Re: Pro*C/C++, __FILE__ and __LINE__
Date: Sun, 10 Oct 1999 09:18:10 GMT
Organization: Deja.com - Before you buy.
Lines: 96
Message-ID: <7tplkd$pch$1@nnrp1.deja.com>
References: <7tiar2$o48$1@nnrp1.deja.com> <37FDD08D.E0306F37@deutsche.post.de>
X-Article-Creation-Date: Sun Oct 10 09:18:10 1999 GMT
X-Http-User-Agent: Mozilla/4.51 [en] (X11; I; SunOS 5.6 sun4m)
X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 212.25.72.130
X-MyDeja-Info: XMYDJUIDalexv7274

In article <37FDD08D.E0306F37@deutsche.post.de>,
  Arndt Binninger <a.binninger2@deutsche.post.de> wrote:
> Hi Alex,
>
> try Precompiler-Option: LINES=YES.
>
> In my error-code I use:
>
>  printf("\tin Zeile %d of %.*s.\n\n", oraca.oraslnr,
>         oraca.orasfnm.orasfnml,
>         oraca.orasfnm.orasfnmc);
>


Thank you very much for your answer.
Using Precompiler-Option: LINES=YES
   I have got a desirable result
   with __LINE__ and __FILE__.

   But I didn't have a desirable result
   with oraca.oraslnr,
        oraca.orasfnm.orasfnml,
        oraca.orasfnm.orasfnmc.
   What is wrong?

        Thanks in advance,
        Alex



//#########################################################
//------------------- Pro*C/C++ code : BEGIN --------------
#include <stdio.h>
#include <sqlca.h>
#include <oraca.h>
EXEC ORACLE OPTION (ORACA=YES);
int main()
{
        printf ("\t%s %d\n", __FILE__, __LINE__); /* ttt.pc, Line#7 */
        printf("\tin Zeile %d of %.*s.\n\n", oraca.oraslnr,
                 oraca.orasfnm.orasfnml,
                 oraca.orasfnm.orasfnmc);


        return 0;
}

//------------------- Pro*C/C++ code : END ----------------



//#########################################################
//------------------- Compilation : BEGIN -----------------

proc  iname=ttt LINES=YES

Pro*C/C++: Release 8.0.5.0.0 - Production on Sun Oct 10 9:48:35 1999

(c) Copyright 1998 Oracle Corporation.  All rights reserved.

System default option values taken from:
/home/u01/app/oracle/product/8.0.5/precomp/admin/pcscfg.cfg

[snip]


//------------------- Compilation : END -------------------



//#########################################################
//------------------- Running Results : BEGIN -------------

        ttt.pc 7
        in Zeile 0 of .


//------------------- Running Results : END ---------------


//#########################################################
//------------------- System ------------------------------

=== Oracle 8.0.5
=== Pro*C/C++ : Release 8.0.5.0.0
=== SunOS 5.6

//---------------------------------------------------------

//#########################################################




Sent via Deja.com http://www.deja.com/
Before you buy.
