Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 01:53:53 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: ObjectDock Docklets...  (Read 7823 times)

sibbl

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
ObjectDock Docklets...
« on: September 28, 2008, 07:03:59 AM »
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:


Code: C++ [Select]
  1. typedef struct
  2. {
  3.         HWND hwndDocklet;
  4.         HINSTANCE hInstanceDll;
  5.  
  6.         int iTestNumber;
  7.         char szTestString[500];
  8.  
  9. } DOCKLET_DATA;

... it should be something like this:
Code: C# [Select]
  1. [StructLayout(LayoutKind.Sequential)]
  2.     public struct DOCKLET_DATA
  3.     {
  4.         public IntPtr hwndDocklet;
  5.         public IntPtr hInstanceDll;
  6.         public int iTestNumber;
  7.         [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 500)]
  8.         public String szTestString;
  9.     }

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.
« Last Edit: September 28, 2008, 09:15:01 AM by sibbl »

sibbl

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: ObjectDock Docklets...
« Reply #1 on: September 29, 2008, 12:55:02 PM »
hello again ....

well i have an idea how to integrate such a feature. It would require some weeks of work... But i know that and how it can be done!

But if there is no interest i don't think that i'm going to code this ...

take care,
Sebastian

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: ObjectDock Docklets...
« Reply #2 on: September 29, 2008, 05:42:23 PM »
Hello,
Would it be easier to make this a separate project from Circle Dock and get it to run as a standalone first? Getting docklets working is a big project in itself and DonationCoder could always host the project. As for the Docklet_Data struct declaration in your first post, try replacing

public IntPtr hInstanceDll;

with

public int hInstanceDll;

I would be interested in hearing what's required to get docklets running in C#.

Eric Wong
Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com

sibbl

  • Participant
  • Joined in 2008
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: ObjectDock Docklets...
« Reply #3 on: September 30, 2008, 08:26:39 AM »
well the problem above is no problem anymore ... and i would create a standalone first.

but overall ... i first need an extra c++ dll which interacts between the docklet and the c# application. I don't think that would be any problem and i will start it now :) i will let you hear about some steps. I will have an integration in circledock in my mind :)

VideoInPicture

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 467
    • View Profile
    • Circle Dock
    • Donate to Member
Re: ObjectDock Docklets...
« Reply #4 on: September 30, 2008, 03:36:28 PM »
Sounds good. Let me know if you need some web space to host the standalone docklet project.
Author of Circle Dock: http://circledock.wikidot.com
Author of Video In Picture: http://videoinpicture.wikidot.com
Author of Webcam Signature: http://webcamsignature.wikidot.com
Author of Easy Unicode Paster: http://easyunicodepaster.wikidot.com