C# Programming
06-01-2009, 03:00 PM
Hi to all
I was interested in listing the sql servers available.
I found some code " using System.Runtime.InteropServices; "
Code is used like that for using windows dll.
For that we need to define the method that we want to use
as follows :
[DllImport("odbc32.dll")]
private static extern short SQLAllocHandle(
short hType,
IntPtr inputHandle,
out IntPtr outputHandle);
So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ?
If I use IDSAM then it gives the same for .NET libraries only not for windows library.
Thanks in Avdvance
I was interested in listing the sql servers available.
I found some code " using System.Runtime.InteropServices; "
Code is used like that for using windows dll.
For that we need to define the method that we want to use
as follows :
[DllImport("odbc32.dll")]
private static extern short SQLAllocHandle(
short hType,
IntPtr inputHandle,
out IntPtr outputHandle);
So I want to know that is there any tool to find the declaration of the functions available in the DLL. Please lemme know how can I find the tool to do the same ?
If I use IDSAM then it gives the same for .NET libraries only not for windows library.
Thanks in Avdvance