Excel_VBA_manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
// Terminacija biblioteka prije poziva destruktora<br />
AfxTermExtensionModule(BbDLL);<br />
}<br />
return 1;<br />
typedef SAFEARRAY * FPSAFEARRAY;<br />
short WINAPI sortpoljaV(FPSAFEARRAY *ppsa, int vel)<br />
{ short Elem;<br />
long donjagr, gornjagr, l;<br />
int a[NMAX],inc,i,j,v;<br />
if (*ppsa == NULL) // polje nije inicijalizirano<br />
return -4;<br />
if ((*ppsa)->cDims != 1) // broj dimenzija polja<br />
return -5;<br />
//donja i gornja granica polja<br />
if (FAILED(SafeArrayGetLBound(*ppsa, 1, &donjagr)) ||<br />
FAILED(SafeArrayGetUBound(*ppsa, 1, &gornjagr)))<br />
return -1;<br />
// čitanje elemenata polja<br />
for (l =donjagr; l