'sizeof' in VB 
Author Message
 'sizeof' in VB

Is there a function available in VB or the API to return the size of a
structure for which it is sometimes asked in some API calls ? If the
only alternative is working out the size oneself, what is used for the
size of  a LPSTR element ? Would it be 1 byte - for the null char?

Steve G



Sat, 24 Mar 2001 03:00:00 GMT  
 'sizeof' in VB
You should be able to use LENB(structure) to get the "size of" the
structure.

Hope it helps.
adam

Is there a function available in VB or the API to return the size of a
structure for which it is sometimes asked in some API calls ? If the
only alternative is working out the size oneself, what is used for the
size of  a LPSTR element ? Would it be 1 byte - for the null char?

Steve G



Sat, 24 Mar 2001 03:00:00 GMT  
 'sizeof' in VB

Quote:

>Is there a function available in VB or the API to return the size of a
>structure for which it is sometimes asked in some API calls ? If the
>only alternative is working out the size oneself, what is used for the
>size of  a LPSTR element ? Would it be 1 byte - for the null char?

Long
Pointer
String

The length of LPSTR is 4 bytes.

Dennis

Quote:

>Steve G



Sat, 24 Mar 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. **************!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Help me !!!!!!!!!!!!!!!!!!!!!!!!'''''''''''''''''''''''*************

2. VB 5's dbgrid x VB 6's Datagrid

3. 'Poke'ing and 'peek'ing other process's memory in VB6

4. _,.+*'^'*+.,_ ACTiVEX OCX TRADE _,.+*'^'*+.,_

5. Runtime error ''800a01b6''

6. VBScript 'private'/'public'

7. Help:Using VB Funtions In Access With DLL's, EXE's

8. Opening '.MSG' files from VB

9. can't reference .NET assembly's classes in VB

10. VB.net 'Ceil'-Function?

11. 'Function Pointers' in VB

12. vb.net SITE's Any really good ONE's TIA

 

 
Powered by phpBB® Forum Software