Hello.
I am writing an extended stored procedure for SQL server and i ran into the problem of exporting functions from a DLL file.
I started a Win32 Dynamic-Link Library project and selected "A DLL that exports some symbols", I added a .def file into the project and added the names of the functions into it, my functions use the __declspec(dllexport) before each of them.
I am using the LoadLibrary and GetProcAddress function to get to the functions but when i get to the line:
sReturn = (*pfnFunction)("param1", "param2"
;
I get an error and SQL server disconnects.
Am i not exporting right?
Thank you very much for your time.
Jerasi.
I am writing an extended stored procedure for SQL server and i ran into the problem of exporting functions from a DLL file.
I started a Win32 Dynamic-Link Library project and selected "A DLL that exports some symbols", I added a .def file into the project and added the names of the functions into it, my functions use the __declspec(dllexport) before each of them.
I am using the LoadLibrary and GetProcAddress function to get to the functions but when i get to the line:
sReturn = (*pfnFunction)("param1", "param2"
I get an error and SQL server disconnects.
Am i not exporting right?
Thank you very much for your time.
Jerasi.