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

Home -> Community -> Usenet -> c.d.o.misc -> Newbie question on ProC++

Newbie question on ProC++

From: ngpl <ngpl_at_cyberway.com.sg>
Date: 28 Aug 1998 05:39:43 GMT
Message-ID: <01bdd245$fca59b90$64010a80@griffon>


 Hello,

 Here is a question on ProC/C++. Hope somebody can help.  

 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/C++ 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:39:43 CDT

Original text of this message

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