Accusoft NotateXpress 12
InterfaceConnect Method
See Also  Example  Send comments on this topic.
punk
An IUnknown interface pointer.
AccusoftNotateXpress12 ActiveX DLL > NotateXpress Object : InterfaceConnect Method

Glossary Item Box

Description

Connects NotateXpress to ImagXpress via an IUnknown interface pointer.

Syntax

Visual Basic
Public Function InterfaceConnect( _
   ByVal punk As Unknown _
) As Boolean

Parameters

punk
An IUnknown interface pointer.

Return Type

If NotateXpress and ImagXpress are connected.

Remarks

This method does the same thing as setting the Client property or calling the SetClientWindow method. It is designed for applications where neither of these other methods can be used.

Note: The most likely time you will need to use this method is when you are using ImagXpess and NotateXpress by reference and ImagXpress either cannot have a window or you do not want ImagXpress to have a window.

Example

Interface Connect and Dynamic Creation (Visual Basic)Copy Code
'DynamicallycreateImagXpressandNotateXpress
DimWithEventsixAsPegasusImagingActiveXImagXpress9.ImagXpress
DimWithEventsnxAsAccusoftNotateXpress12.NotateXpress

Setix=NewPegasusImagingActiveXImagXpress9.ImagXpress
Setnx=NewAccusoftNotateXpress12.NotateXpress

'CreateawindowforImagXpresstodrawupon
ix.CreateCtlWindowMainForm.hWnd,10,10,1000,1000

'Theauthorstronglysuggestsusingthisconnectionmethodwhennootheroptionexists.
nx.InterfaceConnectix

'Thepreferedwayistouse:
'nx.SetClientWindowix.hWnd

See Also

©2013. Accusoft Corporation. All Rights Reserved.