Troy,
The 'Name' argument needs to be passed as a pointer. What works for me is to enclose the alignment name you are looking for with the StrPtr() function when sending it to the scadSDK_FindHorizonatalAlignmentByName() function. I assume this is converting the string variable into a pointer that the dll needs.
Hope that helps,
Brett