Odl-VBForums
Results 1 to 5 of 5

Thread: Odl

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    8,493

    Odl

    Anyone know where/how I can get info on how to write ODL code?
    The better the information you give to begin with and the sooner you reply the sooner you will get help and get your problem resolved

    DISCLAIMER

    Anything I post is an example for demonstration purposes only and is not intended to be the solution to your request nor do I claim that it is. If you find that it is useful then it is entirely up to you to make whatever necessary changes you feel are adequate for your purposes.

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    3,130

    Re: Odl

    Here's the official documentation:

    Type Libraries and the Object Description Language
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0

    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    10,388

    Re: Odl

    I found this too, but it is pretty brief:

    Basics of an IDL file

    This is older but a little longer:

    Understanding Interface Definition Language: A Developer's Survival Guide

    This is nearly as ancient but might also be useful:

    Tame Visual Basic with IDL

    Also see chapter two of:

    Hardcore Visual Basic

    You probably want info on creating TLBs for use with standard DLLs, but most of what is written on the subject is about the main uses: COM and RPC type libraries.

    This is another thing that .Net tried hard to kill off, which may explain why so little is being written about it anymore.

  4. #4
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    3,130

    Re: Odl

    In the MSDN Library that came with Visual Studio 6.0, there is an article by Bruce McKinney entitled "Stealing Code with Type Libraries". It can be found under Technical Articles >> Visual Tools >> Visual Basic >> Extending Visual Basic with C++ DLLs.
    On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0

    Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Posts
    10,388

    Re: Odl

    Great find! I was looking for that on the web but didn't locate it.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.