Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Newbie question on ProC/C++
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.HEXEC 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.
Thank-you in advance. Received on Fri Aug 28 1998 - 00:46:21 CDT
![]() |
![]() |