Announcement

Collapse
No announcement yet.

C Conversion - Please Help!!!

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

  • C Conversion - Please Help!!!

    I need to convert a single line of C code to PBWIN.
    Could anyone offer any suggestions?

    UCHAR szName[100][30];
    This is used for storing a asciiz string and its length
    This is going to be passed into an existing DLL so it has
    to be compatible.

    Is the PBWIN version:
    DIM szName(100, 30) AS LONG

    OR

    DIM szName(100) AS ASCIIZ * 30

    OR

    Type strStuff
    szName AS ASCIIZ * 30
    NameLen AS LONG
    End Type

    Thanks

    ------------------
    Ben Clark
    [email protected]
    If at first you don't succeed, destroy all evidence that you tried.

  • #2
    Overall it's defining a ~3000 byte buffer, so it will probably look like this:
    Code:
    DIM szName(100) AS ASCIIZ * 30  ' or 30 elements of 100 Bytes!  

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Awesome!

      Thanks

      ------------------
      Ben Clark
      [email protected]
      If at first you don't succeed, destroy all evidence that you tried.

      Comment

      Working...
      X