Solved

OLEdrag with an object or variant

Posted on 1998-11-04
3
141 Views
Last Modified: 2010-04-30
Is there any way to assign an object (or a variant type, or class for that matter) to the data object in an OLEdrag event. ie. so it can be retrived with data.getdata...

I know all the work arounds, so all I need is a yes and the method to do it, or No and a quick explination of why not.
0
Comment
Question by:wford
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 50 total points
ID: 1443122
A variant can be done.  I can give you a function that converts a variant to a binary array and back.

A class can not be done since you are passing process boundaries and the memory location of your class is not known in the other process. In C you could do it within a process but not in VB.
0
 
LVL 1

Author Comment

by:wford
ID: 1443123
The variant I can fudge like this, but I really wanted to pass a Collection class using the OLEdrag, but  only inside my project( to start with)

Hum ho, This was exactly the problem I thought of, but it would neated up my code greatly if I could do this, spewing! It is good to have conformation though.

I will leave this unmarked for 10 hours or so, for any dissenting or agreeing comments then award the points, thanks MirkWood
0
 
LVL 1

Author Comment

by:wford
ID: 1443124
tak
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now