Api ne rabotaet... Ona dolzhna peredat' masiv tipov, no etogo ne proisxodit, proga vyletaet. V chem mozhet byt' delo? VB:
Declare Function sFunc Lib "mylib.Dll" (byref Elements() as STYPE) as Long
Vot kod c++ versii:
_declspec(dllexport) HRESULT _stdcall sFunc(STYPE *Elements);