Software FX Posted November 30, 2000 Report Share Posted November 30, 2000 Software FX is aware of the problem you mention, however, since delph 5 and Powerbuilder uses enumerated types as well we desided to use our enumerated type library to ensure the compatibility with most of the plataforms in the market. We recommend for you to please change the way you use your enumerated types. -- Regards, Percy Dyer Software FX, Inc. Tech Support Please reply to: Cfxie@softwarefx.com ================================================ "Stephan Klaffer" <stephan.klaffer@decisionworks.co.uk> wrote in message news:mYsApNBRAHA.1424@sfxserver.softwarefx.com... > Hello, > > I have a problem with the actual way the type library is written. In VB an > enumerated type is basically treated as a number of constants, and hence > those can be used as bit fields. But a proper enumerated type can't do > this - it can only take on one of the specified values. Now, since our > application uses "real" enumerated types, we have a severe problem with the > type library. It specifies all the enumerated types nicely, and in some > cases (like the gallery) it works as I expect it. But other enumerated types > are purely used as bit fields, making it hard to use them with our > enumerated type implementation. This is because the API returns values for > enumerated types that are not specified in the type itself. Since COM is > treating is as integeres, COM does not have a problem. Since VB treates all > those as global constants, VB does not have a problem. VC++ even does not > bother to generate enumerated types - it simply uses integers (even worse, > if you ask me...). > > What I am really asking for is a proper defined type library, that has > enumerated types defined that contain all possible values for this type (and > in case of bit fields ALL possible combinations that can be returned by the > API). I could start and do this by hand, but I fear this could take rather > long. Is there any possibility that you can change that or somehow make sure > that the API only returns values that are defined in the enumeated types?? > > Thanks a lot in advance > > Stephan Klaffer > DecisionWorks London > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.