Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Question on ProC/C++.
Hello,
Thanks in advance.
I have a header file that contains all the constant that would be used
later.
I need to put in the declare section so that the precompiler can 'see'
these
constant when it was being used.
In DbConstant.H :
EXEC SQL BEGIN DECLARE SECTION;
const MSG_LEN = 10;
.....
EXEC SQL END DECLARE SECTION;
In test1.C :
EXEC INCLUDE DbConstant.H;
EXEC SQL BEGIN DECLARE SECTION;
char Buffer[MSG_LEN]; <------------------used here.
Does anybody has any suggestion on how to solve this problem? Thanks for your patience in reading this massive chunk of stuff. By the way, is there any good book on ProC/C++ programming?
Thanks. Received on Tue Sep 01 1998 - 01:32:56 CDT