You don't initialize the project context therefore you can't use the arbitrary code and forms. Just see my example with AX-dll and use it with exported functions.