How to Declare a SafeArray in the type library editor?



How to Declare a SafeArray in the type library editor?..

Answer / Amod Kumar Singh

To declare a SafeArray in the type library editor, you can use the following steps:

1. Select the Interface or Dispatch interface that you want to add the SafeArray to.
2. Right-click and select 'Add Method' from the context menu.
3. Set the method's attributes as required (name, IDL type, etc.)
4. In the Parameters tab, click 'Add Parameter'.
5. Choose SAFEARRAY from the dropdown list under 'Type'.
6. Click on the 'Properties' button next to the new parameter and set the necessary details like the bounds, size, and element type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

what are the Steps to uninstall and reinstall Delphi 6 ?

1 Answers  


what are the Differences between Create(Self) and Create(Application)?

1 Answers  


How to draw directly on the Windows Desktop?

1 Answers   Infosys,


How do abstract classes differ from interfaces?

1 Answers  


How to query dates using Day-Month-Year using local SQL ?

1 Answers  


How to Get the windows directory?

1 Answers  


How to eject a CD-ROM in code?

1 Answers  


How much disk space, memory, etc, do I need to run Delphi?

1 Answers  


what are Single and multiple application server instances ?

1 Answers  


Why is there no automation in releasing the memory automatically during the termination of the program?

1 Answers  


What is the equivalent in BCB to a Pdox TCursor?

1 Answers  


How to enable the cut and copy operations for the TWebBrowser component in Delphi 5?

1 Answers  


Categories