Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Newbie question on ProC/C++

Newbie question on ProC/C++

From: ngpl <ngpl_at_cyberway.com.sg>
Date: 28 Aug 1998 05:46:21 GMT
Message-ID: <01bdd246$f0ba5950$64010a80@griffon>


 Hello,

 Hope someone can help with this. Thanks first.

 I have a header file which contains some constants.  I need to put these constants between the declare section because I need to
 use these constants in the declare section of another file test.C.

 In DbConstant.H :
 EXEC SQL BEGIN DECLARE SECTION;
        const int MSG_LEN = 10;
 EXEC SQL END DECLARE SECTION;  In test1.C :

 EXEC SQL INCLUDE DbConstant.H

 EXEC SQL BEGIN DECLARE SECTION;

	char Buffer[MSG_LEN]; <-------------------- declared in DbConstant.H
 EXEC SQL END DECLARE SECTION; This works fine. I just have to precompile DbConstant.H. Now, I have another file test2.H that wants to use the constant MSG_LEN in DbConstant.H.
Does this mean I have to include all those proC header files and precompile this test2.H
as well?
Does anyone has a better suggestion to solve this problem?

Thank-you in advance. Received on Fri Aug 28 1998 - 00:46:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US