Bug 82227 - [OLE][API] Add the setByRef(IDispatch) method to Variant class
Summary: [OLE][API] Add the setByRef(IDispatch) method to Variant class
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.0.1   Edit
Hardware: PC Windows All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, triaged
Depends on:
Blocks:
 
Reported: 2005-01-05 06:43 EST by Hiroyuki Inaba CLA
Modified: 2017-07-12 05:14 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hiroyuki Inaba CLA 2005-01-05 06:43:10 EST
Version: Eclipse 3.0.1
Package: org.eclipse.swt.ole.win32
Class: Variant 

I want you to add the setByRef(IDispatch) method to the Variant class. 

I added the following codes and confirmed. 

public void setByRef(IDispatch val) {
	if ((type & COM.VT_BYREF) == 0 || (type & COM.VT_DISPATCH) == 0) {
		OLE.error(OLE.ERROR_CANNOT_CHANGE_VARIANT_TYPE);
	}
	COM.MoveMemory(byRefPtr, new int[]{val.getAddress()}, 4);
	val.AddRef();
}
Comment 1 Felipe Heidrich CLA 2009-08-13 11:30:50 EDT
Your bug has been moved to triage, visit http://www.eclipse.org/swt/triage.php for more info.