I'm trying to do this:

Code:
Private Declare Function DllRegisterServer Lib app.path & "dimava.ocx" () As Long
Private Declare Function DllUnregisterServer Lib "MyDll.Dll" () As Long
Const ERROR_SUCCESS = &H0
so it comes up to a synax error, why?

(P.S. this is the declerations part of the Registaring an OCX/DLL code)