wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.81k stars 1.71k forks source link

New OLE Auto. Type and Array Methods #5285

Closed wxtrac closed 2 years ago

wxtrac commented 22 years ago

Issue migrated from trac ticket # 5285

component: wxMSW | priority: normal

2002-02-23 00:01:46: anonymous created the issue


Let's try this again. The patch file did not attach to the last patch submit.


New OLE Auto. Types & Array Functions -Added support for signed char OLE Automation type.

-Added methods to pass dynamic arrays of wxVariants into OLE Automation methods.

Thanks,

John H. Bergman johnb@zortec.com

wxtrac commented 22 years ago

2002-02-23 00:08:20: anonymous commented


Logged In: NO

File apparently was not attached (browser showed an error message).

Here's the file:

diff -rbu2 WX-CVS1\include\wx\msw\ole\automtn.h WX-CVS2 \include\wx\msw\ole\automtn.h --- WX-CVS1\include\wx\msw\ole\automtn.h Fri Feb 22 15:35:52 2002 +++ WX-CVS2\include\wx\msw\ole\automtn.h Thu Feb 14 22:50:40 2002 @@ -56,4 +56,5 @@ // Invoke a member function wxVariant CallMethod(const wxString& method, int noArgs, wxVariant args[]);

+wxVariant wxAutomationObject::CallMethodArray(const wxString& member, int noArgs, const wxVariant **args) +{

+bool wxAutomationObject::PutPropertyArray(const wxString& property, int noArgs, const wxVariant **args) +{

+// Uses DISPATCH_PROPERTYGET +// and returns a dispatch pointer. The calling code should call Release +// on the pointer, though this could be implicit by constructing an wxAutomationObject +// with it and letting the destructor call Release. +WXIDISPATCH* wxAutomationObject::GetDispatchProperty(const wxString& property, int noArgs, const wxVariant **args) const +{

+// A way of initialising another wxAutomationObject with a dispatch object +bool wxAutomationObject::GetObject(wxAutomationObject& obj, const wxString& property, int noArgs, const wxVariant **args) const +{

wxtrac commented 22 years ago

2002-02-23 12:18:38: @vadz commented


There is/are no file(s) attached to this patch. Maybe you hadn't logged in before attaching them? Please note that you must be logged in to be able to attach any files (this is a SF feature). Please retry attaching the files after logging in. Thank you!