I have some graphic api declarations in a module, i had to declare them like

VB Code:
  1. Public Declare Function CreateCompatibleDC Lib "gdi32" (ByVal hdc As Long) As Long

if i removed the public at the start, the program would not function properly.

Why is this?