Results 1 to 5 of 5

Thread: Odl

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Odl

    Anyone know where/how I can get info on how to write ODL code?


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

  2. #2
    Default Member Bonnie West's Avatar
    Join Date
    Jun 2012
    Location
    InIDE
    Posts
    4,060
    Last edited by Bonnie West; Jul 30th, 2014 at 07:21 AM.
    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
    24,482

    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
    4,060

    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.

    EDIT

    See also the Creating a Type Library section of the Notes for Developing DLLs for use with Microsoft® Visual Basic® v5.0.

    EDIT 2

    Yet another excellent IDL tutorial: IDL For VB Tutorial
    Last edited by Bonnie West; Apr 7th, 2016 at 11:21 AM.
    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
    24,482

    Re: Odl

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

Tags for this Thread

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