Skip to content

Commit

Permalink
document warnings. 1.21 release notes updates
Browse files Browse the repository at this point in the history
  • Loading branch information
freemansoft committed Apr 1, 2024
1 parent 1670dc5 commit 61017db
Show file tree
Hide file tree
Showing 8 changed files with 488 additions and 574 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@ See [ReleaseNotes](docs/ReleaseNotes.md) for a full history.
| | |
| **Feature Requests** | |
| none | none |

2 changes: 1 addition & 1 deletion docs/BuildingJacobFromSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The simplest build environment includes MS Visual Studio 16.0 (Studio 2019), Ecl
| 1.18 | VS 2013 (12) Windows SDK 7.1A | 1.6.0 (50) | 1.8.4 Eclipse Embedded | Eclipse 4.3 | 32 and 64 bit |
| 1.19 | VS 2013 (12) Windows SDK 7.1A | 1.8.0 (52) | 1.10.1 Eclipse Provided | Eclipse 4.7 | 32 and 64 bit |
| 1.20 | VS 2019 (16) Windows SDK 10 | 1.8.0 (52) | 1.10.8 Eclipse Provided | Eclipse 2020 09 | 32 and 64 bit |
| 1.21 | VS 2022 (17) Windows SDK 11 10.0.22621.0 | 17 | VSCode provided | VSCode | 32 and 64 bit |
| 1.21 | VS 2022 (17) Windows SDK 11 10.0.22621.0 | 1.8.0 (52) | VSCode provided | VSCode | 32 and 64 bit |

Microsoft Visual Studio 2019 supports 64 bit builds. so no additional tools are required.

