Announcement

Collapse
No announcement yet.

Would anyone know how to convert this

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

  • Would anyone know how to convert this

    I need to convert this statement to powerbasic..

    MagWrite((BYTE *)buf, strlen(buf));

    I am using
    Declare Function MagWrite lib "X.dll" Alias "MagWrite" ( byVal A as string, lLen as long) as long

    and various other combos and I can not get this to work, and unfortunately
    there is no documentation regarding this on the sdk I purchased


    any help would be greatly appreciated
    thanks




    ------------------
    Sr. Software Development Engineer and Sr. Information Security Analyst,
    CEH, Digital Forensic Examiner

  • #2
    Originally posted by Thomas Tierney:
    I need to convert this statement to powerbasic..

    MagWrite((BYTE *)buf, strlen(buf));

    Declare Sub MagWrite(buf As Asciiz, ByVal LenBuf as Dword)

    Is it supposed to return a value??



    ------------------
    Scott Slater
    Summit Computer Networks
    www.summitcn.com
    Scott Slater
    Summit Computer Networks, Inc.
    www.summitcn.com

    Comment


    • #3
      Yes it is.. therefore a sub, I just tried it and it worked wonderfully
      thank you so much.. I was pulling my hair out


      ------------------
      Sr. Software Development Engineer and Sr. Information Security Analyst,
      CEH, Digital Forensic Examiner

      Comment

      Working...
      X