Custom utility inside NX

I have created a UG utility. To add as an custom menu inside NX, the utility should be in dll format not in exe.

If I execute as as exe application is working inside NX. If I change to dll in Output Type (I am using Visual Studio IDE), It is giving following error message

Library is missing required entry point.

Please help to fix this.
Also please share the procedure to add custom menu in NX.
How to edit customs_dirs.dat file?
Thanks in advance.

Regards,
Pradeep Kumar Arunachalam

I'm guessing that NX can not understand where you wish to activate your dll from. Thats presume you have your code in a file called "myDLLcode.vb" and your main code to activate is within a function called "RunMain".
Try adding an additional module or in the example a new .vb file called NX_EntryPoint.vb

within this have the following code or something along the lines of:

Imports NXOpen
Imports NXOpen.UF
Imports System

Module NX_EntryPoint

Dim theSession As Session = Session.GetSession()
Dim theUfSession As UFSession = UFSession.GetUFSession()
Dim WorkPart As Part = theSession.Parts.Work

'Instanciate class
Dim Test As New YourDLLname

Public Sub Main()

'Run Main code
Test.RunMain()

End Sub

'''


''' Unloads the application from NX when it has been executed
'''

'''
'''
'''
Public Function GetUnloadOption() As Integer

Return Session.LibraryUnloadOption.Immediately

End Function

End Module

...try compiling and executing that.