Hi! Tried to create a C# plugin.dll for PL/SQL developer, but cannot call functions the developer function. Still, callback functions works fine, but it is not enough.
Example C# code bellow:
Example C# code bellow:
Code:
[DllExport("OnMenuClick", CallingConvention.Cdecl)]
public static void OnClick(int Index)
{
// this works!
}
[DllImport("DllName", EntryPoint = "IDE_GetConnectionInfo", CallingConvention = CallingConvention.Cdecl)]
public static extern void IDE_GetConnectionInfo(string Username, string Password, string Database, IDE_GetConnectionInfoDelegate callback);
public static void Get()
{
IDE_GetConnectionInfoDelegate d = new IDE_GetConnectionInfoDelegate(IDE_GetConnectionInfoCallback);
IDE_GetConnectionInfo(username, password, database, d);
}