Jason,
You need to pre-dimension an array of Longs of the correct size to hold the list returned from the scadSDK_cogoGetHorizontalAlignments. You then feed the first element of the array to the function.
Dim lAlignCount as Long Dim lProjectID as Long Dim lHorizAlignIDs() as Long 'Array of Longs 'Get number of horizontal alignments for a given project lAlignCount = scadSDK_cogoCountNumberOfHorizontals(ProjectID) 'Resize the array of Longs to be equal to the number of alignments. Zero based, hence the -1 ReDim lHorizAlignIDs(lAlignCount - 1) 'The InRoads DLL will populate your array of Longs with the ID's scadSDK_cogoGetHorizontalAlignments lHorizAlignIDs(0), lAlignCount, lProjectID
Hope that helps. It took me a very long time to figure out how to work with the DLL calls.
Brett