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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with RegisterClipboardFormat for OLE Drag/Drop

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 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?


-Coco

[auto]
 
Hi Coco86,

did you find solution because I get same problem...

:)
Claude78
 
nope, sorry...never did. We've now switched to Outlook so it's no longer an issue.

-Coco

[auto]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top