Results 1 to 7 of 7

Thread: VB Convert

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    17

    VB Convert

    if(2 ^ $ControlBitPos = (Asc(Mid($DecompData, $ControlPos, 1)) And 2 ^ $ControlBitPos))

    Can someone convert that to PHP for me? Its visual basic and I started it but if you notice it still has the And part in it. I don't know how to convert that.

  2. #2
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    Re: VB Convert

    Hi there,
    Literally translated it would be this.
    Code:
    if(pow(2, $ControlBitPos) == (ord(substr($DecompData, $ControlPos, 1)) && pow(2, $ControlBitPos))
    See if it works.

    By the way, you posted in the PHP CodeBank section which is actually only to post code.
    Questions can be asked in the PHP Section.
    I'll flag a moderator to move this thread, next time please post in the other sections
    Delete it. They just clutter threads anyway.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    17

    Re: VB Convert

    I already made custom php functions for all the functions in that line but thanks. And thanks for writing that for me I'll see if it works.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: VB Convert

    Moved From The CodeBank

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: VB Convert

    Quote Originally Posted by pudge1 View Post
    if(2 ^ $ControlBitPos = (Asc(Mid($DecompData, $ControlPos, 1)) And 2 ^ $ControlBitPos))

    Can someone convert that to PHP for me? Its visual basic and I started it but if you notice it still has the And part in it. I don't know how to convert that.
    Please stop asking the same question multiple times.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Aug 2009
    Posts
    17

    Re: VB Convert

    I have never asked that question before.

  7. #7
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: VB Convert

    if you want to get technical, you did in 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