Expand Down
161 changes: 76 additions & 85 deletions src/main/com/jacob/activeX/ActiveXComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public class ActiveXComponent extends Dispatch {
* This constructor causes a new Windows object of the requested type to be
* created. The windows CoCreate() function gets called to create the
* underlying windows object.
*
*
* <pre>
* new ActiveXComponent(&quot;ScriptControl&quot;);
* </pre>
*
* @param programId
*
* @param programId the registry identifer for the target
*/
public ActiveXComponent(String programId) {
super(programId);
Expand All @@ -62,16 +62,16 @@ public ActiveXComponent(String programId) {
* Creates an active X component that is built on top of the COM pointers
* held in the passed in dispatch. This widens the Dispatch object to pick
* up the ActiveXComponent API
*
* @param dispatchToBeWrapped
*
* @param dispatchToBeWrapped - can wrap an ActiveXComponent around a dispatch
*/
public ActiveXComponent(Dispatch dispatchToBeWrapped) {
super(dispatchToBeWrapped);
}

/**
* only used by the factories
*
*
*/
private ActiveXComponent() {
super();
Expand All @@ -80,7 +80,7 @@ private ActiveXComponent() {
/**
* Probably was a cover for something else in the past. Should be
* deprecated.
*
*
* @return Now it actually returns this exact same object.
*/
public Dispatch getObject() {
Expand All @@ -97,8 +97,8 @@ public Dispatch getObject() {
* throws no exceptions and returns null on failure.
* <p>
* This will fail for any prog id with a ":" in it.
*
* @param pRequestedProgramId
*
* @param pRequestedProgramId the program id from the registry
* @return Dispatch pointer to the COM object or null if couldn't create
*/
public static ActiveXComponent createNewInstance(String pRequestedProgramId) {
Expand Down Expand Up @@ -126,8 +126,8 @@ public static ActiveXComponent createNewInstance(String pRequestedProgramId) {
* that it throws no exceptions and returns null on failure.
* <p>
* This will fail for any prog id with a ":" in it
*
* @param pRequestedProgramId
*
* @param pRequestedProgramId the regsistry program id
* @return Dispatch pointer to a COM object or null if wasn't already
* running
*/
Expand Down Expand Up @@ -157,15 +157,15 @@ protected void finalize() {

/*
* ============================================================
*
*
* start of instance based calls to the COM layer
* ===========================================================
*/

/**
* retrieves a property and returns it as a Variant
*
* @param propertyName
*
* @param propertyName the property name
* @return variant value of property
*/
public Variant getProperty(String propertyName) {
Expand All @@ -174,8 +174,8 @@ public Variant getProperty(String propertyName) {

/**
* retrieves a property and returns it as an ActiveX component
*
* @param propertyName
*
* @param propertyName the property name
* @return Dispatch representing the object under the property name
*/
public ActiveXComponent getPropertyAsComponent(String propertyName) {
Expand All @@ -186,9 +186,9 @@ public ActiveXComponent getPropertyAsComponent(String propertyName) {

/**
* retrieves a property and returns it as a Boolean
*
* @param propertyName
* property we are looking up
*
* @param propertyName the property name
* property we are looking up
* @return boolean value of property
*/
public boolean getPropertyAsBoolean(String propertyName) {
Expand All @@ -197,9 +197,9 @@ public boolean getPropertyAsBoolean(String propertyName) {

/**
* retrieves a property and returns it as a byte
*
* @param propertyName
* property we are looking up
*
* @param propertyName the property name
* property we are looking up
* @return byte value of property
*/
public byte getPropertyAsByte(String propertyName) {
Expand All @@ -208,8 +208,8 @@ public byte getPropertyAsByte(String propertyName) {

/**
* retrieves a property and returns it as a String
*
* @param propertyName
*
* @param propertyName the property name
* @return String value of property
*/
public String getPropertyAsString(String propertyName) {
Expand All @@ -219,8 +219,8 @@ public String getPropertyAsString(String propertyName) {

/**
* retrieves a property and returns it as a int
*
* @param propertyName
*
* @param propertyName the property name
* @return the property value as an int
*/
public int getPropertyAsInt(String propertyName) {
Expand All @@ -229,66 +229,59 @@ public int getPropertyAsInt(String propertyName) {

/**
* sets a property on this object
*
* @param propertyName
* property name
* @param arg
* variant value to be set
*
* @param propertyName property name
* @param arg variant value to be set
*/
public void setProperty(String propertyName, Variant arg) {
Dispatch.put(this, propertyName, arg);
}

/**
* sets a property on this object
*
* @param propertyName
* property name
* @param arg
* variant value to be set
*
* @param propertyName property name
* @param arg variant value to be set
*/
public void setProperty(String propertyName, Dispatch arg) {
Dispatch.put(this, propertyName, arg);
}

/**
* sets a property to be the value of the string
*
* @param propertyName
* @param propertyValue
*
* @param propertyName the property name
* @param propertyValue the new value
*/
public void setProperty(String propertyName, String propertyValue) {
this.setProperty(propertyName, new Variant(propertyValue));
}

/**
* sets a property as a boolean value
*
* @param propertyName
* @param propValue
* the boolean value we want the prop set to
*
* @param propertyName the property name
* @param propValue the boolean value we want the prop set to
*/
public void setProperty(String propertyName, boolean propValue) {
this.setProperty(propertyName, new Variant(propValue));
}

/**
* sets a property as a boolean value
*
* @param propertyName
* @param propValue
* the boolean value we want the prop set to
*
* @param propertyName the property value
* @param propValue the boolean value we want the prop set to
*/
public void setProperty(String propertyName, byte propValue) {
this.setProperty(propertyName, new Variant(propValue));
}

/**
* sets the property as an int value
*
* @param propertyName
* @param propValue
* the int value we want the prop to be set to.
*
* @param propertyName the property name
* @param propValue the int value we want the prop to be set to.
*/
public void setProperty(String propertyName, int propValue) {
this.setProperty(propertyName, new Variant(propValue));
Expand All @@ -306,12 +299,10 @@ public void setProperty(String propertyName, int propValue) {

/**
* used by the doc and application listeners to get intelligent logging
*
* @param description
* event description
* @param args
* args passed in (variants)
*
*
* @param description event description
* @param args args passed in (variants)
*
*/
public void logCallbackEvent(String description, Variant[] args) {
String argString = "";
Expand Down Expand Up @@ -364,15 +355,15 @@ public void logCallbackEvent(String description, Variant[] args) {

/*
* ==============================================================
*
*
* covers for dispatch call methods
* =============================================================
*/

/**
* makes a dispatch call for the passed in action and no parameter
*
* @param callAction
*
* @param callAction the action to be called
* @return ActiveXComponent representing the results of the call
*/
public ActiveXComponent invokeGetComponent(String callAction) {
Expand All @@ -381,9 +372,9 @@ public ActiveXComponent invokeGetComponent(String callAction) {

/**
* makes a dispatch call for the passed in action and single parameter
*
* @param callAction
* @param parameters
*
* @param callAction the action to be passed in
* @param parameters this looks plural..
* @return ActiveXComponent representing the results of the call
*/
public ActiveXComponent invokeGetComponent(String callAction,
Expand All @@ -393,9 +384,9 @@ public ActiveXComponent invokeGetComponent(String callAction,

/**
* invokes a single parameter call on this dispatch that returns no value
*
* @param actionCommand
* @param parameter
*
* @param actionCommand the call name
* @param parameter the String parameter
* @return a Variant but that may be null for some calls
*/
public Variant invoke(String actionCommand, String parameter) {
Expand All @@ -405,9 +396,9 @@ public Variant invoke(String actionCommand, String parameter) {
/**
* makes a dispatch call to the passed in action with a single boolean
* parameter
*
* @param actionCommand
* @param parameter
*
* @param actionCommand the call name
* @param parameter the boolean parameter
* @return Variant result
*/
public Variant invoke(String actionCommand, boolean parameter) {
Expand All @@ -416,9 +407,9 @@ public Variant invoke(String actionCommand, boolean parameter) {

/**
* makes a dispatch call to the passed in action with a single int parameter
*
* @param actionCommand
* @param parameter
*
* @param actionCommand the command
* @param parameter the int parameter
* @return Variant result of the invoke (Dispatch.call)
*/
public Variant invoke(String actionCommand, int parameter) {
Expand All @@ -428,10 +419,10 @@ public Variant invoke(String actionCommand, int parameter) {
/**
* makes a dispatch call to the passed in action with a string and integer
* parameter (this was put in for some application)
*
* @param actionCommand
* @param parameter1
* @param parameter2
*
* @param actionCommand command that requires a string and int vlaues
* @param parameter1 the string parameter
* @param parameter2 the int parameter
* @return Variant result
*/
public Variant invoke(String actionCommand, String parameter1,
Expand All @@ -443,10 +434,10 @@ public Variant invoke(String actionCommand, String parameter1,
/**
* makes a dispatch call to the passed in action with two integer parameters
* (this was put in for some application)
*
* @param actionCommand
* @param parameter1
* @param parameter2
*
* @param actionCommand the action that accepts 2 int parmaeters
* @param parameter1 first of two int parameters
* @param parameter2 the second of two int parameters
* @return a Variant but that may be null for some calls
*/
public Variant invoke(String actionCommand, int parameter1, int parameter2) {
Expand All @@ -456,8 +447,8 @@ public Variant invoke(String actionCommand, int parameter1, int parameter2) {

/**
* makes a dispatch call for the passed in action and no parameter
*
* @param callAction
*
* @param callAction action name that requires zero parameters
* @return a Variant but that may be null for some calls
*/
public Variant invoke(String callAction) {
Expand All @@ -467,9 +458,9 @@ public Variant invoke(String callAction) {
/**
* This is really a cover for call(String,Variant[]) that should be
* eliminated call with a variable number of args mainly used for quit.
*
* @param name
* @param args
*
* @param name the name we are invoking
* @param args a single arg
* @return Variant returned by the invoke (Dispatch.callN)
*/
public Variant invoke(String name, Variant... args) {
Expand Down
Loading

0 comments on commit 61017db

Please sign in to comment.