Clearing memory in structures

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In C, it's usually necessary to clear the memory in structures before passing
them to certain WinAPI functions. How would one do that in VB.NET?
 
Dan said:
In C, it's usually necessary to clear the memory in structures before
passing
them to certain WinAPI functions. How would one do that in VB.NET?

You don't need to do that because VB automatically initializes numeric
variables with value 0.
 
Thanks, but I wasn't asking about numeric variables. Does it initialize all
the memory contained in a structure to 0? And, supposing that I did want to
clear the memory in structure, how would I do that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top