DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: API enum

  1. #1
    Join Date
    Feb 2007

    API enum

    How can I use the enum in a C++ dll file.
    I am calling the functions just fine, but I can't find info on using the enums.

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Unless the DLL is a .NET or COM DLL, you cannot use the enums directly from the DLL. In most cases, you would declare symbolic constants in your .NET code which correspond to the enum values, e.g.:

    Const ENUM_VALUE_1 As Integer = 1
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. API Support Manager - Microsoft adCenter
    By jubalince in forum Careers
    Replies: 0
    Last Post: 03-13-2007, 07:36 PM
  2. enum type in COM
    By da in forum .NET
    Replies: 0
    Last Post: 05-22-2003, 12:12 PM
  3. wsock32 API
    By scott gilbert in forum VB Classic
    Replies: 4
    Last Post: 01-17-2001, 09:26 PM
  4. How to Use SendMessageCallBack API?
    By Armando Cardenas in forum VB Classic
    Replies: 10
    Last Post: 07-12-2000, 02:22 PM
  5. How to Use SendMessageCallBack API?
    By Armando Cardenas in forum VB Classic
    Replies: 0
    Last Post: 07-10-2000, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.