Results 1 to 1 of 1

Thread: Error using COM

  1. #1
    Join Date
    Jun 2004

    Error using COM


    I'm using a COM object from Xceed Software to create self extracting zip files (.exe). Everything works pretty good except one line:

    PHP Code:
    $xZip->SfxMessages(3) = "This is my message"
    I get an error on this line:

    PHP Fatal error: Can't use method return value in write context in test.php on line 133

    In ASP the same line would read:

    xZip.SfxMessages(xsmIntro) = "This is my message"

    The index of xmsIntro is 3, and I get the current value of this message if I do:

    PHP Code:
    $value $xZip->SfxMessages(3); 
    Seems like I cannot write to it. Is this a "weakness" in PHPs implementation of COM stuff?

    EDIT: if I do:

    PHP Code:
    $xZip->SfxMessages[3] = "This is my message"
    instead, I get this error:

    Error [0x8002000e] Invalid number of parameters.

    Anybody know of some other way of creating self extracting zip files (.exe)?

    Last edited by Lubox; 05-10-2007 at 02:51 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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