C Provided Samples; Program Frames; C-1.1 Vba Sample Program; C-1.2 C/C++ Sample Programs - Leica TPS1200 Series Reference Manual

Geodetic measurement instruments
Hide thumbs Also See for TPS1200 Series:
Table of Contents

Advertisement

GeoCOM Reference Manual
C P
ROVIDED
C-1

PROGRAM FRAMES

C-1.1 VBA Sample Program

The sample program shows how simple it is to build an effective application with Visual Basic. The sample program
represents a simple measurement task that measures and displays the Hz angle and the V angle continuously. In addition
you have the possibility to perform a distance measurement with the following distance measurement programs: single
distance standard, single distance fast and tracking.
In order to execute this example program, install MSVB6.0 (or later) on your hard disk and copy the following files in a
directory of your choice:
\SAMPLES\VB\VBSAMPLE.VBP
\SAMPLES\VB\VBSAMPLE.FRM
\SAMPLES\VB\VBSAMPLE_SETUP.FRM
\SAMPLES\VB\COM_STUBSPUB.BAS
\SAMPLES\VB\GEOCOMS2K.DLL
\SAMPLES\VB\VBSAMP32.EXE
Finally connect the TPS1200 Theodolite with the preferred serial port on your personal computer and invoke the
executable file. Press the
start the application with the button

C-1.2 C/C++ Sample Programs

The provided sample programs show simple Visual C++ MFC (Microsoft foundation classes) applications. The
functionality is exactly the same as in the Visual Basic program above.
The following files have to be copied into a Visual C++ Version 6.0 (or later) working directory in order to build a
32bit application:
\SAMPLES\VC\GEOCOM_SAMPLE.DSW
\SAMPLES\VC\*.CPP
\SAMPLES\VC\*.H
\SAMPLES\VC\GEOCOM_SAMPLE.RC
\SAMPLES\VC\RES\GEOCOM_SAMPLE.RC
\SAMPLES\VC\RES\GEOCOM_SAMPLE.ICO
\SAMPLES\VC\COM_PUB.HPP
\SAMPLES\VC\Release\GEOCOMS2K.LIB
\SAMPLES\VC\Release\GEOCOMS2K.DLL
\SAMPLES\VC\Release\GeoCOM_SAMPLE.EXE
Note: To operate successfully the
located in a directory, which the operating system looks up for the requested DLL file
Leica TPS1200 – Version 1.50
S
AMPLES
button to select the communication parameters (Serial Port, Baudrate, Protocol) and
Setup
. The button
Go online
geocoms2k.dll
Visual Basic Project of the sample.
Main form of the sample.
Communication parameter setup form.
Contains the declarations of the TPS1200 system
functions.
Contains the implementation of GeoCOM.
Executable of the sample.
terminates the application.
Quit
Work space file of the project
C++ source files
C++ header files
Resource file 1
Resource file 2
Icon file
Header file for GeoCOM
GeoCOM Library
Contains the implementation of GeoCOM
Executable of the sample
file must be accessible for the operating system, hence it must be
Provided Samples
203

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tm30Ts30Tps1200+

Table of Contents