Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9024185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:56:37+00:00 2026-06-16T05:56:37+00:00

suppose I had this function defined in IDL like this: [propget, id(6), helpstring(property MyArray)]

  • 0

suppose I had this function defined in IDL like this:

[propget, id(6), helpstring("property MyArray")]
HRESULT MyArray([out, retval] SAFEARRAY(myEnum)* pVal);

and I wanted to create an overload for that function defined in IDL like this:

[propget, id(7), helpstring("property MyArray")]
HRESULT MyArray([out, retval] SAFEARRAY(BSTR)* pVal);

but in the header file of the class that implements the function the original was declared like this:

STDMETHOD(get_InstalledScanningDetectors)(SAFEARRAY** pVal);

so the type of the items in the array is no longer part of the signature. since I’m trying to create an overloaded function based on exactly this difference in the function’s signatures.. how do I proceed??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:56:38+00:00Added an answer on June 16, 2026 at 5:56 am

    SAFEARRAY is the distinct type (actually a structure embedding array related members), and its effective element type cannot be a part of the signature. You can have single method to return this or that array, or otherwise you can have two methods with different names which both return arrays.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose you had code like this: _READERS = None _WRITERS = None def Init(num_readers,
Suppose I had the following function: function alertMesg() { alert(This ok function alerts message!);
Suppose I have a function like this: public void AddEntry(Entry entry) { if (entry.Size
Let's suppose I had a view, like this: CREATE VIEW EmployeeView AS SELECT ID,
Suppose I attach an blur function to an HTML input box like this: <input
I've had trouble writing this code. I'm supposed to make a function that can
Suppose you had this: def wipeProduct(hash, nameToDelete) hash.each do |i| key = i[0] productName
Suppose I had a WCF service that I have coded up, like Clemens Vasters's
Suppose I had an if statement in a method like so: if ( foo()
Suppose I have a function that throws an exception. Suppose this function is called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.