User-defined Clipboard Formats in Visual Basic 4/5 
Author Message
 User-defined Clipboard Formats in Visual Basic 4/5

Has anyone managed to use user-defined Clipboard formats in VB4 or VB5? I
did, but only by writing a DLL to handle the routines, but now I have
another problem:

If you wish to use your data in both the Clipboard and OLE DRAG AND DROP
(which is almost identical in use, but strangely the designers have made it
slightly different), your Register Clipboard Format ID must be an INTEGER
(because that's all OLE DRAG AND DROP takes).

Notice that in the API, RegisterClipboardFormat returns a Long, but it the
OLE D&D section of the manual, it specifies an Integer?

Now, when I use an Integer on RegisterClipboardFormat, it returns a
negative, presumably because it's trying to return a number bigger than an
Integer can hold. This then works with OLE, but fails to work with my
Clipboard DLL.

Has anyone got this mess working?

Please reply both by posting and E-Mailing.

FRASER TUSTIAN

--------------------------------------------------------------------
GROK
Comedy, Theatre and Resources on any topic for any occasion
PO Box 855, Epping NSW 2121 AUSTRALIA  Ph/Fax 61-2-9869-1083  Mobile
0411-422-123

GROKNET WEBSITE ... http://www.*-*-*.com/ ~grok



Mon, 25 Oct 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. visual basic user defined data types

2. User defined Visual Basic subs

3. User defined Help file in Visual Basic 4.0

4. How to drag and drop outside a user defined control in Visual basic

5. How to drag and drop outside a user defined control in Visual basic

6. problem with Format and a user defined date format

7. defining a clipboard format

8. Microsoft Visual Basic Compile Error: Uder-defined type not defined

9. User-defined error when the user doesn't define any errors

10. User Control - User-defined type not defined

11. Help: Userdefined Clipboard Formats

12. Using CDate with user-defined formats

 

 
Powered by phpBB® Forum Software