#include <sqlca.h> or EXEC SQL INCLUDE SQLCA
Which is more appropriate when?
I use ProC 8.1.7 to generate *.cpp files from *.pc files, and then use Visual Studio to build my client from the *.cpp files.
In my *.pc source, should I use
#include <sqlca.h>
or
EXEC SQL INCLUDE SQLCA
The manual says you can use either one, but doesn't explain if/when one statement is better than the other.
Are they truely equivalent?
Which is better when and why?
If I use both in the same source file, could I be in trouble?
If I use '#define SQLCA_STORAGE_CLASS extern', then I assume that all of my *.pc files will use the same sqlca. Where would the sqlca actually get defined?
Respectfully,
Andrew Sackett
Andrew.Sackett@wcom.com