Announcement

Collapse
No announcement yet.

PwrDev - Update for PB/WIN90 or CC5.0

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

  • Edwin Knoppert
    replied
    In the mean time i have been updating PwrDev but also extended it somewhat.
    PwrDev 2.x users can now download a version which also can add a ready to go class module.
    It creates a module with a class skeleton, this will simplify creating objects.
    Additional remarks for specific parts are added like IUnknown IDispatch and IAutomation for example.
    After all.. it's easier to remove keywords than to add

    The new object stuff is really neatly done.
    No real difficulties to create an ordinary class!

    Make sure you visit the HB announcement forum to stay up-to-date.

    Leave a comment:


  • Michael Mattias
    replied
    Someone here had done a "PB" version of the header file for some version of the Haru PDF library, and I was trying to match it vs. the official documentation and ran into "BYVAL AS ANY" in the DECLARES.

    Comparing was really hard becase I could not figure out what "BYVAL AS ANY" meant; then I realized it was hopelessly ambiguous and sent the bug report.

    IIRC, if you passed a LONG in your call, it passed that long by value cast as a long, which is what the library wanted. Another case where something "works" but only via serendipity.

    Leave a comment:


  • Edwin Knoppert
    replied
    I was just kidding..

    No worries, i'll change my code

    Leave a comment:


  • Michael Mattias
    replied
    C'mon Edwin, what could "BYVAL AS ANY" possibly mean?

    Code:
    DECLARE FUNCTION foo LIB "X.DLL" ALIAS "FOO" (BYVAL X AS ANY) AS LONG 
    
    ....
           LOCAL  Y AS SINGLE| DOUBLE |EXT|LONG| INTEGER|QUAD
    
          CALL Foo (Y)
    Exactly how many bytes in what format should the compiler push and FOO() expect on the stack?

    With something reasonable, eg....
    Code:
    DECLARE FUNCTION foo LIB "X.DLL" ALIAS "FOO" (X AS ANY) AS LONG
    .. the compiler knows to push a 32-bit address, and that's what FOO() knows it's getting.


    MCM

    Leave a comment:


  • Edwin Knoppert
    replied

    Leave a comment:


  • Michael Mattias
    replied
    >Related that ByVal As ANY may no longer use ByVal

    That's something I had reported as a bug because when you think about it, 'BYVAL AS ANY' doesn't make any sense at all.

    Leave a comment:


  • Edwin Knoppert
    replied
    Wow, the new combrowser seems very good!!

    Leave a comment:


  • Edwin Knoppert
    started a topic PwrDev - Update for PB/WIN90 or CC5.0

    PwrDev - Update for PB/WIN90 or CC5.0

    For all PwrDev v2.x users, there is this update on the website waiting for you.
    It has been briefly tested and a small part (IPictureBox) will not work.
    (Related that ByVal As ANY may no longer use ByVal)

    The upcomming days more testing and rewritting will be done.

    Thanks,
Working...
X