Re: Wrapping GetVolumeInfo: help required

new topic     » goto parent     » topic index » view thread      » older message » newer message

OOPs, guess I messed up some on that last one

+ 1
 
 You do this:
       allocate_string(repeat(' ',nVolumeNameSize))
 
 I do this:
       lpVolumeNameBuffer = allocate(nVolumeNameSize+1)
       mem_set(lpVolumeNameBuffer,0,nVolumeNameSize+1)
 
and the extension to the whole thing and the conclusion:

vol_name  = peek({lpVolumeNameBuffer,nVolumeNameSize})
free(lpVolumeNameBuffer)
 
 Euman
 euman at bellsouth.net

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu