What Is the ATL Control-Hosting API?

Answers were Sorted based on User's Feedback



What Is the ATL Control-Hosting API? ..

Answer / mushtaq ahmad

ATL's control-hosting API is the set of functions that
allows any window to act as an ActiveX control container.
These functions can be statically or dynamically linked
into your project since they are available as source code
and exposed by ATL80.dll. The control-hosting functions are
listed in the table below.

Function Description
AtlAxAttachControl
Creates a host object, connects it to the supplied window,
then attaches an existing control.

AtlAxCreateControl
Creates a host object, connects it to the supplied window,
then loads a control.

AtlAxCreateControlLic
Creates a licensed ActiveX control, initializes it, and
hosts it in the specified window, similar to
AtlAxCreateControl.

AtlAxCreateControlEx
Creates a host object, connects it to the supplied window,
then loads a control (also allows event sinks to be set up).

AtlAxCreateControlLicEx
Creates a licensed ActiveX control, initializes it, and
hosts it in the specified window, similar to
AtlAxCreateControlLic.

AtlAxCreateDialog
Creates a modeless dialog box from a dialog resource and
returns the window handle.

AtlAxDialogBox
Creates a modal dialog box from a dialog resource.

AtlAxGetControl
Returns the IUnknown interface pointer of the control
hosted in a window.

AtlAxGetHost
Returns the IUnknown interface pointer of the host object
connected to a window.

AtlAxWinInit
Initializes the control-hosting code.

AtlAxWinTerm
Uninitializes the control-hosting code.

Is This Answer Correct ?    3 Yes 0 No

What Is the ATL Control-Hosting API? ..

Answer / mushtaq ahmad

ATL's control-hosting API is the set of functions that
allows any window to act as an ActiveX control container.
These functions can be statically or dynamically linked
into your project since they are available as source code
and exposed by ATL80.dll. The control-hosting functions are
listed in the table below.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ATL Interview Questions

Why is the put_Font or putref_Font method not called when an ActiveX control's Font property is changed by the ActiveX Control Pad?

0 Answers  


How to Reuse interface implementation in source in ATL projects ?

1 Answers   Syntel,


What DLLs needed to ship with control?

1 Answers   WNS,


what is proces ?

5 Answers   OfficeNet,


How to Load Controls Specified at Run Time?

1 Answers  






how do you like to go up in a swing

1 Answers   Colgate,


What problems might be encountered when using _ATL_MIN_CRT? What causes the linker error that _main is unresolved during Release builds?

2 Answers  


WHAT IS DIFF BETWEEN int a[][]=[4] int [][]a=[4]

2 Answers   HCL,


How to Use structs in Automation-compatible interfaces?

0 Answers  


How to Obtain data from the client via an outgoing event dispinterface in ATL ?

0 Answers  


sap hana online training in USA UK CANADA INDIA AUSTRALIA

1 Answers   SAP Labs,


Will ATL create all of the topological relationships within the topology layer?

0 Answers  


Categories