Results 1 to 22 of 22

Thread: [RESOLVED] How to use program to detect struct is contiguous memory or not ?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2017
    Posts
    250

    Resolved [RESOLVED] How to use program to detect struct is contiguous memory or not ?

    Hi~ ALL

    How to use program to detect data in struct is contiguous memory or not ?

    '=====

    Private Type Type_a1
    '---> is contiguous memory
    a1 As Long
    a2(11) As Long
    a3 As String * 8
    End Type

    Private Type Type_a2
    '---> is not contiguous memory : because a2() As Long
    a1 As Long
    a2() As Long
    a3 As String * 8
    End Type

    Private Type Type_a3
    '---> is not contiguous memory : because a3 As String
    a1 As Long
    a2(11) As Long
    a3 As String
    End Type
    Last edited by quickbbbb; Aug 1st, 2022 at 07:43 PM.

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