Dyalog for Microsoft Windows .NET Interface Guide

Dy

a

l

ogf

orMi

c

r

os

of

tWi

ndows

.

NETI

nt

e

r

f

a

c

eGui

de

Dyalog is a trademark of Dyalog Limited

Copyright ? 1982-2018 by Dyalog Limited

All rights reserved.

Version: 17.0

Revision: 2987 dated 20230217

Please note that unless otherwise stated, all the examples in this document assume that ?IO is 1, and ?ML is 1.

No part of this publication may be reproduced in any form by any means without the prior written

permission of Dyalog Limited.

Dyalog Limited makes no representations or warranties with respect to the contents hereof and

specifically disclaims any implied warranties of merchantability or fitness for any particular purpose.

Dyalog Limited reserves the right to revise this publication without notification.

email: support@



TRADEMARKS:

SQAPL is copyright of Insight Systems ApS.

UNIX is a registered trademark of The Open Group.

Windows, Windows Vista, Visual Basic and Excel are trademarks of Microsoft Corporation.

Oracle and Java are registered trademarks of Oracle and/or its affiliates.

macOS?, Mac OS? and OS X? (operating system software) are trademarks of Apple Inc., registered in

the U.S. and other countries.

Array Editor is copyright of .

All other trademarks and copyrights are acknowledged.

iii

Contents

Chapter 1: Overview

1

Introduction

Prerequisites

Files Installed with Dyalog

1

3

4

Chapter 2: Accessing .NET Classes

5

Introduction

Locating .NET Classes and Assemblies

Using .NET Classes

Browsing .NET Classes

Advanced Techniques

More Examples

Enumerations

Handling Pointers with Dyalog.ByRef

DECF Conversion

5

5

8

12

21

27

31

32

34

Chapter 3: Using Windows.Forms

35

Introduction

Creating GUI Objects

Object Hierarchy

Positioning and Sizing Forms and Controls

Modal Dialog Boxes

Non-Modal Forms

35

35

36

36

36

41

Chapter 4: Windows Presentation Foundation

43

Temperature Converter Tutorial

Data Binding

Syncfusion Libraries

44

63

97

Chapter 5: Writing .NET Classes in Dyalog APL

103

Introduction

Assemblies, Namespaces and Classes

Getting Started

Example 1

Example 2

Example 2a

Example 3

103

104

105

107

112

117

120

iv

Example 4

Example 5

Interfaces

123

127

131

Chapter 6: Dyalog APL and IIS

133

Introduction

IIS Installation Dependency

IIS Applications, Virtual Directories, Application Pools

Internet Services Manager

133

134

134

136

Chapter 7: Writing Web Services

139

Introduction

Web Service (.asmx) Scripts

Compilation

Exporting Methods

Web Service Data Types

Execution

Global.asax, Application and Session Objects

Sample Web Service: EG1

Sample Web Service: LoanService

Sample Web Service: GolfService

Sample Web Service: EG2

139

140

141

142

143

143

144

145

147

151

168

Chapter 8: Calling Web Services

173

Introduction

The MakeProxy function

Using LoanService from Dyalog APL

Using GolfService from Dyalog APL

Exploring Web Services

Asynchronous Use

173

173

174

175

179

181

Chapter 9: Writing Web Pages

185

Introduction

Your first APL Web Page

The Page_Load Event

Code Behind

Workspace Behind

185

187

192

195

198

Chapter 10: Writing Custom Controls for

215

Introduction

The SimpleCtl Control

The TemperatureConverterCtl1 Control

The TemperatureConverterCtl2 Control

The TemperatureConverterCtl3 Control

215

217

219

224

233

v

Chapter 11: APLScript

239

Introduction

The APLScript Compiler

Creating an APLScript File

Copying code from the Dyalog Session

General principles of APLScript

Creating Programs (.exe) with APLScript

Creating .NET Classes with APLScript

Creating Classes with APLScript

239

240

242

243

244

245

248

255

Chapter 12: Implementation Details

259

Introduction

Isolation Mode

Workspace Size

Structure of the Active Workspace

Threading

Debugging an Class

The web.config file

259

260

261

262

265

267

270

Index

271

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download