Implementing IDropTarget interface

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all
I would like to implement this interface for my C# Class,The IDropTarget interface calss..has been created

I am having problem with the compilation of the RegisterDragDrop(
[DllImport("ole32.dll")
static extern int RegisterDragDrop(IntPtr hwnd, IDropTarget pDropTarget)

actually defined a
WINOLEAPI RegisterDragDrop
HWND hwnd, //Handle to a window that can accept drop
IDropTarget * pDropTarge
//Pointer to object that is to be target of drop)
WINOLEAPI on further examination turns out to be HRESULT with 3 values 0,1,

changing the int to enum did not help. Could any one please help ? thanks in advanc
 
Back
Top