Hi there,
i dealed with the objectdock sdk in the last days and the following application is the result:
in the background you can see the information which are saved in the docklet dll. And in the foreground you see my C# application which dynamically loads the docklet and reads its data. I think this are the basics for such a implementation of the docklets and in the next days I will have a closer look to alle the functions written in the sdk documentation. Overall it shouldn't be very difficult.
Please tell me your ideas. It would be great too if someone could help me with coding some structs in c++ for c#. especially the following:
typedef struct
{
HWND hwndDocklet;
HINSTANCE hInstanceDll;
int iTestNumber;
char szTestString[500];
} DOCKLET_DATA;
... it should be something like this:
[StructLayout(LayoutKind.Sequential)]
public struct DOCKLET_DATA
{
public IntPtr hwndDocklet;
public IntPtr hInstanceDll;
public int iTestNumber;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 500)]
public String szTestString;
}
but it won't work
and there's another problem, too ... i don't know how to handle the functions that are called from the dll plugin ... any ideas?
Take Care,
Sebastian M.