how can i create a dll ??

Good morning, i'm working with macro in sw 2007 but i wantknow if there is a way to create a .dll using api and visual basic6. can you give me an example ???
thanks.SolidworksApi macros