Announcement

Collapse
No announcement yet.

PowerBASIC COM Browser Usage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PowerBASIC COM Browser Usage

    Hello,

    When I create SAPI.INC, I get errors in reference in reference to the TYPE tagSTATSTG. It has variables that are of the Tag__FILETIME type (defined later). When I copy the TYPE Tag__FILETIME and place it _above_ TagSTATSTG, this appears to fix the problem. I have to do this for a _lot_ of TYPEs to get it to compile.

    I start the PowerBASIC COM Browser, find "Microsoft Speech Object Library 5.0" (sapi.dll), double-click on it, then immediately click on "Save As" and save it as SAPI.INC.

    Am I doing something wrong?

    Thanks!

    -John
    LOCAL MyEMail AS STRING
    MyEmail = STRREVERSE$("53pmohtj") & CHR$(64) & STRREVERSE$("liamg") & CHR$(46) & STRREVERSE$("moc")

  • #2
    Hi John,

    You are doing it correctly. The COM Browser reads the User Defined Types in the order they appear in the Type Library. I know it would be nice if the COM Browser put them in the correct order, but this would require a lot of work to determine the correct order with so many UDT's that reference each other. Maybe in the next version? You can always send a request into support for this.
    Sincerely,

    Steve Rossell
    PowerBASIC Staff

    Comment


    • #3
      Hmm, sounds like what we need is forward referencing for Types and Unions, huh?

      CC5/Win9 added support only for forward referencing of procedures.

      I assume all the NFSs on file requesting forward referencing support remain on 'the list' until the next round, as this is but one small step for man rather than one giant leap for mankind. (Don't forget about equates) .

      MCM
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment

      Working...
      X