API enum


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
    Posts
    49

    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
    Location
    Portland, OR
    Posts
    8,387
    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
    http://www.philweber.com

    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, 08:36 PM
  2. enum type in COM
    By da in forum .NET
    Replies: 0
    Last Post: 05-22-2003, 01:12 PM
  3. wsock32 API
    By scott gilbert in forum VB Classic
    Replies: 4
    Last Post: 01-17-2001, 10:26 PM
  4. How to Use SendMessageCallBack API?
    By Armando Cardenas in forum VB Classic
    Replies: 10
    Last Post: 07-12-2000, 03:22 PM
  5. How to Use SendMessageCallBack API?
    By Armando Cardenas in forum VB Classic
    Replies: 0
    Last Post: 07-10-2000, 03: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
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

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