Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using OLE Drag/Drop to Capture Groupwise Document Info

Status
Not open for further replies.

coco86

Programmer
Mar 13, 2002
296
DE
I'm not sure if this is a Visual Basic problem or an API problem but maybe someone here can help

I'm trying to create an application that allows a document dragged from Groupwise to be "captured" (I just want the document id and library) and stored in a database.

According to the Visual Basic help files:
It's possible for the GetData and SetData methods to use data formats other than those listed in Settings, including user-defined formats registered with Windows via the RegisterClipboardFormat() API function.

However, RegisterClipboardFormat returns a long-

Declare Function RegisterClipboardFormat Lib "user32" Alias "RegisterClipboardFormatA" (ByVal lpString As String) As Long

-and GetData requires the input to be an integer.

Since RegisterClipboardFormat is returning a value in excess of 40000, it's not working for me.

Any idea what I can do to fix this (or a better approach)?


-Coco

[auto]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top