CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How to check a function exist?

    I need to find out if a function exist before calling the function in VB.


  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How to check a function exist?

    If it is a VB function, when you compile before run, Cntrl+F5 ( or set the "Compile on demand" on options tab), VB will say that the particular fn doesn't exist.

    If it is a dll function, you are linking at run time, then put a On Error Goto Hell and look for error "Dll function not found (453)" or "Error loading dll (48)" etc. Same for Act-x comps also

    But, I am wondering if it is possible to get a list of functions for an Active-x component?! at runtime.
    At design time, you can add a reference and get the list of functions. will Check this!


    RK

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured