Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enums and parameters question
Message
De
01/11/2002 08:39:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
01/11/2002 08:34:39
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00717746
Message ID:
00717748
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
>Hi!
>
>I am writing a wrapper for a COM API and for the first time have come across the need to pass in parameters that have the following kind of "OR" syntax :-
>
>
>Set oArchive = oAccount.GetSpecialArchive(DvArchivePersonalIn)
>Set oItems = oArchive.GetArchiveEntries(DvFilterDefault Or DvFilterUnViewed)
>
>
>The enumerated list is shown below (shortened for brevity). How do you handle this type of thing? How do you pass "OR" values in a single parameter?
>
>Any help very much appreciated.
>
>Best
>
>
>typedef enum {
>DvFilterNone = 0,
>DvFilterError = 0x1,
>DvFilterCorrect = 0x2,
>DvFilterConclusion = 0x4,
>DvFilterAll = DvFilterError | DvFilterCorrect,
>DvFilterUnViewed = 0x40,
>DvFilterDefault = DvFilterError | DvFilterCorrect | DvFilterConclusion | DvFilterAll
>} DvItemFilterBits;
>
Add the values.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform