Re: Bug in 0.7 ?

ace jones <[email protected]> Tue, 19 Apr 2005 20:50:56 -0700
Newsgroups gmane.comp.finance.libofx.devel
Message-ID <[email protected]>
On Tue, 2005-04-19 at 18:25, Martin Preuss wrote:
> On Wednesday 20 April 2005 03:15, Martin Preuss wrote:
> [...]
> > > Oh, I misunderstood you then.  I can look at it.  If you move the
> > > definition out, then you have to change the declaration to include the
> > > number of items in the arry.  When defining it and declaring it at the
> > > same time you don't.  I'm willing to bet that's what you ran into.
> >
> > Exactly ;-)
> What I meant was: You're right, this was the reason for the error message (I 
> realized that), but I was hoping to find  a way to omit the number of items 
> in the header file, so that one would not have to adapt it later when some 
> new import/export formats are added... But that didn't work out.

Aha.  In that case you'd have to make a new API that returned a pointer
to a static array.  Shouldn't be too hard.

The current #ifndef solution is probably not sustainable.  I'd say
hard-coding the number of entries is preferable to that as an interim
solution.

</Ace>



-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728