Custom DLL fire all methods in sequence as soon as it initiate
spiky_golden
Member Posts: 44
Hey guys,
We try to make a custom dll with multiple method in it. But as soon as the variable is initiated it fires all the code Inside the DLL then it goes for the NAV code... It's kind of useless this way... Do you know what we did wrong?
We try to make a custom dll with multiple method in it. But as soon as the variable is initiated it fires all the code Inside the DLL then it goes for the NAV code... It's kind of useless this way... Do you know what we did wrong?
0
Answers
-
Sounds like someone grouped all of the actual code in the DLL into the main program, rather than just exposing methods (functions) that NAV can call when it wants to. In c#, that means the code is in the static void Main(string[] args) part instead of being in publicly exposed functions like public void PopulateShipToAddresses().Kyle Hardin - ArcherPoint0
-
Here is a basic sample that does exactly the same thing ( it's a vb.NET Dll)
'/*******
Imports System.Windows.Forms
Public Class TestTransfer
Public Sub New()
End Sub
Public Sub Transfer1()
MsgBox("1")
End Sub
Public Sub Transfer2()
MsgBox("2")
End Sub
End Class
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 326 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions