ESRI ArcView 3 / Avenue
Previous  Top  Next

To use RW Net with Avenue programming, you should use the DLL version of RW Net. The sample project (sample1.apr) already has header definitions for all functions, so you can see how to call the various functions from within Avenue.

Since Avenue doesn't support double precision when calling DLL's, all functions with double precision variables, comes in 2 flavours:

·    Standard double precision interface.
·    Single precision / null-terminated string interface.

Single precision is used, when much accuracy isn't needed (most situations). Null-terminated strings are used, when exact coordinates are needed:

·    AirDistPos
·    Coordinate2Location
·    Coordinate2Node
·    Location2Coordinate
·    NodeCoordX
·    NodeCoordY

An example:
Function FindNode uses double precision, while FindNodeA uses a mix of null-terminated strings and single precision parameters as required by Avenue.

The null-terminated string should use "." as decimal point no matter the actual windows setup. If the string doesn't hold a valid number, error -51 is returned.

The correct definitions are already entered in the sample avenue project and when referring to the functions in Avenue code, the last "A" in the function name isn't needed.

Another function specifically for Avenue is ShowProgressAvenue. See the reference list for a description and the sample project on how to use it.