ProSoft Technology MVI69-ADM User Manual

Page 273

Advertising
background image

MVI-ADM ♦ 'C' Programmable

CIP Messaging Library Functions

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 273 of 342

February 20, 2013

Example

MVIHANDLE handle;
MVIHANDLE objHandle;
MY_STRUCT mystruct;
int rc;
MVICALLBACK MyConnectProc (MVIHANDLE, MVICIPCONNSTRUC *);
MVICALLBACK MyServiceProc(MVIHANDLE, MVICIPSERVSTRUC *);
// Register all instances of the assembly object
rc = MVIcip_RegisterAssemblyObj( handle, &objHandle,
(DWORD)&mystruct, MyConnectProc, MyServiceProc, NULL );
if (rc != MVI_SUCCESS) printf("Unable to register assembly object\n");

See Also
MVIcip_UnregisterAssemblyObj (page 274)

connect_proc (page 278)

service_proc (page 282)

Advertising