Hi,
I want to develop and use a custon Data DLL for a project. The Data DLL will be functions used to query a database using Linq which I am adding to an existing project.
My questions are:-
1) I am writing functions in the Data DLL to return values to the calling code. These functions are currently set as Public Shared. is this correct?
I have added the Data DLL project to the existing project and added a reference to the DLL file created by my Data DLL project. I have added an Imports DataDll statement to the module in the calling program and a declare statement for the function I want to use as follows:
'Declare Function lnqGetSysID Lib "lnqCompEngine" (ByVal s As String) As String'
However, when I try to use a function in the Data DLL I get an EntryPointNotFoundExceptio
n error in the calling program 'Unable to find an entry point named 'lnqGetSysID' in DLL 'lnqCompEngine'.
Can you help in resolving this error? What do I need to do to set up the Data Dll correctly?
regards,
Alan
Start Free Trial